Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -52,21 +52,17 @@ def pred(product_name, orientation):
|
|
52 |
with gr.Blocks() as demo:
|
53 |
gr.Markdown(
|
54 |
"""
|
55 |
-
|
56 |
-
Create video ads based on your product name using AI
|
57 |
-
### Note : the video generation takes about 2-4 minutes
|
58 |
"""
|
59 |
)
|
60 |
dimension = gr.Dropdown(
|
61 |
["Shorts/Reels/TikTok (1080 x 1920)", "Facebook/Youtube Videos (1920 x 1080)", "Square (1080 x 1080)"],
|
62 |
label="Video Dimension", info="Choose dimension"
|
63 |
)
|
64 |
-
product_name = gr.Textbox(label="
|
65 |
-
captions = gr.Textbox(label="
|
66 |
video = gr.Video()
|
67 |
-
btn = gr.Button("
|
68 |
btn.click(pred, inputs=[product_name, dimension], outputs=[captions,video])
|
69 |
-
|
70 |
-
|
71 |
|
72 |
demo.launch()
|
|
|
52 |
with gr.Blocks() as demo:
|
53 |
gr.Markdown(
|
54 |
"""
|
55 |
+
### Note : Thời gian tạo 1 video là khoảng 3-4 phút
|
|
|
|
|
56 |
"""
|
57 |
)
|
58 |
dimension = gr.Dropdown(
|
59 |
["Shorts/Reels/TikTok (1080 x 1920)", "Facebook/Youtube Videos (1920 x 1080)", "Square (1080 x 1080)"],
|
60 |
label="Video Dimension", info="Choose dimension"
|
61 |
)
|
62 |
+
product_name = gr.Textbox(label="Tên Sản Phẩm")
|
63 |
+
captions = gr.Textbox(label="Chú Thích")
|
64 |
video = gr.Video()
|
65 |
+
btn = gr.Button("Bắt Đầu Tạo Video")
|
66 |
btn.click(pred, inputs=[product_name, dimension], outputs=[captions,video])
|
|
|
|
|
67 |
|
68 |
demo.launch()
|