Update app.py
Browse files
app.py
CHANGED
@@ -1137,7 +1137,7 @@ with gr.Blocks(css=css, js=js) as demo:
|
|
1137 |
render = gr.Button("Render")
|
1138 |
input_json.input(show_json, inputs=[input_json], outputs=[processed_video, processed_zip, output_frame, output_mask, output_depth, coords])
|
1139 |
|
1140 |
-
def on_submit(uploaded_video,model_type,blur_in,coordinates):
|
1141 |
global locations
|
1142 |
locations = []
|
1143 |
avg = [0, 0]
|
@@ -1171,7 +1171,7 @@ with gr.Blocks(css=css, js=js) as demo:
|
|
1171 |
print(locations)
|
1172 |
|
1173 |
# Process the video and get the path of the output video
|
1174 |
-
output_video_path = make_video(uploaded_video,encoder=model_type,blur_data=blurin)
|
1175 |
|
1176 |
return output_video_path + (json.dumps(locations),)
|
1177 |
|
|
|
1137 |
render = gr.Button("Render")
|
1138 |
input_json.input(show_json, inputs=[input_json], outputs=[processed_video, processed_zip, output_frame, output_mask, output_depth, coords])
|
1139 |
|
1140 |
+
def on_submit(uploaded_video,model_type,blur_in,boffset,bsize,coordinates):
|
1141 |
global locations
|
1142 |
locations = []
|
1143 |
avg = [0, 0]
|
|
|
1171 |
print(locations)
|
1172 |
|
1173 |
# Process the video and get the path of the output video
|
1174 |
+
output_video_path = make_video(uploaded_video,encoder=model_type,blur_data=blurin,o=boffset,b=bsize)
|
1175 |
|
1176 |
return output_video_path + (json.dumps(locations),)
|
1177 |
|