Rooni commited on
Commit
de08c8a
·
verified ·
1 Parent(s): 4b831d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -82,7 +82,6 @@ def api_gradio(prompt, negative, style, width, height, num_images):
82
  return decoded_images
83
 
84
 
85
-
86
  with gr.Blocks(css=css) as demo:
87
  with gr.Column():
88
  with gr.Row():
@@ -100,8 +99,8 @@ with gr.Blocks(css=css) as demo:
100
  with gr.Row():
101
  num_images = gr.Slider(label="Количество изображений", minimum=1, maximum=4, step=1, value=1, interactive=True)
102
  with gr.Row():
103
- gallery = gr.Gallery(show_label=False).style(grid=[2], height="auto")
104
 
105
  button.click(api_gradio, inputs=[prompt, negative, style, width, height, num_images], outputs=gallery)
106
 
107
- demo.queue(max_size=100).launch(show_api=False)
 
82
  return decoded_images
83
 
84
 
 
85
  with gr.Blocks(css=css) as demo:
86
  with gr.Column():
87
  with gr.Row():
 
99
  with gr.Row():
100
  num_images = gr.Slider(label="Количество изображений", minimum=1, maximum=4, step=1, value=1, interactive=True)
101
  with gr.Row():
102
+ gallery = gr.Gallery(show_label=False, grid=[2], height="auto")
103
 
104
  button.click(api_gradio, inputs=[prompt, negative, style, width, height, num_images], outputs=gallery)
105
 
106
+ demo.queue(max_size=100).launch(show_api=False)