Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,12 @@ def emotionClassifier(text):
|
|
8 |
translation = ec.predict([text])
|
9 |
res=translation[0]
|
10 |
return res
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
inputs = gr.inputs.Textbox(label="Text")
|
12 |
outpts=gr.outputs.Textbox(label="Output")
|
13 |
|
|
|
8 |
translation = ec.predict([text])
|
9 |
res=translation[0]
|
10 |
return res
|
11 |
+
|
12 |
+
'''
|
13 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
14 |
+
tokenizer = AutoTokenizer.from_pretrained("MilaNLProc/xlm-emo-t")
|
15 |
+
model = AutoModelForSequenceClassification.from_pretrained("MilaNLProc/xlm-emo-t")
|
16 |
+
'''
|
17 |
inputs = gr.inputs.Textbox(label="Text")
|
18 |
outpts=gr.outputs.Textbox(label="Output")
|
19 |
|