Spaces:
Running on Zero
Running on Zero
fix run message to show scaffold location
Browse files
app.py
CHANGED
|
@@ -85,7 +85,6 @@ with gr.Blocks(title="RFD3 Test") as demo:
|
|
| 85 |
runtextbox = gr.Textbox(label="Run status", value="Waiting for generation run...")
|
| 86 |
|
| 87 |
|
| 88 |
-
|
| 89 |
# validate the configuration
|
| 90 |
config_validation_btn.click(validate_config_ready, inputs=[config_upload, num_designs_per_batch, num_batches], outputs=[config_textbox, config_ready])
|
| 91 |
scaffold_validation_btn.click(validate_scaffold_ready_with_file, inputs=scaffold_upload, outputs=[scaffold_textbox, scaffold_ready])
|
|
@@ -122,7 +121,7 @@ with gr.Blocks(title="RFD3 Test") as demo:
|
|
| 122 |
else:
|
| 123 |
return None, None
|
| 124 |
|
| 125 |
-
run_btn.click(give_run_status, inputs=[config_ready, scaffold_ready, num_batches, num_designs_per_batch, config_upload], outputs=runtextbox).then(
|
| 126 |
generate, inputs=[config_ready, scaffold_ready, num_batches, num_designs_per_batch, config_upload, extra_args], outputs=[gen_directory, gen_results]
|
| 127 |
).then(
|
| 128 |
update_batch_choices,
|
|
|
|
| 85 |
runtextbox = gr.Textbox(label="Run status", value="Waiting for generation run...")
|
| 86 |
|
| 87 |
|
|
|
|
| 88 |
# validate the configuration
|
| 89 |
config_validation_btn.click(validate_config_ready, inputs=[config_upload, num_designs_per_batch, num_batches], outputs=[config_textbox, config_ready])
|
| 90 |
scaffold_validation_btn.click(validate_scaffold_ready_with_file, inputs=scaffold_upload, outputs=[scaffold_textbox, scaffold_ready])
|
|
|
|
| 121 |
else:
|
| 122 |
return None, None
|
| 123 |
|
| 124 |
+
run_btn.click(give_run_status, inputs=[config_ready, scaffold_ready, num_batches, num_designs_per_batch, config_upload, scaffold_upload], outputs=runtextbox).then(
|
| 125 |
generate, inputs=[config_ready, scaffold_ready, num_batches, num_designs_per_batch, config_upload, extra_args], outputs=[gen_directory, gen_results]
|
| 126 |
).then(
|
| 127 |
update_batch_choices,
|