Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -359,7 +359,7 @@ For more details, see our [paper on arXiv](https://arxiv.org/abs/2302.07868).
|
|
| 359 |
# Set up the click actions for each tab.
|
| 360 |
classical_submit.click(
|
| 361 |
run_inference,
|
| 362 |
-
inputs=[gr.
|
| 363 |
outputs=[
|
| 364 |
image_output,
|
| 365 |
file_download,
|
|
@@ -371,7 +371,7 @@ For more details, see our [paper on arXiv](https://arxiv.org/abs/2302.07868).
|
|
| 371 |
|
| 372 |
custom_submit.click(
|
| 373 |
run_inference,
|
| 374 |
-
inputs=[gr.
|
| 375 |
outputs=[
|
| 376 |
image_output_custom,
|
| 377 |
file_download_custom,
|
|
|
|
| 359 |
# Set up the click actions for each tab.
|
| 360 |
classical_submit.click(
|
| 361 |
run_inference,
|
| 362 |
+
inputs=[gr.State("Generate Molecules"), model_name, num_molecules, seed_num, gr.Textbox.update(value="")],
|
| 363 |
outputs=[
|
| 364 |
image_output,
|
| 365 |
file_download,
|
|
|
|
| 371 |
|
| 372 |
custom_submit.click(
|
| 373 |
run_inference,
|
| 374 |
+
inputs=[gr.State("Custom Input SMILES"), model_name_custom, 0, gr.Textbox.update(value=""), custom_smiles],
|
| 375 |
outputs=[
|
| 376 |
image_output_custom,
|
| 377 |
file_download_custom,
|