Spaces:
Sleeping
Sleeping
Pravin Barapatre
commited on
Commit
Β·
2b35920
1
Parent(s):
1444551
Fix Gradio compatibility - remove unsupported elem_classes parameters
Browse files- app.py +11 -12
- 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(
|
| 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(
|
| 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(
|
| 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"
|
| 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,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(
|
| 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(
|
| 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(
|
| 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"
|
| 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,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
|