Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
|
| 3 |
# Load the sentiment analysis pipeline
|
| 4 |
sentiment_pipeline = pipeline("sentiment-analysis")
|
| 5 |
def analyze_sentiment(text):
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from transformers import pipeline
|
| 3 |
# Load the sentiment analysis pipeline
|
| 4 |
sentiment_pipeline = pipeline("sentiment-analysis")
|
| 5 |
def analyze_sentiment(text):
|