Spaces:
Build error
Build error
abdulmatinomotoso
commited on
Commit
•
83cf4cd
1
Parent(s):
1e6c50d
Update app.py
Browse files
app.py
CHANGED
@@ -17,6 +17,7 @@ def get_emotion(sentence):
|
|
17 |
probs = probs.cpu().detach().numpy()
|
18 |
max_index = np.argmax(probs)
|
19 |
result = labels[max_index]
|
|
|
20 |
return result
|
21 |
|
22 |
demo = gr.Interface(get_emotion, inputs=['text'],
|
|
|
17 |
probs = probs.cpu().detach().numpy()
|
18 |
max_index = np.argmax(probs)
|
19 |
result = labels[max_index]
|
20 |
+
|
21 |
return result
|
22 |
|
23 |
demo = gr.Interface(get_emotion, inputs=['text'],
|