ZachGF commited on
Commit
bc683d5
·
verified ·
1 Parent(s): 5712007

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -17,7 +17,11 @@ def plot_graph(file):
17
  return 'plot.png'
18
 
19
  # Define the Gradio interface
20
- inputs = gr.inputs.File(label="Upload CSV File")
21
- outputs = gr.outputs.Image(type="file", label="Generated Graph")
 
 
 
 
22
 
23
- gr.Interface(fn=plot_graph, inputs=inputs, outputs=outputs, title="Tabular Data Plotter").launch()
 
17
  return 'plot.png'
18
 
19
  # Define the Gradio interface
20
+ interface = gr.Interface(
21
+ fn=plot_graph,
22
+ inputs=gr.File(label="Upload CSV File"),
23
+ outputs=gr.Image(type="file", label="Generated Graph"),
24
+ title="Tabular Data Plotter"
25
+ )
26
 
27
+ interface.launch()