hidfujt commited on
Commit
21c4e58
1 Parent(s): 3a54f1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -4,7 +4,6 @@ from all_models import models
4
  from datetime import datetime
5
 
6
  now2 = 0
7
- kii="mohawk femboy racecar driver";
8
 
9
 
10
  def get_current_time():
@@ -46,10 +45,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=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,5 +90,5 @@ with gr.Blocks(css="div.float.svelte-1mwvhlq { position: absolute; top: va
91
 
92
 
93
 
94
- demo.queue(concurrency_count=5)
95
  demo.launch()
 
4
  from datetime import datetime
5
 
6
  now2 = 0
 
7
 
8
 
9
  def get_current_time():
 
45
  def make_me():
46
  # with gr.Tab('The Dream'):
47
  with gr.Row():
48
+ #txt_input = gr.Textbox(lines=3, width=300, max_height=100)
49
+ txt_input = gr.Textbox(label='Your prompt:', lines=3, width=300, max_height=100)
50
 
51
+ gen_button = gr.Button('Generate images', width=150, height=30)
52
  stop_button = gr.Button('Stop', variant='secondary', interactive=False, width=150, height=30)
53
  gen_button.click(lambda s: gr.update(interactive=True), None, stop_button)
54
  gr.HTML("""
 
90
 
91
 
92
 
93
+ demo.queue(concurrency_count=999)
94
  demo.launch()