inoki-giskard commited on
Commit
533857c
1 Parent(s): 0e3ffcc

Do not show warnings for model

Browse files
Files changed (1) hide show
  1. text_classification_ui_helpers.py +0 -3
text_classification_ui_helpers.py CHANGED
@@ -202,10 +202,7 @@ def precheck_model_ds_enable_example_btn(
202
  error_msg_html = f"<p style='color: red;'>{NOT_FOUND_MODEL_RAW}</p>"
203
  if model_id.startswith("http://") or model_id.startswith("https://"):
204
  error_msg = f"Please input your model id, such as {EXAMPLE_MODEL_ID}, instead of URL"
205
- gr.Warning(error_msg)
206
  error_msg_html = f"<p style='color: red;'>{error_msg}</p>"
207
- else:
208
- gr.Warning(NOT_FOUND_MODEL_RAW)
209
 
210
  return (
211
  gr.update(interactive=False),
 
202
  error_msg_html = f"<p style='color: red;'>{NOT_FOUND_MODEL_RAW}</p>"
203
  if model_id.startswith("http://") or model_id.startswith("https://"):
204
  error_msg = f"Please input your model id, such as {EXAMPLE_MODEL_ID}, instead of URL"
 
205
  error_msg_html = f"<p style='color: red;'>{error_msg}</p>"
 
 
206
 
207
  return (
208
  gr.update(interactive=False),