Enzo Reis de Oliveira commited on
Commit
cbc085f
·
1 Parent(s): 8e82365

Better error message fixed

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ def process_inputs(smiles: str, file_obj):
68
  df_out.to_csv("embeddings.csv", index=False)
69
  return json.dumps(vec), gr.update(value="embeddings.csv", visible=True)
70
  except Exception as e:
71
- return f"The following input '{smiles}' is not a valid SMILES", gr.upadte(visible=False)
72
 
73
  # 4) Build the Gradio Blocks interface
74
  with gr.Blocks() as demo:
 
68
  df_out.to_csv("embeddings.csv", index=False)
69
  return json.dumps(vec), gr.update(value="embeddings.csv", visible=True)
70
  except Exception as e:
71
+ return f"The following input '{smiles}' is not a valid SMILES", gr.update(visible=False)
72
 
73
  # 4) Build the Gradio Blocks interface
74
  with gr.Blocks() as demo: