selfitcamera commited on
Commit
e6c4947
1 Parent(s): d5574e8
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -66,7 +66,7 @@ def onLoad(request: gr.Request):
66
  infs = getAllInfs(ApiUrl, OpenId, ApiKey, client_ip)
67
  print(client_ip, 'history infs: ', len(infs))
68
  print(infs)
69
-
70
  for i, inf in enumerate(infs):
71
  if i>4: continue
72
  pose = inf['pose']
@@ -130,9 +130,9 @@ with gr.Blocks(css=css) as demo:
130
  with gr.Column():
131
  run_button = gr.Button(value="Run")
132
  init_res = get_result_example(cloth_examples[0][0], pose_examples[0][0])
133
- # res_image = gr.Image(label="result image", value=init_res, type="filepath")
134
- res_image = gr.Image(label="result image", value=cv2.imread(init_res),
135
- type="numpy")
136
  info_text = gr.Textbox(value="", interactive=False,
137
  label='runtime information')
138
 
 
66
  infs = getAllInfs(ApiUrl, OpenId, ApiKey, client_ip)
67
  print(client_ip, 'history infs: ', len(infs))
68
  print(infs)
69
+
70
  for i, inf in enumerate(infs):
71
  if i>4: continue
72
  pose = inf['pose']
 
130
  with gr.Column():
131
  run_button = gr.Button(value="Run")
132
  init_res = get_result_example(cloth_examples[0][0], pose_examples[0][0])
133
+ res_image = gr.Image(label="result image", value=None, type="filepath")
134
+ # res_image = gr.Image(label="result image", value=cv2.imread(init_res),
135
+ # type="numpy")
136
  info_text = gr.Textbox(value="", interactive=False,
137
  label='runtime information')
138