Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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="
|
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."
|