city535367 commited on
Commit
8ec293e
•
1 Parent(s): a229749
Files changed (1) hide show
  1. app.py +3 -2
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
- clear_output()
 
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