selfitcamera commited on
Commit
b4c4614
1 Parent(s): d1625e3
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -16,7 +16,6 @@ def onClick(cloth_id, pose_image, pose_id, size, request: gr.Request):
16
  # print(res)
17
  assert os.path.exists(res), res
18
  return res, "Done! Use the pre-run results directly, the cloth size does not take effect "
19
-
20
  else:
21
  try:
22
  client_ip = request.client.host
@@ -129,7 +128,9 @@ with gr.Blocks(css=css) as demo:
129
  with gr.Column():
130
  with gr.Column():
131
  run_button = gr.Button(value="Run")
132
- res_image = gr.Image(label="result image", value=None)
 
 
133
  info_text = gr.Textbox(value="", interactive=False,
134
  label='runtime information')
135
 
 
16
  # print(res)
17
  assert os.path.exists(res), res
18
  return res, "Done! Use the pre-run results directly, the cloth size does not take effect "
 
19
  else:
20
  try:
21
  client_ip = request.client.host
 
128
  with gr.Column():
129
  with gr.Column():
130
  run_button = gr.Button(value="Run")
131
+
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)
134
  info_text = gr.Textbox(value="", interactive=False,
135
  label='runtime information')
136