Update app.py
Browse files
app.py
CHANGED
@@ -320,7 +320,7 @@ def show_json(txt):
|
|
320 |
data[2][i] = data[2][i]["image"]["path"]
|
321 |
data[4][i] = data[4][i]["path"]
|
322 |
i=i+1
|
323 |
-
return data[0]["video"]["path"], data[1]["path"], data[2], data[3]["background"]["path"], data[4]
|
324 |
|
325 |
|
326 |
def seg_frame(newmask, b, d):
|
@@ -724,7 +724,7 @@ with gr.Blocks(css=css, js=js, head=head) as demo:
|
|
724 |
model3d = gr.HTML(value="""
|
725 |
<a style='color:white;font-weight:bold' href='https://freeali.se/freealise/transparent_video/' target='_blank'>Open renderer in new tab and upload your video there</a>
|
726 |
""")
|
727 |
-
input_json.input(show_json, inputs=[input_json], outputs=[processed_video, processed_zip, output_frame, output_mask, output_depth
|
728 |
|
729 |
|
730 |
def on_submit(uploaded_video,model_type,blur_in,boffset,bsize,coordinates):
|
|
|
320 |
data[2][i] = data[2][i]["image"]["path"]
|
321 |
data[4][i] = data[4][i]["path"]
|
322 |
i=i+1
|
323 |
+
return data[0]["video"]["path"], data[1]["path"], data[2], data[3]["background"]["path"], data[4]
|
324 |
|
325 |
|
326 |
def seg_frame(newmask, b, d):
|
|
|
724 |
model3d = gr.HTML(value="""
|
725 |
<a style='color:white;font-weight:bold' href='https://freeali.se/freealise/transparent_video/' target='_blank'>Open renderer in new tab and upload your video there</a>
|
726 |
""")
|
727 |
+
input_json.input(show_json, inputs=[input_json], outputs=[processed_video, processed_zip, output_frame, output_mask, output_depth])
|
728 |
|
729 |
|
730 |
def on_submit(uploaded_video,model_type,blur_in,boffset,bsize,coordinates):
|