Spaces:
Paused
Paused
Harisreedhar
commited on
Commit
·
638204f
1
Parent(s):
ba8992c
make default target Image
Browse files
app.py
CHANGED
|
@@ -667,18 +667,18 @@ with gr.Blocks(css=css) as interface:
|
|
| 667 |
input_type = gr.Radio(
|
| 668 |
["Image", "Video"],
|
| 669 |
label="Target Type",
|
| 670 |
-
value="
|
| 671 |
)
|
| 672 |
|
| 673 |
-
with gr.Box(visible=
|
| 674 |
image_input = gr.Image(
|
| 675 |
label="Target Image", interactive=True, type="filepath"
|
| 676 |
)
|
| 677 |
|
| 678 |
-
with gr.Box(visible=
|
| 679 |
vid_widget = gr.Video if USE_COLAB else gr.Text
|
| 680 |
video_input = gr.Video(
|
| 681 |
-
label="Target Video
|
| 682 |
)
|
| 683 |
with gr.Accordion("✂️ Trim video", open=False):
|
| 684 |
with gr.Column():
|
|
@@ -743,13 +743,23 @@ with gr.Blocks(css=css) as interface:
|
|
| 743 |
"🎬", interactive=False, visible=False
|
| 744 |
)
|
| 745 |
|
| 746 |
-
with gr.
|
| 747 |
-
gr.
|
| 748 |
-
|
| 749 |
-
|
| 750 |
-
|
| 751 |
-
|
| 752 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 753 |
|
| 754 |
## ------------------------------ GRADIO EVENTS ------------------------------
|
| 755 |
|
|
|
|
| 667 |
input_type = gr.Radio(
|
| 668 |
["Image", "Video"],
|
| 669 |
label="Target Type",
|
| 670 |
+
value="Image",
|
| 671 |
)
|
| 672 |
|
| 673 |
+
with gr.Box(visible=True) as input_image_group:
|
| 674 |
image_input = gr.Image(
|
| 675 |
label="Target Image", interactive=True, type="filepath"
|
| 676 |
)
|
| 677 |
|
| 678 |
+
with gr.Box(visible=False) as input_video_group:
|
| 679 |
vid_widget = gr.Video if USE_COLAB else gr.Text
|
| 680 |
video_input = gr.Video(
|
| 681 |
+
label="Target Video", interactive=True
|
| 682 |
)
|
| 683 |
with gr.Accordion("✂️ Trim video", open=False):
|
| 684 |
with gr.Column():
|
|
|
|
| 743 |
"🎬", interactive=False, visible=False
|
| 744 |
)
|
| 745 |
|
| 746 |
+
with gr.Box():
|
| 747 |
+
with gr.Row():
|
| 748 |
+
gr.Markdown(
|
| 749 |
+
"### [🤝 Sponsor](https://github.com/sponsors/harisreedhar)"
|
| 750 |
+
)
|
| 751 |
+
gr.Markdown(
|
| 752 |
+
"### [👨💻 Source code](https://github.com/harisreedhar/Swap-Mukham)"
|
| 753 |
+
)
|
| 754 |
+
gr.Markdown(
|
| 755 |
+
"### [⚠️ Disclaimer](https://github.com/harisreedhar/Swap-Mukham#disclaimer)"
|
| 756 |
+
)
|
| 757 |
+
gr.Markdown(
|
| 758 |
+
"### [🌐 Run in Colab](https://colab.research.google.com/github/harisreedhar/Swap-Mukham/blob/main/swap_mukham_colab.ipynb)"
|
| 759 |
+
)
|
| 760 |
+
gr.Markdown(
|
| 761 |
+
"### [🤗 Acknowledgements](https://github.com/harisreedhar/Swap-Mukham#acknowledgements)"
|
| 762 |
+
)
|
| 763 |
|
| 764 |
## ------------------------------ GRADIO EVENTS ------------------------------
|
| 765 |
|