Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,12 +34,16 @@ def plot_graph(file):
|
|
| 34 |
return plot_filename
|
| 35 |
|
| 36 |
|
| 37 |
-
|
|
|
|
|
|
|
|
|
|
| 38 |
interface = gr.Interface(
|
| 39 |
fn=plot_graph,
|
| 40 |
inputs=gr.File(label="Upload CSV File"),
|
| 41 |
outputs=gr.Image(type="filepath", label="Generated Graph"),
|
| 42 |
-
title="
|
|
|
|
| 43 |
)
|
| 44 |
|
| 45 |
interface.launch()
|
|
|
|
| 34 |
return plot_filename
|
| 35 |
|
| 36 |
|
| 37 |
+
examples = [
|
| 38 |
+
["example1.csv"],
|
| 39 |
+
]
|
| 40 |
+
|
| 41 |
interface = gr.Interface(
|
| 42 |
fn=plot_graph,
|
| 43 |
inputs=gr.File(label="Upload CSV File"),
|
| 44 |
outputs=gr.Image(type="filepath", label="Generated Graph"),
|
| 45 |
+
title="Species Observation Plotter",
|
| 46 |
+
examples=examples
|
| 47 |
)
|
| 48 |
|
| 49 |
interface.launch()
|