Spaces:
Sleeping
Sleeping
Download app.py from fugam/Stable-IMAGE: direct link, hf CLI and curl.
- Browser
- Download file 569 Bytes
-
https://huggingface.co/spaces/fugam/Stable-IMAGE/resolve/main/app.py
- Command line
-
hf download hf://spaces/fugam/Stable-IMAGE/app.py
-
curl -L -o app.py https://huggingface.co/spaces/fugam/Stable-IMAGE/resolve/main/app.py
569 Bytes
| import gradio as gr | |
| # دالة تنفذ تحويل النص أو الصورة إلى فيديو | |
| def convert_to_video(input_text_or_image): | |
| # هنا دير المنطق ديالك باستعمال الموديل | |
| result = f"Processing: {input_text_or_image}" | |
| return result | |
| # اختيار الأدوات المناسبة (نص أو صورة) | |
| interface = gr.Interface( | |
| fn=convert_to_video, | |
| inputs=["text", "image"], # إدخال نص أو صورة | |
| outputs="text" # نتيجة نصية | |
| ) | |
| # تشغيل الواجهة | |
| interface.launch() | |