Lord-Raven commited on
Commit
56b5d66
·
1 Parent(s): 0388cf1

Messing with return value.

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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
- return classifier(text)
 
 
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,