hidfujt commited on
Commit
3a54f1b
1 Parent(s): 70c5c35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -46,10 +46,10 @@ def gen_fn(model_str, prompt):
46
  def make_me():
47
  # with gr.Tab('The Dream'):
48
  with gr.Row():
49
- txt_input = gr.Textbox(lines=2, value=kii, width=300, max_height=100)
50
  #txt_input = gr.Textbox(label='Your prompt:', lines=2, value=kii)
51
 
52
- gen_button = gr.Button('Generate images', width=150, height=30)
53
  stop_button = gr.Button('Stop', variant='secondary', interactive=False, width=150, height=30)
54
  gen_button.click(lambda s: gr.update(interactive=True), None, stop_button)
55
  gr.HTML("""
@@ -91,5 +91,5 @@ with gr.Blocks(css="div.float.svelte-1mwvhlq { position: absolute; top: va
91
 
92
 
93
 
94
- demo.queue(concurrency_count=20)
95
  demo.launch()
 
46
  def make_me():
47
  # with gr.Tab('The Dream'):
48
  with gr.Row():
49
+ txt_input = gr.Textbox(lines=3, value=kii, width=300, max_height=100)
50
  #txt_input = gr.Textbox(label='Your prompt:', lines=2, value=kii)
51
 
52
+ gen_button = gr.Button('Generate images (5 concurrent, to try and avoid "CUDA out of memory" errors)', width=150, height=30)
53
  stop_button = gr.Button('Stop', variant='secondary', interactive=False, width=150, height=30)
54
  gen_button.click(lambda s: gr.update(interactive=True), None, stop_button)
55
  gr.HTML("""
 
91
 
92
 
93
 
94
+ demo.queue(concurrency_count=5)
95
  demo.launch()