Spaces:
Runtime error
Runtime error
city535367
commited on
Commit
•
8ec293e
1
Parent(s):
a229749
ipy
Browse files
app.py
CHANGED
@@ -118,7 +118,7 @@ def infer2(prompt):
|
|
118 |
|
119 |
"""#使用 gradio web api"""
|
120 |
|
121 |
-
from IPython.display import clear_output
|
122 |
|
123 |
with gr.Blocks() as demo:
|
124 |
|
@@ -128,6 +128,7 @@ with gr.Blocks() as demo:
|
|
128 |
gallery = gr.Gallery(label="產生圖片", show_label=False).style(grid=[2], height="auto")
|
129 |
btn.click(infer,inputs=text, outputs=gallery) #infer2 ä¸æ–‡
|
130 |
|
131 |
-
|
|
|
132 |
demo.launch()
|
133 |
|
|
|
118 |
|
119 |
"""#使用 gradio web api"""
|
120 |
|
121 |
+
#from IPython.display import clear_output
|
122 |
|
123 |
with gr.Blocks() as demo:
|
124 |
|
|
|
128 |
gallery = gr.Gallery(label="產生圖片", show_label=False).style(grid=[2], height="auto")
|
129 |
btn.click(infer,inputs=text, outputs=gallery) #infer2 ä¸æ–‡
|
130 |
|
131 |
+
|
132 |
+
#clear_output()
|
133 |
demo.launch()
|
134 |
|