Pravin Barapatre commited on
Commit
2b35920
Β·
1 Parent(s): 1444551

Fix Gradio compatibility - remove unsupported elem_classes parameters

Browse files
Files changed (2) hide show
  1. app.py +11 -12
  2. text-to-video-generator/app.py +11 -12
app.py CHANGED
@@ -423,7 +423,7 @@ def create_interface():
423
  with gr.Blocks(title="AI Video Creator Pro", theme=gr.themes.Soft(), css=custom_css) as interface:
424
 
425
  # Professional Header
426
- with gr.Group(elem_classes="header"):
427
  gr.Markdown("""
428
  # 🎬 AI Video Creator Pro
429
  ### Transform Your Ideas Into Stunning Videos with AI-Powered Generation
@@ -432,7 +432,7 @@ def create_interface():
432
  with gr.Row():
433
  with gr.Column(scale=2):
434
  # Main Input Section
435
- with gr.Group(elem_classes="feature-card"):
436
  gr.Markdown("## 🎯 Video Generation")
437
 
438
  prompt = gr.Textbox(
@@ -507,7 +507,7 @@ def create_interface():
507
  )
508
 
509
  # Voice Section
510
- with gr.Group(elem_classes="feature-card"):
511
  gr.Markdown("## 🎀 Voice & Audio")
512
 
513
  with gr.Row():
@@ -535,22 +535,22 @@ def create_interface():
535
  )
536
 
537
  # Generate Button
538
- generate_btn = gr.Button("πŸš€ Generate Professional Video", variant="primary", size="lg", elem_classes="generate-btn")
539
 
540
  # Output Section
541
- with gr.Group(elem_classes="feature-card"):
542
  gr.Markdown("## πŸ“Ί Generated Video")
543
- status_text = gr.Textbox(label="πŸ“Š Status", interactive=False, elem_classes="status-box")
544
- video_output = gr.Video(label="🎬 Your Video", elem_classes="status-box")
545
 
546
  with gr.Column(scale=1):
547
  # Model Information
548
- with gr.Group(elem_classes="model-info"):
549
  gr.Markdown("## πŸ€– AI Model Details")
550
- model_info = gr.JSON(label="Current Model Specifications", elem_classes="model-info")
551
 
552
  # Pricing Information
553
- with gr.Group(elem_classes="pricing-info"):
554
  gr.Markdown("## πŸ’° Pricing")
555
  gr.Markdown("""
556
  **Free Tier:** 5 videos per day
@@ -579,8 +579,7 @@ def create_interface():
579
  gr.Examples(
580
  examples=examples,
581
  inputs=prompt,
582
- label="Click to try these examples",
583
- elem_classes="example-card"
584
  )
585
 
586
  # Features
 
423
  with gr.Blocks(title="AI Video Creator Pro", theme=gr.themes.Soft(), css=custom_css) as interface:
424
 
425
  # Professional Header
426
+ with gr.Group():
427
  gr.Markdown("""
428
  # 🎬 AI Video Creator Pro
429
  ### Transform Your Ideas Into Stunning Videos with AI-Powered Generation
 
432
  with gr.Row():
433
  with gr.Column(scale=2):
434
  # Main Input Section
435
+ with gr.Group():
436
  gr.Markdown("## 🎯 Video Generation")
437
 
438
  prompt = gr.Textbox(
 
507
  )
508
 
509
  # Voice Section
510
+ with gr.Group():
511
  gr.Markdown("## 🎀 Voice & Audio")
512
 
513
  with gr.Row():
 
535
  )
536
 
537
  # Generate Button
538
+ generate_btn = gr.Button("πŸš€ Generate Professional Video", variant="primary", size="lg")
539
 
540
  # Output Section
541
+ with gr.Group():
542
  gr.Markdown("## πŸ“Ί Generated Video")
543
+ status_text = gr.Textbox(label="πŸ“Š Status", interactive=False)
544
+ video_output = gr.Video(label="🎬 Your Video")
545
 
546
  with gr.Column(scale=1):
547
  # Model Information
548
+ with gr.Group():
549
  gr.Markdown("## πŸ€– AI Model Details")
550
+ model_info = gr.JSON(label="Current Model Specifications")
551
 
552
  # Pricing Information
553
+ with gr.Group():
554
  gr.Markdown("## πŸ’° Pricing")
555
  gr.Markdown("""
556
  **Free Tier:** 5 videos per day
 
579
  gr.Examples(
580
  examples=examples,
581
  inputs=prompt,
582
+ label="Click to try these examples"
 
583
  )
584
 
585
  # Features
text-to-video-generator/app.py CHANGED
@@ -423,7 +423,7 @@ def create_interface():
423
  with gr.Blocks(title="AI Video Creator Pro", theme=gr.themes.Soft(), css=custom_css) as interface:
424
 
425
  # Professional Header
426
- with gr.Group(elem_classes="header"):
427
  gr.Markdown("""
428
  # 🎬 AI Video Creator Pro
429
  ### Transform Your Ideas Into Stunning Videos with AI-Powered Generation
@@ -432,7 +432,7 @@ def create_interface():
432
  with gr.Row():
433
  with gr.Column(scale=2):
434
  # Main Input Section
435
- with gr.Group(elem_classes="feature-card"):
436
  gr.Markdown("## 🎯 Video Generation")
437
 
438
  prompt = gr.Textbox(
@@ -507,7 +507,7 @@ def create_interface():
507
  )
508
 
509
  # Voice Section
510
- with gr.Group(elem_classes="feature-card"):
511
  gr.Markdown("## 🎀 Voice & Audio")
512
 
513
  with gr.Row():
@@ -535,22 +535,22 @@ def create_interface():
535
  )
536
 
537
  # Generate Button
538
- generate_btn = gr.Button("πŸš€ Generate Professional Video", variant="primary", size="lg", elem_classes="generate-btn")
539
 
540
  # Output Section
541
- with gr.Group(elem_classes="feature-card"):
542
  gr.Markdown("## πŸ“Ί Generated Video")
543
- status_text = gr.Textbox(label="πŸ“Š Status", interactive=False, elem_classes="status-box")
544
- video_output = gr.Video(label="🎬 Your Video", elem_classes="status-box")
545
 
546
  with gr.Column(scale=1):
547
  # Model Information
548
- with gr.Group(elem_classes="model-info"):
549
  gr.Markdown("## πŸ€– AI Model Details")
550
- model_info = gr.JSON(label="Current Model Specifications", elem_classes="model-info")
551
 
552
  # Pricing Information
553
- with gr.Group(elem_classes="pricing-info"):
554
  gr.Markdown("## πŸ’° Pricing")
555
  gr.Markdown("""
556
  **Free Tier:** 5 videos per day
@@ -579,8 +579,7 @@ def create_interface():
579
  gr.Examples(
580
  examples=examples,
581
  inputs=prompt,
582
- label="Click to try these examples",
583
- elem_classes="example-card"
584
  )
585
 
586
  # Features
 
423
  with gr.Blocks(title="AI Video Creator Pro", theme=gr.themes.Soft(), css=custom_css) as interface:
424
 
425
  # Professional Header
426
+ with gr.Group():
427
  gr.Markdown("""
428
  # 🎬 AI Video Creator Pro
429
  ### Transform Your Ideas Into Stunning Videos with AI-Powered Generation
 
432
  with gr.Row():
433
  with gr.Column(scale=2):
434
  # Main Input Section
435
+ with gr.Group():
436
  gr.Markdown("## 🎯 Video Generation")
437
 
438
  prompt = gr.Textbox(
 
507
  )
508
 
509
  # Voice Section
510
+ with gr.Group():
511
  gr.Markdown("## 🎀 Voice & Audio")
512
 
513
  with gr.Row():
 
535
  )
536
 
537
  # Generate Button
538
+ generate_btn = gr.Button("πŸš€ Generate Professional Video", variant="primary", size="lg")
539
 
540
  # Output Section
541
+ with gr.Group():
542
  gr.Markdown("## πŸ“Ί Generated Video")
543
+ status_text = gr.Textbox(label="πŸ“Š Status", interactive=False)
544
+ video_output = gr.Video(label="🎬 Your Video")
545
 
546
  with gr.Column(scale=1):
547
  # Model Information
548
+ with gr.Group():
549
  gr.Markdown("## πŸ€– AI Model Details")
550
+ model_info = gr.JSON(label="Current Model Specifications")
551
 
552
  # Pricing Information
553
+ with gr.Group():
554
  gr.Markdown("## πŸ’° Pricing")
555
  gr.Markdown("""
556
  **Free Tier:** 5 videos per day
 
579
  gr.Examples(
580
  examples=examples,
581
  inputs=prompt,
582
+ label="Click to try these examples"
 
583
  )
584
 
585
  # Features