api / app.py
tonytran03's picture
Create app.py
b00f3d3 verified
raw
history blame contribute delete
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()