Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -82,19 +82,15 @@ with st.status("Cargando Aplicación...", explanded=False) as status:
|
|
82 |
return_source_documents=True,
|
83 |
)
|
84 |
|
85 |
-
|
86 |
-
st.write("Finalizando...")
|
87 |
-
|
88 |
-
text = st.text_area('Ingrese su pregunta')
|
89 |
status.update(label="Finalizado!", state="complete")
|
90 |
|
91 |
def main():
|
|
|
|
|
92 |
if text:
|
93 |
out = pipe(text)
|
94 |
st.write(out)
|
95 |
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
if __name__ == "__main__":
|
100 |
main()
|
|
|
82 |
return_source_documents=True,
|
83 |
)
|
84 |
|
85 |
+
|
|
|
|
|
|
|
86 |
status.update(label="Finalizado!", state="complete")
|
87 |
|
88 |
def main():
|
89 |
+
pipe = pipeline('sentiment-analysis')
|
90 |
+
text = st.text_area('Ingrese su pregunta')
|
91 |
if text:
|
92 |
out = pipe(text)
|
93 |
st.write(out)
|
94 |
|
|
|
|
|
|
|
95 |
if __name__ == "__main__":
|
96 |
main()
|