Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import pandas as pd
|
|
| 3 |
import gradio as gr
|
| 4 |
|
| 5 |
# Initialize the sentiment analysis pipeline
|
| 6 |
-
sentiment_pipeline = pipeline("sentiment-analysis")
|
| 7 |
|
| 8 |
def analyze_csv(file_path):
|
| 9 |
# Read the CSV file
|
|
|
|
| 3 |
import gradio as gr
|
| 4 |
|
| 5 |
# Initialize the sentiment analysis pipeline
|
| 6 |
+
sentiment_pipeline = pipeline("sentiment-analysis", model="distilbert-base-uncased-finetuned-sst-2-english", framework="pt")
|
| 7 |
|
| 8 |
def analyze_csv(file_path):
|
| 9 |
# Read the CSV file
|