Commit
·
6fad6bb
1
Parent(s):
888545f
Upload webUI_rerender_v1.py
Browse files- webUI_rerender_v1.py +6 -4
webUI_rerender_v1.py
CHANGED
@@ -637,9 +637,10 @@ with block:
|
|
637 |
gr.Markdown('## Rerender A Video')
|
638 |
with gr.Row():
|
639 |
with gr.Column():
|
640 |
-
input_path = gr.
|
641 |
-
|
642 |
-
|
|
|
643 |
prompt = gr.Textbox(label='Prompt')
|
644 |
seed = gr.Slider(label='Seed',
|
645 |
minimum=0,
|
@@ -955,6 +956,7 @@ with block:
|
|
955 |
return gr.Slider.update(value=max_keyframe, maximum=max_keyframe)
|
956 |
|
957 |
input_path.change(input_changed, input_path, [interval, keyframe_count])
|
|
|
958 |
interval.change(interval_changed, interval, keyframe_count)
|
959 |
|
960 |
ips_process3 = [*ips, max_process, use_poisson]
|
@@ -965,4 +967,4 @@ with block:
|
|
965 |
run_button2.click(fn=process2, inputs=ips, outputs=[result_keyframe])
|
966 |
run_button3.click(fn=process3, inputs=ips_process3, outputs=[result_video])
|
967 |
|
968 |
-
block.
|
|
|
637 |
gr.Markdown('## Rerender A Video')
|
638 |
with gr.Row():
|
639 |
with gr.Column():
|
640 |
+
input_path = gr.Video(label='Input Video',
|
641 |
+
source='upload',
|
642 |
+
format='mp4',
|
643 |
+
visible=True)
|
644 |
prompt = gr.Textbox(label='Prompt')
|
645 |
seed = gr.Slider(label='Seed',
|
646 |
minimum=0,
|
|
|
956 |
return gr.Slider.update(value=max_keyframe, maximum=max_keyframe)
|
957 |
|
958 |
input_path.change(input_changed, input_path, [interval, keyframe_count])
|
959 |
+
input_path.upload(input_uploaded, input_path, [interval, keyframe_count])
|
960 |
interval.change(interval_changed, interval, keyframe_count)
|
961 |
|
962 |
ips_process3 = [*ips, max_process, use_poisson]
|
|
|
967 |
run_button2.click(fn=process2, inputs=ips, outputs=[result_keyframe])
|
968 |
run_button3.click(fn=process3, inputs=ips_process3, outputs=[result_video])
|
969 |
|
970 |
+
block.launch(share=True)
|