C2MV commited on
Commit
f89a13b
verified
1 Parent(s): 29307e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -9
app.py CHANGED
@@ -309,18 +309,20 @@ images = [
309
  # Gradio layout setup
310
  with gr.Blocks() as demo:
311
  with gr.Row():
312
- with gr.Column(scale=1):
313
  # Agregar el video al inicio
314
  video = gr.Video(value="video.mp4", label="Video de Introducci贸n")
315
 
316
  # Agregar las im谩genes en un grid de 3 columnas por fila
317
- for i in range(0, len(images), 3):
318
- with gr.Row():
319
- for j in range(3):
320
- if i + j < len(images):
321
- with gr.Column(scale=1):
322
- gr.Image(value=images[i + j]["path"])
323
- gr.Markdown(images[i + j]["description"])
 
 
324
 
325
  chatbot_input = gr.Textbox(label="Tu mensaje")
326
  submit_button = gr.Button("Enviar")
@@ -328,7 +330,6 @@ with gr.Blocks() as demo:
328
  chatbot_history = gr.State(value=[])
329
  image_url = gr.State(value=None)
330
 
331
- # Main accordion for categories
332
  # Main accordion for categories
333
  with gr.Accordion("Categor铆as de Preguntas", open=True):
334
 
 
309
  # Gradio layout setup
310
  with gr.Blocks() as demo:
311
  with gr.Row():
312
+ with gr.Column(scale=0.5):
313
  # Agregar el video al inicio
314
  video = gr.Video(value="video.mp4", label="Video de Introducci贸n")
315
 
316
  # Agregar las im谩genes en un grid de 3 columnas por fila
317
+ # Secci贸n de acorde贸n para las im谩genes
318
+ with gr.Accordion("Mostrar im谩genes", open=False):
319
+ for i in range(0, len(images), 3):
320
+ with gr.Row():
321
+ for j in range(3):
322
+ if i + j < len(images):
323
+ with gr.Column(scale=1):
324
+ gr.Image(value=images[i + j]["path"])
325
+ gr.Markdown(images[i + j]["description"])
326
 
327
  chatbot_input = gr.Textbox(label="Tu mensaje")
328
  submit_button = gr.Button("Enviar")
 
330
  chatbot_history = gr.State(value=[])
331
  image_url = gr.State(value=None)
332
 
 
333
  # Main accordion for categories
334
  with gr.Accordion("Categor铆as de Preguntas", open=True):
335