Spaces:
Sleeping
Sleeping
Commit
·
c1392df
1
Parent(s):
8b50086
tried to fix tensor error
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ if st.button('Encontre exemplos!'):
|
|
| 43 |
try:
|
| 44 |
label = pipe(review)[0]['label']
|
| 45 |
except:
|
| 46 |
-
st.
|
| 47 |
|
| 48 |
if label == 'LABEL_0':
|
| 49 |
predictions.append('Negative')
|
|
|
|
| 43 |
try:
|
| 44 |
label = pipe(review)[0]['label']
|
| 45 |
except:
|
| 46 |
+
st.error("Ocorreu um erro de carregamento, tente novamente!")
|
| 47 |
|
| 48 |
if label == 'LABEL_0':
|
| 49 |
predictions.append('Negative')
|