Spaces:
Running on Zero
Running on Zero
remove unnecessary generate function
Browse files
app.py
CHANGED
|
@@ -131,19 +131,13 @@ with gr.Blocks(title="RFD3 Test") as demo:
|
|
| 131 |
display_state = gr.Textbox(label="Selected Batch and Design", visible=True)
|
| 132 |
display_state.value = "Please Select a Batch and Design number to show sequence"
|
| 133 |
|
| 134 |
-
|
| 135 |
-
if config_upload is None:
|
| 136 |
-
return gr.update(), None, None
|
| 137 |
-
else:
|
| 138 |
-
textbox_update, gen_directory, gen_results = generation_with_input_config(config_upload, scaffold_upload, num_batches, num_designs_per_batch, extra_args, max_duration)
|
| 139 |
-
print(textbox_update)
|
| 140 |
-
return textbox_update, gen_directory, gen_results
|
| 141 |
|
| 142 |
generation_event = run_btn.click(
|
| 143 |
lambda: (gr.update(visible=False), gr.update(visible=True)),
|
| 144 |
outputs=[run_btn, stop_btn]
|
| 145 |
).then(
|
| 146 |
-
|
| 147 |
).then(
|
| 148 |
update_batch_choices,
|
| 149 |
inputs=gen_results,
|
|
|
|
| 131 |
display_state = gr.Textbox(label="Selected Batch and Design", visible=True)
|
| 132 |
display_state.value = "Please Select a Batch and Design number to show sequence"
|
| 133 |
|
| 134 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
|
| 136 |
generation_event = run_btn.click(
|
| 137 |
lambda: (gr.update(visible=False), gr.update(visible=True)),
|
| 138 |
outputs=[run_btn, stop_btn]
|
| 139 |
).then(
|
| 140 |
+
generation_with_input_config, inputs=[config_upload, scaffold_upload, num_batches, num_designs_per_batch, extra_args, max_duration], outputs=[runtextbox, gen_directory, gen_results]
|
| 141 |
).then(
|
| 142 |
update_batch_choices,
|
| 143 |
inputs=gen_results,
|