yingzhac commited on
Commit
0791d57
·
1 Parent(s): 3c6cbd6

Fix: 完全移除示例部分以解决图片加载错误

Browse files
Files changed (1) hide show
  1. app.py +0 -14
app.py CHANGED
@@ -102,13 +102,6 @@ def infer(
102
 
103
  return image, seed, canny_image
104
 
105
-
106
- examples = [
107
- ["A fantasy landscape with mountains and a lake", None],
108
- ["A cyberpunk city street scene", None],
109
- ["A cartoon character in winter clothing", None],
110
- ]
111
-
112
  css = """
113
  #col-container {
114
  margin: 0 auto;
@@ -195,13 +188,6 @@ with gr.Blocks(css=css) as demo:
195
  value=30,
196
  )
197
 
198
- gr.Examples(
199
- examples=examples,
200
- inputs=[prompt],
201
- fn=None,
202
- cache_examples=False,
203
- )
204
-
205
  gr.on(
206
  triggers=[run_button.click],
207
  fn=infer,
 
102
 
103
  return image, seed, canny_image
104
 
 
 
 
 
 
 
 
105
  css = """
106
  #col-container {
107
  margin: 0 auto;
 
188
  value=30,
189
  )
190
 
 
 
 
 
 
 
 
191
  gr.on(
192
  triggers=[run_button.click],
193
  fn=infer,