yanze commited on
Commit
ffd7981
·
1 Parent(s): 84ade0a
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -189,8 +189,8 @@ def create_demo():
189
  with gr.Row():
190
  with gr.Column():
191
  with gr.Row():
192
- ref_image1 = gr.Image(label="ref image 1", type="numpy", height=256)
193
- ref_image2 = gr.Image(label="ref image 2", type="numpy", height=256)
194
  with gr.Row():
195
  ref_task1 = gr.Dropdown(choices=["ip", "id", "style"], value="ip", label="task for ref image 1")
196
  ref_task2 = gr.Dropdown(choices=["ip", "id", "style"], value="ip", label="task for ref image 2")
 
189
  with gr.Row():
190
  with gr.Column():
191
  with gr.Row():
192
+ ref_image1 = gr.Image(label="ref image 1", type="filepath", height=256)
193
+ ref_image2 = gr.Image(label="ref image 2", type="filepath", height=256)
194
  with gr.Row():
195
  ref_task1 = gr.Dropdown(choices=["ip", "id", "style"], value="ip", label="task for ref image 1")
196
  ref_task2 = gr.Dropdown(choices=["ip", "id", "style"], value="ip", label="task for ref image 2")