Spaces:
Sleeping
Sleeping
Download ZP7AI from Zr7Ai/ZP7AI-All-In-One: direct link, hf CLI and curl.
- Browser
- Download file 2.78 kB
-
https://huggingface.co/spaces/Zr7Ai/ZP7AI-All-In-One/resolve/main/ZP7AI
- Command line
-
hf download hf://spaces/Zr7Ai/ZP7AI-All-In-One/ZP7AI
-
curl -L -o ZP7AI https://huggingface.co/spaces/Zr7Ai/ZP7AI-All-In-One/resolve/main/ZP7AI
2.78 kB
| import gradio as gr | |
| def text_to_video(prompt): | |
| return f"๐ฌ Video Generated for: {prompt}\n(Use real video model API here)" | |
| def text_to_voice(text): | |
| return f"๐ Voice Generated for: {text}\n(Use TTS API here)" | |
| def text_to_avatar(prompt): | |
| return f"๐ง Avatar Generated for: {prompt}\n(Use avatar model API here)" | |
| def video_editor(prompt): | |
| return f"๐ Edited Video: {prompt}\n(Use video editing model API here)" | |
| def text_to_script(topic): | |
| return f"๐ Script Created for: {topic}\n(Use script model API here)" | |
| INDIAN_AVATARS = [ | |
| "Royal Indian Male", "Royal Indian Female", "South Indian Groom", | |
| "South Indian Bride", "Muslim Groom Sherwani", "Muslim Bride Hijab", | |
| "Punjabi Man Turban", "Punjabi Woman Suit", "Rajasthani Man", | |
| "Rajasthani Woman", "Gujrati Man", "Gujarati Woman", | |
| "Modern Indian Boy", "Modern Indian Girl", "South Actor Style", | |
| "Bollywood Hero Style", "Bollywood Heroine Style", | |
| ] * 10 # 100+ avatars | |
| def get_avatars(x): | |
| return "\n".join(INDIAN_AVATARS) | |
| with gr.Blocks(title="ZP7AI โ PRO AI TOOL") as app: | |
| gr.Markdown("# ๐ **ZP7AI โ All in One AI Tool (PRO Edition)**") | |
| gr.Markdown("### Text โ Video | Voice | Avatar | Editing | Script | 100+ Avatars") | |
| with gr.Tab("๐ฌ Text to Video"): | |
| prompt = gr.Textbox(label="Enter Video Prompt") | |
| video_btn = gr.Button("Generate Video") | |
| video_out = gr.Textbox(label="Output") | |
| video_btn.click(text_to_video, prompt, video_out) | |
| with gr.Tab("๐ Text to Voice"): | |
| text = gr.Textbox(label="Enter Text") | |
| voice_btn = gr.Button("Generate Voice") | |
| voice_out = gr.Textbox(label="Output") | |
| voice_btn.click(text_to_voice, text, voice_out) | |
| with gr.Tab("๐ง Text to Avatar"): | |
| avatar_prompt = gr.Textbox(label="Avatar Description") | |
| avatar_btn = gr.Button("Generate Avatar") | |
| avatar_out = gr.Textbox(label="Avatar Output") | |
| avatar_btn.click(text_to_avatar, avatar_prompt, avatar_out) | |
| with gr.Tab("๐ AI Video Editing"): | |
| edit_prompt = gr.Textbox(label="Enter Editing Instructions") | |
| edit_btn = gr.Button("Edit Video") | |
| edit_out = gr.Textbox(label="Edited Output") | |
| edit_btn.click(video_editor, edit_prompt, edit_out) | |
| with gr.Tab("๐ Text to Script"): | |
| script_topic = gr.Textbox(label="Enter Topic") | |
| script_btn = gr.Button("Generate Script") | |
| script_out = gr.Textbox(label="Script Output") | |
| script_btn.click(text_to_script, script_topic, script_out) | |
| with gr.Tab("๐ฎ๐ณ 100+ Indian Avatars"): | |
| avatar_list_btn = gr.Button("Show All Avatars") | |
| avatar_list = gr.Textbox(label="Avatar List") | |
| avatar_list_btn.click(get_avatars, None, avatar_list) | |
| app.launch() |