Skip to content

Commit

Permalink
Added url validation in builk
Browse files Browse the repository at this point in the history
  • Loading branch information
clr-li committed Oct 17, 2023
1 parent 3dfc05f commit eb7a828
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recipes/BulkRunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ class ResponseModel(BaseModel):
def fields_to_save(self) -> [str]:
return super().fields_to_save() + [CACHED_COLUMNS]

def validate_form_v2(self):
run_urls = st.session_state.get("run_urls", "")
assert run_urls, "Please profide a run url"

def render_form_v2(self):
from daras_ai_v2.all_pages import page_slug_map, normalize_slug

Expand Down

0 comments on commit eb7a828

Please sign in to comment.