Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,11 +11,11 @@ with st.status("Cargando app...", expanded=True) as status:
|
|
| 11 |
|
| 12 |
analyzer = create_analyzer(task="sentiment", lang="es")
|
| 13 |
text = st.text_area('Ingresa algun texto:')
|
| 14 |
-
|
| 15 |
|
| 16 |
status.update(label="App cargada con exito!", state="complete")
|
| 17 |
|
| 18 |
if text:
|
| 19 |
-
out =
|
| 20 |
st.json(out)
|
| 21 |
st.button('Rerun')
|
|
|
|
| 11 |
|
| 12 |
analyzer = create_analyzer(task="sentiment", lang="es")
|
| 13 |
text = st.text_area('Ingresa algun texto:')
|
| 14 |
+
|
| 15 |
|
| 16 |
status.update(label="App cargada con exito!", state="complete")
|
| 17 |
|
| 18 |
if text:
|
| 19 |
+
out = analyzer.predict(text)
|
| 20 |
st.json(out)
|
| 21 |
st.button('Rerun')
|