Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,10 +9,9 @@ st.markdown("<h1 style='text-align: center; color: yellow;'>Chatbot SII</h1>", u
|
|
9 |
st.header("Un ChatBot 🤖🦾 entrenado con preguntas frecuentes del sitio del servicios de impuestos interno de Chile.")
|
10 |
|
11 |
pregunta = st.text_area('Ingresa tu pregunta:', value="Que es un APA?")
|
12 |
-
|
13 |
|
14 |
chain = get_chain(st.secrets['OPENAI_API_KEY'])
|
15 |
-
tmp_button = st.button("CLICK")
|
16 |
if tmp_button: #Esperar al boton
|
17 |
out = chain.invoke(pregunta)
|
18 |
st.write(f"<h1 style='text-align: right; color: red;'>{out}</h1>", unsafe_allow_html=True)
|
|
|
9 |
st.header("Un ChatBot 🤖🦾 entrenado con preguntas frecuentes del sitio del servicios de impuestos interno de Chile.")
|
10 |
|
11 |
pregunta = st.text_area('Ingresa tu pregunta:', value="Que es un APA?")
|
12 |
+
tmp_button = st.button("CLICK")
|
13 |
|
14 |
chain = get_chain(st.secrets['OPENAI_API_KEY'])
|
|
|
15 |
if tmp_button: #Esperar al boton
|
16 |
out = chain.invoke(pregunta)
|
17 |
st.write(f"<h1 style='text-align: right; color: red;'>{out}</h1>", unsafe_allow_html=True)
|