Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,9 +62,36 @@ 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 |
-
# Bot贸n de ayuda del asistente
|
| 66 |
-
|
| 67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
|
| 69 |
preguntas = [
|
| 70 |
{
|
|
|
|
| 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 |
+
# Bot贸n de ayuda del asistente con logo
|
| 66 |
+
ayuda_logo = "https://img.freepik.com/premium-vector/minimal-ai-tech-robot-vector-illustration_589744-869.jpg"
|
| 67 |
+
st.markdown(
|
| 68 |
+
f"""
|
| 69 |
+
<style>
|
| 70 |
+
.help-button {{
|
| 71 |
+
display: flex;
|
| 72 |
+
align-items: center;
|
| 73 |
+
background-color: #007bff;
|
| 74 |
+
color: white;
|
| 75 |
+
border: none;
|
| 76 |
+
padding: 10px;
|
| 77 |
+
cursor: pointer;
|
| 78 |
+
}}
|
| 79 |
+
.help-button img {{
|
| 80 |
+
width: 30px;
|
| 81 |
+
height: 30px;
|
| 82 |
+
margin-right: 10px;
|
| 83 |
+
}}
|
| 84 |
+
</style>
|
| 85 |
+
<button class="help-button" onclick="document.getElementById('help-audio').play()">
|
| 86 |
+
<img src="{ayuda_logo}" alt="Ayuda del Asistente">
|
| 87 |
+
Ayuda del asistente
|
| 88 |
+
</button>
|
| 89 |
+
<audio id="help-audio">
|
| 90 |
+
<source src="data:audio/mp3;base64,{base64.b64encode(open('audios/instructivo.mp3', 'rb').read()).decode()}" type="audio/mp3">
|
| 91 |
+
</audio>
|
| 92 |
+
""",
|
| 93 |
+
unsafe_allow_html=True
|
| 94 |
+
)
|
| 95 |
|
| 96 |
preguntas = [
|
| 97 |
{
|