Update app.py
Browse files
app.py
CHANGED
@@ -197,12 +197,12 @@ with gr.Blocks() as demo:
|
|
197 |
with gr.Row():
|
198 |
start_button = gr.Button("Start Generation")
|
199 |
stop_button = gr.Button("Stop Generation")
|
200 |
-
with gr.Row():
|
201 |
-
output_df = gr.DataFrame(label="Generated Conotoxins")
|
202 |
with gr.Row():
|
203 |
output_file = gr.File(label="Download generated conotoxins")
|
204 |
-
|
205 |
-
|
|
|
|
|
206 |
stop_button.click(stop_generation, outputs=None)
|
207 |
|
208 |
demo.launch()
|
|
|
197 |
with gr.Row():
|
198 |
start_button = gr.Button("Start Generation")
|
199 |
stop_button = gr.Button("Stop Generation")
|
|
|
|
|
200 |
with gr.Row():
|
201 |
output_file = gr.File(label="Download generated conotoxins")
|
202 |
+
with gr.Row():
|
203 |
+
output_df = gr.DataFrame(label="Generated Conotoxins")
|
204 |
+
|
205 |
+
start_button.click(CTXGen, inputs=[X0, X3, X1, X2, τ, g_num, model_name], outputs=[output_file, output_df])
|
206 |
stop_button.click(stop_generation, outputs=None)
|
207 |
|
208 |
demo.launch()
|