Spaces:
Runtime error
Runtime error
Commit
·
0b38e46
1
Parent(s):
93b4a68
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ def predict_sentiment(text):
|
|
| 23 |
X = [text for _ in range(len(model.input))]
|
| 24 |
a=model.predict(X, verbose=0)
|
| 25 |
return sentiment[np.around(a, decimals=0).argmax(axis=1)[0]]
|
| 26 |
-
description = "Provide an opinion regarding a movie and this app will suggest what the underlying sentiment is. "
|
| 27 |
|
| 28 |
|
| 29 |
#Gradio app
|
|
|
|
| 23 |
X = [text for _ in range(len(model.input))]
|
| 24 |
a=model.predict(X, verbose=0)
|
| 25 |
return sentiment[np.around(a, decimals=0).argmax(axis=1)[0]]
|
| 26 |
+
description = "Provide an opinion regarding a movie as input and this app will suggest what the underlying sentiment is. "
|
| 27 |
|
| 28 |
|
| 29 |
#Gradio app
|