Harisreedhar commited on
Commit
638204f
1 Parent(s): ba8992c

make default target Image

Browse files
Files changed (1) hide show
  1. app.py +21 -11
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="Video",
671
  )
672
 
673
- with gr.Box(visible=False) as input_image_group:
674
  image_input = gr.Image(
675
  label="Target Image", interactive=True, type="filepath"
676
  )
677
 
678
- with gr.Box(visible=True) as input_video_group:
679
  vid_widget = gr.Video if USE_COLAB else gr.Text
680
  video_input = gr.Video(
681
- label="Target Video Path", interactive=True
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.Column():
747
- gr.Markdown(
748
- '[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/harisreedhar)'
749
- )
750
- gr.Markdown(
751
- "### [Source code](https://github.com/harisreedhar/Swap-Mukham) . [Disclaimer](https://github.com/harisreedhar/Swap-Mukham#disclaimer) . [Gradio](https://gradio.app/)"
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