fffiloni commited on
Commit
3737bd9
·
verified ·
1 Parent(s): 9e018c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -205,27 +205,31 @@ with gr.Blocks() as demo:
205
  fn = preprocess_image,
206
  inputs = input_image,
207
  outputs = [first_frame_path, tracking_points, trackings_input_label, points_map],
208
- queue=False
 
209
  )
210
 
211
  points_map.upload(
212
  fn = preprocess_image,
213
  inputs = [points_map],
214
  outputs = [first_frame_path, tracking_points, trackings_input_label, input_image],
215
- queue = False
 
216
  )
217
 
218
  points_map.select(
219
  fn = get_point,
220
  inputs = [point_type, tracking_points, trackings_input_label, first_frame_path],
221
  outputs = [tracking_points, trackings_input_label, points_map],
222
- queue = False
 
223
  )
224
 
225
  submit_btn.click(
226
  fn = sam_process,
227
  inputs = [input_image, checkpoint, tracking_points, trackings_input_label],
228
- outputs = [output_result, output_result_mask]
 
229
  )
230
 
231
- demo.launch(show_api=False, show_error=True)
 
205
  fn = preprocess_image,
206
  inputs = input_image,
207
  outputs = [first_frame_path, tracking_points, trackings_input_label, points_map],
208
+ queue=False,
209
+ api_visibility="private"
210
  )
211
 
212
  points_map.upload(
213
  fn = preprocess_image,
214
  inputs = [points_map],
215
  outputs = [first_frame_path, tracking_points, trackings_input_label, input_image],
216
+ queue = False,
217
+ api_visibility="private"
218
  )
219
 
220
  points_map.select(
221
  fn = get_point,
222
  inputs = [point_type, tracking_points, trackings_input_label, first_frame_path],
223
  outputs = [tracking_points, trackings_input_label, points_map],
224
+ queue = False,
225
+ api_visibility="private"
226
  )
227
 
228
  submit_btn.click(
229
  fn = sam_process,
230
  inputs = [input_image, checkpoint, tracking_points, trackings_input_label],
231
+ outputs = [output_result, output_result_mask],
232
+ api_visibility="private"
233
  )
234
 
235
+ demo.launch(show_error=True)