jdmartinev commited on
Commit
2b34aa2
·
1 Parent(s): 05081b2
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ def classify_text(input_text,id2label):
11
  inputs = tokenizer(input_text, return_tensors="pt")
12
  outputs = model(**inputs)
13
  pred = np.argmax(outputs)
14
- return(f"Predicted class: {id2label[pred]}")
15
 
16
  demo = gr.Interface(classify_text, "text", "text")
17
  demo.launch()
 
11
  inputs = tokenizer(input_text, return_tensors="pt")
12
  outputs = model(**inputs)
13
  pred = np.argmax(outputs)
14
+ return(pred)
15
 
16
  demo = gr.Interface(classify_text, "text", "text")
17
  demo.launch()