Spaces:
Running
Running
Commit
·
fbababd
1
Parent(s):
3891a69
Update app.py
Browse files
app.py
CHANGED
@@ -132,7 +132,7 @@ def unavailable(input_file, input_checks):
|
|
132 |
|
133 |
def showcase(input_file):
|
134 |
output = "showcase/example_predictions.txt"
|
135 |
-
return gr.update(value=output, visible=True), gr.update(visible=True), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False) # next_button_freq becomes available
|
136 |
|
137 |
def file(input_file, input_checks):
|
138 |
#output = "output.txt"
|
@@ -419,7 +419,7 @@ with gr.Blocks() as demo:
|
|
419 |
next_button_peaks.click(fn=peaks, inputs=[output_file,input_checks], outputs=[output_peaks,next_button_topics])
|
420 |
next_button_topics.click(fn=topics, inputs=[output_file,input_checks], outputs=output_topics)
|
421 |
send_btn.click(fn=unavailable, inputs=[input_file,input_checks], outputs=message)
|
422 |
-
demo_btn.click(fn=showcase, inputs=[input_file], outputs=[output_file,next_button_freq,next_button_dist,next_button_peaks,next_button_topics])
|
423 |
|
424 |
|
425 |
demo.launch()
|
|
|
132 |
|
133 |
def showcase(input_file):
|
134 |
output = "showcase/example_predictions.txt"
|
135 |
+
return gr.update(visible=False), gr.update(value=output, visible=True), gr.update(visible=True), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False) # next_button_freq becomes available
|
136 |
|
137 |
def file(input_file, input_checks):
|
138 |
#output = "output.txt"
|
|
|
419 |
next_button_peaks.click(fn=peaks, inputs=[output_file,input_checks], outputs=[output_peaks,next_button_topics])
|
420 |
next_button_topics.click(fn=topics, inputs=[output_file,input_checks], outputs=output_topics)
|
421 |
send_btn.click(fn=unavailable, inputs=[input_file,input_checks], outputs=message)
|
422 |
+
demo_btn.click(fn=showcase, inputs=[input_file], outputs=[message, output_file,next_button_freq,next_button_dist,next_button_peaks,next_button_topics])
|
423 |
|
424 |
|
425 |
demo.launch()
|