gnosticdev commited on
Commit
ae19496
·
verified ·
1 Parent(s): 22e9f48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -52,7 +52,7 @@ def generar_guion_largo(tema, custom_script=None):
52
  outputs = model.generate(
53
  inputs.input_ids,
54
  max_length=800,
55
- do_sample=True, # Añadido para habilitar temperature y top_p
56
  temperature=0.9,
57
  top_k=50,
58
  top_p=0.95,
@@ -216,7 +216,7 @@ def crear_video(prompt, custom_script, voz_seleccionada, musica=None):
216
  if os.path.exists(temp_file):
217
  os.remove(temp_file)
218
 
219
- # Interfaz mejorada
220
  with gr.Blocks(title="Generador de Videos", theme=gr.themes.Soft()) as app:
221
  gr.Markdown("# 🎬 GENERADOR AUTOMÁTICO DE VIDEOS")
222
 
@@ -260,8 +260,4 @@ with gr.Blocks(title="Generador de Videos", theme=gr.themes.Soft()) as app:
260
  )
261
 
262
  if __name__ == "__main__":
263
- app.launch(
264
- server_name="0.0.0.0",
265
- server_port=7860,
266
- enable_queue=True
267
- )
 
52
  outputs = model.generate(
53
  inputs.input_ids,
54
  max_length=800,
55
+ do_sample=True,
56
  temperature=0.9,
57
  top_k=50,
58
  top_p=0.95,
 
216
  if os.path.exists(temp_file):
217
  os.remove(temp_file)
218
 
219
+ # Interfaz mejorada sin enable_queue
220
  with gr.Blocks(title="Generador de Videos", theme=gr.themes.Soft()) as app:
221
  gr.Markdown("# 🎬 GENERADOR AUTOMÁTICO DE VIDEOS")
222
 
 
260
  )
261
 
262
  if __name__ == "__main__":
263
+ app.launch(server_name="0.0.0.0", server_port=7860)