Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ import os
|
|
| 4 |
import tempfile
|
| 5 |
from google.cloud import texttospeech
|
| 6 |
from dotenv import load_dotenv
|
|
|
|
| 7 |
|
| 8 |
# Configuraci贸n de la interfaz
|
| 9 |
st.set_page_config(page_title="Boti Asistente", layout="wide", initial_sidebar_state="expanded")
|
|
@@ -88,7 +89,7 @@ def encuesta_asistente():
|
|
| 88 |
|
| 89 |
audio_path = st.session_state.audio_path
|
| 90 |
audio_file = open(audio_path, "rb")
|
| 91 |
-
st.audio(audio_file.read(), format="audio/mp3")
|
| 92 |
|
| 93 |
if 'encuesta_completada' in st.session_state and st.session_state.encuesta_completada:
|
| 94 |
if st.button("Obtener Resultado de la Encuesta"):
|
|
@@ -163,6 +164,9 @@ st.markdown(
|
|
| 163 |
cursor: pointer;
|
| 164 |
text-decoration: none;
|
| 165 |
}
|
|
|
|
|
|
|
|
|
|
| 166 |
</style>
|
| 167 |
""",
|
| 168 |
unsafe_allow_html=True
|
|
@@ -194,3 +198,4 @@ def main():
|
|
| 194 |
|
| 195 |
if __name__ == "__main__":
|
| 196 |
main()
|
|
|
|
|
|
| 4 |
import tempfile
|
| 5 |
from google.cloud import texttospeech
|
| 6 |
from dotenv import load_dotenv
|
| 7 |
+
from docx import Document
|
| 8 |
|
| 9 |
# Configuraci贸n de la interfaz
|
| 10 |
st.set_page_config(page_title="Boti Asistente", layout="wide", initial_sidebar_state="expanded")
|
|
|
|
| 89 |
|
| 90 |
audio_path = st.session_state.audio_path
|
| 91 |
audio_file = open(audio_path, "rb")
|
| 92 |
+
st.audio(audio_file.read(), format="audio/mp3", start_time=0)
|
| 93 |
|
| 94 |
if 'encuesta_completada' in st.session_state and st.session_state.encuesta_completada:
|
| 95 |
if st.button("Obtener Resultado de la Encuesta"):
|
|
|
|
| 164 |
cursor: pointer;
|
| 165 |
text-decoration: none;
|
| 166 |
}
|
| 167 |
+
.stButton button {
|
| 168 |
+
color: white !important;
|
| 169 |
+
}
|
| 170 |
</style>
|
| 171 |
""",
|
| 172 |
unsafe_allow_html=True
|
|
|
|
| 198 |
|
| 199 |
if __name__ == "__main__":
|
| 200 |
main()
|
| 201 |
+
|