Commit ·
2b34aa2
1
Parent(s): 05081b2
app
Browse files
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(
|
| 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()
|