Spaces:
Runtime error
Runtime error
Commit ·
5dd34a8
1
Parent(s): 9041681
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,6 +77,13 @@ def plot_seir(name):
|
|
| 77 |
yaxis_title="People")
|
| 78 |
return fig
|
| 79 |
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
yaxis_title="People")
|
| 78 |
return fig
|
| 79 |
|
| 80 |
+
with gr.Blocks() as demo:
|
| 81 |
+
gr.Markdown("""
|
| 82 |
+
## Epidemic Simulation
|
| 83 |
+
""")
|
| 84 |
+
title_input = gr.Textbox(label = 'Enter title')
|
| 85 |
+
simulate_btn = gr.Button('Simulation')
|
| 86 |
+
graph = gr.Plot()
|
| 87 |
+
simulate_btn.click(plot_seir, inputs = title_input, outputs = graph)
|
| 88 |
+
|
| 89 |
+
demo.launch()
|