Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -697,12 +697,12 @@ with gr.Blocks(css=css) as interface:
|
|
697 |
value="Image",
|
698 |
)
|
699 |
|
700 |
-
with gr.
|
701 |
image_input = gr.Image(
|
702 |
label="Target Image", interactive=True, type="filepath"
|
703 |
)
|
704 |
|
705 |
-
with gr.
|
706 |
vid_widget = gr.Video if USE_COLAB else gr.Text
|
707 |
video_input = gr.Video(
|
708 |
label="Target Video", interactive=True
|
@@ -903,4 +903,4 @@ if __name__ == "__main__":
|
|
903 |
if USE_COLAB:
|
904 |
print("Running in colab mode")
|
905 |
|
906 |
-
interface.
|
|
|
697 |
value="Image",
|
698 |
)
|
699 |
|
700 |
+
with gr.Group(visible=True) as input_image_group:
|
701 |
image_input = gr.Image(
|
702 |
label="Target Image", interactive=True, type="filepath"
|
703 |
)
|
704 |
|
705 |
+
with gr.Group(visible=False) as input_video_group:
|
706 |
vid_widget = gr.Video if USE_COLAB else gr.Text
|
707 |
video_input = gr.Video(
|
708 |
label="Target Video", interactive=True
|
|
|
903 |
if USE_COLAB:
|
904 |
print("Running in colab mode")
|
905 |
|
906 |
+
interface.launch(concurrency_count=2, max_size=10).launch(share=USE_COLAB)
|