awacke1 commited on
Commit
77a9e5b
·
1 Parent(s): b38b06a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("records.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 records.csv")
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