Josedcape commited on
Commit
137e2f7
verified
1 Parent(s): 2a71ae4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -12
app.py CHANGED
@@ -6,6 +6,7 @@ from google.cloud import texttospeech
6
  from dotenv import load_dotenv
7
  from docx import Document
8
  import base64
 
9
 
10
  # Configuraci贸n de la interfaz
11
  st.set_page_config(page_title="SURVEY ASSISTANT", layout="wide")
@@ -256,18 +257,7 @@ def generar_documento():
256
  # Funci贸n para incrustar video en la p谩gina principal
257
  def incrustar_video_principal():
258
  video_path = "videos/Boty.mp4"
259
- with open(video_path, "rb") as video_file:
260
- video_bytes = video_file.read()
261
- video_base64 = base64.b64encode(video_bytes).decode()
262
- video_html = f"""
263
- <div style="width: 100%; height: auto;">
264
- <video width="100%" autoplay muted controls>
265
- <source src="data:video/mp4;base64,{video_base64}" type="video/mp4">
266
- Tu navegador no soporta la reproducci贸n de videos.
267
- </video>
268
- </div>
269
- """
270
- st.markdown(video_html, unsafe_allow_html=True)
271
 
272
  # Estilos personalizados
273
  st.markdown(
 
6
  from dotenv import load_dotenv
7
  from docx import Document
8
  import base64
9
+ from streamlit_player import st_player
10
 
11
  # Configuraci贸n de la interfaz
12
  st.set_page_config(page_title="SURVEY ASSISTANT", layout="wide")
 
257
  # Funci贸n para incrustar video en la p谩gina principal
258
  def incrustar_video_principal():
259
  video_path = "videos/Boty.mp4"
260
+ st_player(video_path)
 
 
 
 
 
 
 
 
 
 
 
261
 
262
  # Estilos personalizados
263
  st.markdown(