selfitcamera commited on
Commit
3314458
1 Parent(s): b1435a4
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -127,9 +127,10 @@ with gr.Blocks(css=css) as demo:
127
  with gr.Column():
128
  with gr.Column():
129
  run_button = gr.Button(value="Run")
130
-
131
  init_res = get_result_example(cloth_examples[0][0], pose_examples[0][0])
132
- res_image = gr.Image(label="result image", value=init_res, type="filepath")
 
 
133
  info_text = gr.Textbox(value="", interactive=False,
134
  label='runtime information')
135
 
 
127
  with gr.Column():
128
  with gr.Column():
129
  run_button = gr.Button(value="Run")
 
130
  init_res = get_result_example(cloth_examples[0][0], pose_examples[0][0])
131
+ # res_image = gr.Image(label="result image", value=init_res, type="filepath")
132
+ res_image = gr.Image(label="result image", value=cv2.imread(init_res),
133
+ type="numpy")
134
  info_text = gr.Textbox(value="", interactive=False,
135
  label='runtime information')
136