Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,39 +62,13 @@ def encuesta_asistente():
|
|
| 62 |
st.title("Asistente Boti Encuesta")
|
| 63 |
st.write("Este asistente te guiar谩 a trav茅s de una serie de preguntas para ayudarte a configurar tu asistente virtual")
|
| 64 |
|
| 65 |
-
#
|
| 66 |
ayuda_logo = "https://img.freepik.com/premium-vector/minimal-ai-tech-robot-vector-illustration_589744-869.jpg"
|
| 67 |
-
st.
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
align-items: center;
|
| 73 |
-
margin-bottom: 20px;
|
| 74 |
-
}}
|
| 75 |
-
.help-button {{
|
| 76 |
-
background-color: #007bff;
|
| 77 |
-
color: white;
|
| 78 |
-
border: none;
|
| 79 |
-
padding: 10px;
|
| 80 |
-
cursor: pointer;
|
| 81 |
-
}}
|
| 82 |
-
.help-logo {{
|
| 83 |
-
width: 40px;
|
| 84 |
-
height: 40px;
|
| 85 |
-
margin-right: 10px;
|
| 86 |
-
}}
|
| 87 |
-
</style>
|
| 88 |
-
<div class="help-container">
|
| 89 |
-
<img src="{ayuda_logo}" class="help-logo" alt="Ayuda del Asistente">
|
| 90 |
-
<button class="help-button" onclick="document.getElementById('help-audio').play()">Ayuda del asistente</button>
|
| 91 |
-
</div>
|
| 92 |
-
<audio id="help-audio">
|
| 93 |
-
<source src="data:audio/mp3;base64,{base64.b64encode(open('audios/instructivo.mp3', 'rb').read()).decode()}" type="audio/mp3">
|
| 94 |
-
</audio>
|
| 95 |
-
""",
|
| 96 |
-
unsafe_allow_html=True
|
| 97 |
-
)
|
| 98 |
|
| 99 |
preguntas = [
|
| 100 |
{
|
|
|
|
| 62 |
st.title("Asistente Boti Encuesta")
|
| 63 |
st.write("Este asistente te guiar谩 a trav茅s de una serie de preguntas para ayudarte a configurar tu asistente virtual")
|
| 64 |
|
| 65 |
+
# Logo de ayuda del asistente
|
| 66 |
ayuda_logo = "https://img.freepik.com/premium-vector/minimal-ai-tech-robot-vector-illustration_589744-869.jpg"
|
| 67 |
+
st.image(ayuda_logo, width=50)
|
| 68 |
+
|
| 69 |
+
# Bot贸n de ayuda del asistente
|
| 70 |
+
if st.button("Ayuda del asistente"):
|
| 71 |
+
reproducir_audio("audios/instructivo.mp3")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
preguntas = [
|
| 74 |
{
|