RamAnanth1 commited on
Commit
5dd34a8
·
1 Parent(s): 9041681

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -77,6 +77,13 @@ def plot_seir(name):
77
  yaxis_title="People")
78
  return fig
79
 
80
- graph = gr.Plot()
81
- iface = gr.Interface(fn=plot_seir, inputs="text", outputs=graph)
82
- iface.launch()
 
 
 
 
 
 
 
 
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()