Spaces:
Sleeping
Sleeping
Fix: 修改示例部分,解决参数不匹配问题
Browse files
app.py
CHANGED
@@ -104,9 +104,9 @@ def infer(
|
|
104 |
|
105 |
|
106 |
examples = [
|
107 |
-
["A fantasy landscape with mountains and a lake",
|
108 |
-
["A cyberpunk city street scene",
|
109 |
-
["A cartoon character in winter clothing",
|
110 |
]
|
111 |
|
112 |
css = """
|
@@ -197,9 +197,8 @@ with gr.Blocks(css=css) as demo:
|
|
197 |
|
198 |
gr.Examples(
|
199 |
examples=examples,
|
200 |
-
inputs=[prompt
|
201 |
-
|
202 |
-
fn=infer,
|
203 |
cache_examples=True,
|
204 |
)
|
205 |
|
|
|
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 = """
|
|
|
197 |
|
198 |
gr.Examples(
|
199 |
examples=examples,
|
200 |
+
inputs=[prompt],
|
201 |
+
fn=None,
|
|
|
202 |
cache_examples=True,
|
203 |
)
|
204 |
|