MrDrmm commited on
Commit
dc5049c
·
verified ·
1 Parent(s): 86bfcc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -62,7 +62,7 @@ def make_me():
62
  stop_button.click(on_stop_click, None, [gen_button, stop_button])
63
 
64
  with gr.Row():
65
- output = [gr.Image(label=m, elem_id="custom_image", tool="editor") for m in default_models]
66
  current_models = [gr.Textbox(m, visible=False) for m in default_models]
67
  for m, o in zip(current_models, output):
68
  gen_event = gen_button.click(gen_fn, [m, txt_input], o)
@@ -144,12 +144,8 @@ body, html {
144
  # Создание интерфейса
145
  with gr.Blocks(css=custom_css) as demo:
146
  make_me()
 
 
147
  demo.queue(default_concurrency_limit=240, max_size=240)
148
  demo.launch(max_threads=400, ssr_mode=True)
149
- # https://github.com/gradio-app/gradio/issues/6339
150
-
151
-
152
 
153
- # Очередь и запуск интерфейса
154
- demo.queue()
155
- demo.launch()
 
62
  stop_button.click(on_stop_click, None, [gen_button, stop_button])
63
 
64
  with gr.Row():
65
+ output = [gr.Image(label=m, elem_id="custom_image") for m in default_models] # Убрали tool="editor"
66
  current_models = [gr.Textbox(m, visible=False) for m in default_models]
67
  for m, o in zip(current_models, output):
68
  gen_event = gen_button.click(gen_fn, [m, txt_input], o)
 
144
  # Создание интерфейса
145
  with gr.Blocks(css=custom_css) as demo:
146
  make_me()
147
+
148
+ # Очередь и запуск интерфейса с параметрами
149
  demo.queue(default_concurrency_limit=240, max_size=240)
150
  demo.launch(max_threads=400, ssr_mode=True)
 
 
 
151