Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -53,10 +53,6 @@ with gr.Blocks() as myface:
53
  prompt=gr.Textbox(label="Prettified Prompt")
54
  run=gr.Button("Launch")
55
 
56
- with gr.Row():
57
- gr.Column()
58
- with gr.Column():
59
- clear_btn=gr.Button("Test")
60
 
61
  with gr.Row():
62
  output1=gr.Image(label="DreamlikeArt PhotoReal 1")
@@ -76,9 +72,6 @@ with gr.Blocks() as myface:
76
  #run.click(set_models, inputs=[model_name1, model_name2, model_name3, model_name4], outputs=[proc1,proc2,proc3,proc4])
77
  #run.click(send_it, inputs=[prompt], outputs=[output1, output2, output3, output4])
78
 
79
- def clear_queue():
80
-
81
- myface.queue.clear()
82
 
83
  see_prompts.click(get_prompts, inputs=[input_text], outputs=[prompt])
84
 
@@ -92,4 +85,4 @@ with gr.Blocks() as myface:
92
  run.click(send_it8, inputs=[prompt], outputs=[output8])
93
 
94
  myface.queue(concurrency_count=8)
95
- myface.launch(enable_queue=True,inline=True,max_threads=440)
 
53
  prompt=gr.Textbox(label="Prettified Prompt")
54
  run=gr.Button("Launch")
55
 
 
 
 
 
56
 
57
  with gr.Row():
58
  output1=gr.Image(label="DreamlikeArt PhotoReal 1")
 
72
  #run.click(set_models, inputs=[model_name1, model_name2, model_name3, model_name4], outputs=[proc1,proc2,proc3,proc4])
73
  #run.click(send_it, inputs=[prompt], outputs=[output1, output2, output3, output4])
74
 
 
 
 
75
 
76
  see_prompts.click(get_prompts, inputs=[input_text], outputs=[prompt])
77
 
 
85
  run.click(send_it8, inputs=[prompt], outputs=[output8])
86
 
87
  myface.queue(concurrency_count=8)
88
+ myface.launch(enable_queue=True,inline=True,max_threads=30)