Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -70,7 +70,7 @@ if "history" not in st.session_state:
|
|
70 |
|
71 |
# Interfaz de usuario con Streamlit
|
72 |
st.title("Chatbot Interactivo")
|
73 |
-
user_input = st.text_area(label="Usuario", value="Escribe aqu铆 tu mensaje", height=
|
74 |
|
75 |
# Mostrar historial de conversaci贸n
|
76 |
st.subheader("Historial de Conversaci贸n")
|
@@ -84,5 +84,5 @@ output = generate(user_input, history=st.session_state.history)
|
|
84 |
st.session_state.history.append((user_input, output))
|
85 |
|
86 |
# Reproducir respuesta en formato de audio
|
87 |
-
audio_file = text_to_speech(output
|
88 |
-
st.audio(audio_file, format="audio/mp3", start_time=0, key='audio')
|
|
|
70 |
|
71 |
# Interfaz de usuario con Streamlit
|
72 |
st.title("Chatbot Interactivo")
|
73 |
+
user_input = st.text_area(label="Usuario", value="Escribe aqu铆 tu mensaje", height=100)
|
74 |
|
75 |
# Mostrar historial de conversaci贸n
|
76 |
st.subheader("Historial de Conversaci贸n")
|
|
|
84 |
st.session_state.history.append((user_input, output))
|
85 |
|
86 |
# Reproducir respuesta en formato de audio
|
87 |
+
audio_file = text_to_speech(output)
|
88 |
+
st.audio(audio_file, format="audio/mp3", start_time=0, key='audio')
|