orhir commited on
Commit
8bb6bfe
·
verified ·
1 Parent(s): 51257cb

Update gradio_utils/utils.py

Browse files
Files changed (1) hide show
  1. gradio_utils/utils.py +3 -0
gradio_utils/utils.py CHANGED
@@ -22,6 +22,7 @@ from EdgeCape.models import *
22
 
23
 
24
  def process_img(support_image, global_state):
 
25
  global_state['images']['image_orig'] = support_image
26
  if global_state["load_example"]:
27
  global_state["load_example"] = False
@@ -207,6 +208,8 @@ def process(query_img, state,
207
 
208
 
209
  def update_examples(support_img, query_image, global_state_str):
 
 
210
  example_state = json.loads(global_state_str)
211
  example_state["load_example"] = True
212
  example_state["curr_type_point"] = "start"
 
22
 
23
 
24
  def process_img(support_image, global_state):
25
+ print(global_state)
26
  global_state['images']['image_orig'] = support_image
27
  if global_state["load_example"]:
28
  global_state["load_example"] = False
 
208
 
209
 
210
  def update_examples(support_img, query_image, global_state_str):
211
+ print(global_state)
212
+
213
  example_state = json.loads(global_state_str)
214
  example_state["load_example"] = True
215
  example_state["curr_type_point"] = "start"