Spaces:
Runtime error
Runtime error
Download app.py from tonytran03/api: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/spaces/tonytran03/api/resolve/main/app.py
- Command line
-
hf download hf://spaces/tonytran03/api/app.py
-
curl -L -o app.py https://huggingface.co/spaces/tonytran03/api/resolve/main/app.py
428 Bytes
| import gradio as gr | |
| def make_video(images, audio): | |
| # Logic để tạo video từ hình ảnh và âm thanh | |
| video = "Link đến video đã tạo" # Thay bằng quá trình tạo video | |
| return video | |
| interface = gr.Interface( | |
| fn=make_video, | |
| inputs=["image", "audio"], | |
| outputs="text", | |
| title="Make Video API", | |
| description="API tạo video từ hình ảnh và âm thanh." | |
| ) | |
| interface.launch() | |