Lord-Raven
commited on
Commit
·
56b5d66
1
Parent(s):
0388cf1
Messing with return value.
Browse files
app.py
CHANGED
@@ -5,7 +5,9 @@ from transformers import pipeline
|
|
5 |
classifier = pipeline("text-classification", model="SamLowe/roberta-base-go_emotions")
|
6 |
|
7 |
def predict(text):
|
8 |
-
|
|
|
|
|
9 |
|
10 |
demo = gr.Interface(
|
11 |
fn = predict,
|
|
|
5 |
classifier = pipeline("text-classification", model="SamLowe/roberta-base-go_emotions")
|
6 |
|
7 |
def predict(text):
|
8 |
+
result = classifier(text)
|
9 |
+
printf(f"{result}")
|
10 |
+
return result
|
11 |
|
12 |
demo = gr.Interface(
|
13 |
fn = predict,
|