fffiloni commited on
Commit
2556971
1 Parent(s): 01bbb6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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