Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,11 @@ def plot_graph(file):
|
|
| 17 |
return 'plot.png'
|
| 18 |
|
| 19 |
# Define the Gradio interface
|
| 20 |
-
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
-
|
|
|
|
| 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()
|