Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
|
@@ -143,11 +143,11 @@ with gr.Blocks() as demo:
|
|
| 143 |
with gr.Row():
|
| 144 |
input_image = gr.Image(label="input image", interactive=True, type="filepath")
|
| 145 |
with gr.Column():
|
| 146 |
-
points_map = gr.Image(label="points map")
|
| 147 |
submit_btn = gr.Button("Submit")
|
| 148 |
output_result = gr.Gallery()
|
| 149 |
|
| 150 |
-
input_image.upload(preprocess_image, input_image, [first_frame_path, tracking_points, trackings_input_label])
|
| 151 |
|
| 152 |
points_map.select(get_point, [tracking_points, trackings_input_label, first_frame_path], [tracking_points, trackings_input_label, points_map])
|
| 153 |
|
|
|
|
| 143 |
with gr.Row():
|
| 144 |
input_image = gr.Image(label="input image", interactive=True, type="filepath")
|
| 145 |
with gr.Column():
|
| 146 |
+
points_map = gr.Image(label="points map", interactive=False)
|
| 147 |
submit_btn = gr.Button("Submit")
|
| 148 |
output_result = gr.Gallery()
|
| 149 |
|
| 150 |
+
input_image.upload(preprocess_image, input_image, [first_frame_path, tracking_points, trackings_input_label, points_map])
|
| 151 |
|
| 152 |
points_map.select(get_point, [tracking_points, trackings_input_label, first_frame_path], [tracking_points, trackings_input_label, points_map])
|
| 153 |
|