Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -306,4 +306,11 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Base(), title="TriCast AI") as de
|
|
306 |
lstm_plot = gr.Plot(label="Revenue Forecast")
|
307 |
|
308 |
if __name__ == "__main__":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
309 |
demo.launch()
|
|
|
306 |
lstm_plot = gr.Plot(label="Revenue Forecast")
|
307 |
|
308 |
if __name__ == "__main__":
|
309 |
+
# Link button to function
|
310 |
+
analyze_btn.click(
|
311 |
+
run_all_models,
|
312 |
+
inputs=[file_input],
|
313 |
+
outputs=[bankruptcy_output, bankruptcy_plot, anomaly_output, anomaly_plot, lstm_output, lstm_plot]
|
314 |
+
)
|
315 |
+
|
316 |
demo.launch()
|