AZILS commited on
Commit
812f159
·
verified ·
1 Parent(s): a6484d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -1340,7 +1340,7 @@ def create_interface():
1340
  with gr.Group():
1341
  gr.Markdown("### 🔧 Generator Settings")
1342
  with gr.Tabs():
1343
- with gr.TabItem("Text"):
1344
  text_gen = gr.Dropdown(
1345
  choices=["g4f", "gemini", "openai"],
1346
  label="Text Generator",
@@ -1352,7 +1352,7 @@ def create_interface():
1352
  value="gpt-4"
1353
  )
1354
 
1355
- with gr.TabItem("Image"):
1356
  image_gen = gr.Dropdown(
1357
  choices=["g4f", "prodia", "hercai", "segmind", "pollinations"],
1358
  label="Image Generator",
@@ -1364,7 +1364,7 @@ def create_interface():
1364
  value="flux"
1365
  )
1366
 
1367
- with gr.TabItem("Audio"):
1368
  tts_engine = gr.Dropdown(
1369
  choices=["edge", "elevenlabs", "gtts", "openai"],
1370
  label="Speech Engine",
@@ -1381,7 +1381,7 @@ def create_interface():
1381
  value="random"
1382
  )
1383
 
1384
- with gr.TabItem("Subtitles"):
1385
  subtitles_enabled = gr.Checkbox(label="Enable Subtitles", value=True)
1386
  highlighting_enabled = gr.Checkbox(label="Enable Word Highlighting", value=True)
1387
  subtitle_font = gr.Dropdown(
@@ -1440,15 +1440,15 @@ def create_interface():
1440
  # Right panel: Output display
1441
  with gr.Column(scale=1, min_width=400):
1442
  with gr.Tabs():
1443
- with gr.TabItem("Video", selected=True):
1444
  video_output = gr.Video(label="Generated Video", height=600)
1445
 
1446
- with gr.TabItem("Metadata"):
1447
  title_output = gr.Textbox(label="Title", lines=2)
1448
  description_output = gr.Textbox(label="Description", lines=4)
1449
  script_output = gr.Textbox(label="Script", lines=8)
1450
 
1451
- with gr.TabItem("Log"):
1452
  log_output = gr.Textbox(label="Process Log", lines=20, max_lines=100)
1453
 
1454
  # Dynamic dropdown updates
@@ -1583,4 +1583,5 @@ if __name__ == "__main__":
1583
 
1584
  # Launch the app
1585
  demo = create_interface()
1586
- demo.launch()
 
 
1340
  with gr.Group():
1341
  gr.Markdown("### 🔧 Generator Settings")
1342
  with gr.Tabs():
1343
+ with gr.Tab("Text"):
1344
  text_gen = gr.Dropdown(
1345
  choices=["g4f", "gemini", "openai"],
1346
  label="Text Generator",
 
1352
  value="gpt-4"
1353
  )
1354
 
1355
+ with gr.Tab("Image"):
1356
  image_gen = gr.Dropdown(
1357
  choices=["g4f", "prodia", "hercai", "segmind", "pollinations"],
1358
  label="Image Generator",
 
1364
  value="flux"
1365
  )
1366
 
1367
+ with gr.Tab("Audio"):
1368
  tts_engine = gr.Dropdown(
1369
  choices=["edge", "elevenlabs", "gtts", "openai"],
1370
  label="Speech Engine",
 
1381
  value="random"
1382
  )
1383
 
1384
+ with gr.Tab("Subtitles"):
1385
  subtitles_enabled = gr.Checkbox(label="Enable Subtitles", value=True)
1386
  highlighting_enabled = gr.Checkbox(label="Enable Word Highlighting", value=True)
1387
  subtitle_font = gr.Dropdown(
 
1440
  # Right panel: Output display
1441
  with gr.Column(scale=1, min_width=400):
1442
  with gr.Tabs():
1443
+ with gr.Tab("Video", selected=True):
1444
  video_output = gr.Video(label="Generated Video", height=600)
1445
 
1446
+ with gr.Tab("Metadata"):
1447
  title_output = gr.Textbox(label="Title", lines=2)
1448
  description_output = gr.Textbox(label="Description", lines=4)
1449
  script_output = gr.Textbox(label="Script", lines=8)
1450
 
1451
+ with gr.Tab("Log"):
1452
  log_output = gr.Textbox(label="Process Log", lines=20, max_lines=100)
1453
 
1454
  # Dynamic dropdown updates
 
1583
 
1584
  # Launch the app
1585
  demo = create_interface()
1586
+ demo.launch()
1587
+