kenfoo commited on
Commit
51ec05c
·
verified ·
1 Parent(s): 45af972

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -81,14 +81,14 @@ css = """
81
  }
82
  """
83
 
84
- with gr.Blocks(css=css) as demo:
85
  with gr.Column(elem_id="col-container"):
86
  gr.Markdown(" # 图像编辑 API Demo (基于 prithivMLmods/Qwen-Image-Edit-2511-LoRAs-Fast)")
87
 
88
  with gr.Row():
89
  image = gr.Image(
90
  label="上传图片",
91
- source="upload",
92
  tool=None,
93
  type="filepath",
94
  elem_id="input-image"
@@ -159,4 +159,4 @@ with gr.Blocks(css=css) as demo:
159
  )
160
 
161
  if __name__ == "__main__":
162
- demo.launch()
 
81
  }
82
  """
83
 
84
+ with gr.Blocks() as demo:
85
  with gr.Column(elem_id="col-container"):
86
  gr.Markdown(" # 图像编辑 API Demo (基于 prithivMLmods/Qwen-Image-Edit-2511-LoRAs-Fast)")
87
 
88
  with gr.Row():
89
  image = gr.Image(
90
  label="上传图片",
91
+ sources=["upload"],
92
  tool=None,
93
  type="filepath",
94
  elem_id="input-image"
 
159
  )
160
 
161
  if __name__ == "__main__":
162
+ demo.launch(css=css)