Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import gradio as gr
|
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
## Load Pipeline
|
| 5 |
-
sentiment_pipeline
|
| 6 |
model="AfroLogicInsect/sentiment-analysis-model")
|
| 7 |
|
| 8 |
def predict_sentiment(text):
|
|
|
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
## Load Pipeline
|
| 5 |
+
sentiment_pipeline = pipeline("sentiment-analysis",
|
| 6 |
model="AfroLogicInsect/sentiment-analysis-model")
|
| 7 |
|
| 8 |
def predict_sentiment(text):
|