soniakhamitkar commited on
Commit
f7d4c76
·
verified ·
1 Parent(s): a3f23ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def gradio_analyze(file_obj):
29
  # Define the Gradio interface
30
  iface = gr.Interface(
31
  fn=gradio_analyze,
32
- inputs=gr.File(label="Upload CSV File", file_count="single", type="file"),
33
  outputs=gr.Textbox(label="CSV with Sentiment Analysis"),
34
  title="CSV Sentiment Analysis App",
35
  description="Upload a CSV file with a 'text' column. The app will run sentiment analysis on each row and return the CSV with sentiment labels and scores."
 
29
  # Define the Gradio interface
30
  iface = gr.Interface(
31
  fn=gradio_analyze,
32
+ inputs=gr.File(label="Upload CSV File", file_count="single", type="filepath"),
33
  outputs=gr.Textbox(label="CSV with Sentiment Analysis"),
34
  title="CSV Sentiment Analysis App",
35
  description="Upload a CSV file with a 'text' column. The app will run sentiment analysis on each row and return the CSV with sentiment labels and scores."