Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ demo = gr.Interface(
|
|
12 |
outputs='text',
|
13 |
)"""
|
14 |
|
15 |
-
|
16 |
|
17 |
def predict(text):
|
18 |
return pipe(text)[0]["label"]
|
|
|
12 |
outputs='text',
|
13 |
)"""
|
14 |
|
15 |
+
pipe = pipeline("sentiment-analysis", model="michellejieli/emotion_text_classifier")
|
16 |
|
17 |
def predict(text):
|
18 |
return pipe(text)[0]["label"]
|