Spaces:
Paused
Paused
arxivgpt kim commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,18 +78,21 @@ def combine_videos(background_video, overlay_video, position, scale):
|
|
| 78 |
|
| 79 |
return output_video_path
|
| 80 |
|
|
|
|
|
|
|
| 81 |
iface = gr.Interface(
|
| 82 |
fn=combine_videos,
|
| 83 |
inputs=[
|
| 84 |
-
gr.File(
|
| 85 |
-
gr.File(
|
| 86 |
-
gr.Dropdown(["
|
| 87 |
-
gr.Slider(minimum=1, maximum=10, value=5, label="Scale"),
|
| 88 |
],
|
| 89 |
-
outputs="
|
| 90 |
-
title="Combine
|
| 91 |
-
description="Upload a background video and
|
| 92 |
)
|
| 93 |
|
|
|
|
| 94 |
if __name__ == "__main__":
|
| 95 |
-
iface.launch()
|
|
|
|
| 78 |
|
| 79 |
return output_video_path
|
| 80 |
|
| 81 |
+
|
| 82 |
+
# Gradio ์ธํฐํ์ด์ค ์ค์
|
| 83 |
iface = gr.Interface(
|
| 84 |
fn=combine_videos,
|
| 85 |
inputs=[
|
| 86 |
+
gr.File(label="Background Video", type="binary"), # ํ์ผ์ ๋ฐ์ด๋๋ฆฌ ํํ๋ก ์ฒ๋ฆฌ
|
| 87 |
+
gr.File(label="Overlay Video", type="binary"), # ํ์ผ์ ๋ฐ์ด๋๋ฆฌ ํํ๋ก ์ฒ๋ฆฌ
|
| 88 |
+
gr.Dropdown(["์๋จ ์ข์ธก", "์๋จ ์ค๊ฐ", "์๋จ ์ฐ์ธก", "์ค๋จ ์ข์ธก", "์ค๋จ ์ค๊ฐ", "์ค๋จ ์ฐ์ธก", "ํ๋จ ์ข์ธก", "ํ๋จ ์ค๊ฐ", "ํ๋จ ์ฐ์ธก"], label="Position"),
|
| 89 |
+
gr.Slider(minimum=1, maximum=10, value=5, label="Scale (BAR)"),
|
| 90 |
],
|
| 91 |
+
outputs=gr.Video(label="Combined Video"),
|
| 92 |
+
title="Combine Background Removed Video with Another Video",
|
| 93 |
+
description="Upload a background removed video and another video to combine them. Select the position and scale for the background removed video."
|
| 94 |
)
|
| 95 |
|
| 96 |
+
# Gradio ์ฑ ์คํ
|
| 97 |
if __name__ == "__main__":
|
| 98 |
+
iface.launch()
|