Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def write_csv(record_count, topic, intervention):
|
|
13 |
|
14 |
# Create a function to plot the data from the CSV file
|
15 |
def plot_data():
|
16 |
-
df = pd.read_csv("
|
17 |
fig = px.scatter(df, x="RecordCount", y="Intervention", color="Topic")
|
18 |
return fig
|
19 |
|
@@ -27,7 +27,7 @@ inputs = [
|
|
27 |
# Define the outputs for the Gradio interface
|
28 |
outputs = [
|
29 |
gr.Plot(plot_data),
|
30 |
-
gr.Textbox(label="Data written to
|
31 |
]
|
32 |
|
33 |
# Create the Gradio interface
|
|
|
13 |
|
14 |
# Create a function to plot the data from the CSV file
|
15 |
def plot_data():
|
16 |
+
df = pd.read_csv("testfile.csv")
|
17 |
fig = px.scatter(df, x="RecordCount", y="Intervention", color="Topic")
|
18 |
return fig
|
19 |
|
|
|
27 |
# Define the outputs for the Gradio interface
|
28 |
outputs = [
|
29 |
gr.Plot(plot_data),
|
30 |
+
gr.Textbox(label="Data written to testfile.csv")
|
31 |
]
|
32 |
|
33 |
# Create the Gradio interface
|