File size: 1,950 Bytes
7168511 a1349f2 686ffea 91ed512 a1349f2 91ed512 7168511 91ed512 7168511 53264ef 7168511 53264ef 91ed512 7168511 a1349f2 53264ef 7168511 91ed512 7168511 91ed512 7168511 91ed512 7168511 a1349f2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | import gradio as gr
# Models load kiye
image_client = gr.load("models/black-forest-labs/FLUX.1-schnell")
voice_client = gr.load("models/suno/bark")
# Layout Block (Theme ko sahi jagah par set kar diya)
with gr.Blocks(theme=gr.themes.Soft(primary_hue="cyan", neutral_hue="slate")) as app:
gr.Markdown("# ๐ Nova Studio - King VFX AI")
gr.Markdown("### Create Cinematic Images, Videos & Voices Free on Mobile")
with gr.Tabs():
# ๐ผ๏ธ 1. IMAGE TAB
with gr.TabItem("๐ผ๏ธ Image Generator"):
gr.Markdown("#### Generate Ultra-Realistic Photos")
img_prompt = gr.Textbox(label="Enter Prompt", placeholder="A cute fluffy cat wearing sunglasses...")
img_btn = gr.Button("Paint Image", variant="primary")
img_output = gr.Image(label="Output Image")
img_btn.click(fn=image_client, inputs=img_prompt, outputs=img_output)
# ๐ฌ 2. VIDEO TAB
with gr.TabItem("๐ฌ Video Generator (3D VFX)"):
gr.Markdown("#### Text-to-Video Engine (King AI Style)")
vid_prompt = gr.Textbox(label="Describe the Action Scene", placeholder="Iron man flying through a burning city...")
vid_btn = gr.Button("Render VFX Video", variant="primary")
# Safe embedded player
gr.HTML('<iframe src="https://hf.space" frameborder="0" width="100%" height="600px"></iframe>')
# ๐ฃ๏ธ 3. VOICE TAB
with gr.TabItem("๐ฃ๏ธ Character Voice"):
gr.Markdown("#### Dynamic Voice Dialogue Generator")
voice_text = gr.Textbox(label="Type Character Dialogue", placeholder="Type what your character should say...")
voice_btn = gr.Button("Generate Voice", variant="primary")
voice_output = gr.Audio(label="Output Audio Sync")
voice_btn.click(fn=voice_client, inputs=voice_text, outputs=voice_output) |