phenomenon1981 commited on
Commit
09ccb7d
1 Parent(s): 56436e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -7,14 +7,14 @@ from pathlib import Path
7
  text_gen=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion")
8
 
9
 
10
- proc1=gr.Interface.load("models/dreamlike-art/dreamlike-photoreal-2.0")
11
- proc2=gr.Interface.load("models/dreamlike-art/dreamlike-photoreal-2.0")
12
- proc3=gr.Interface.load("models/dreamlike-art/dreamlike-photoreal-2.0")
13
- proc4=gr.Interface.load("models/dreamlike-art/dreamlike-photoreal-2.0")
14
- proc5=gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0")
15
- proc6=gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0")
16
- proc7=gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0")
17
- proc8=gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0")
18
 
19
 
20
  def send_it1(inputs, proc1=proc1):
@@ -85,4 +85,4 @@ with gr.Blocks() as myface:
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=120)
 
7
  text_gen=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion")
8
 
9
 
10
+ proc1=gr.Interface.load("models/dreamlike-art/dreamlike-photoreal-2.0", preprocess=True, postprocess=False)
11
+ proc2=gr.Interface.load("models/dreamlike-art/dreamlike-photoreal-2.0", preprocess=True, postprocess=False)
12
+ proc3=gr.Interface.load("models/dreamlike-art/dreamlike-photoreal-2.0", preprocess=True, postprocess=False)
13
+ proc4=gr.Interface.load("models/dreamlike-art/dreamlike-photoreal-2.0", preprocess=True, postprocess=False)
14
+ proc5=gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0", preprocess=True, postprocess=False)
15
+ proc6=gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0", preprocess=True, postprocess=False)
16
+ proc7=gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0", preprocess=True, postprocess=False)
17
+ proc8=gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0", preprocess=True, postprocess=False)
18
 
19
 
20
  def send_it1(inputs, proc1=proc1):
 
85
  run.click(send_it8, inputs=[prompt], outputs=[output8])
86
 
87
  myface.queue(concurrency_count=8)
88
+ myface.launch(enable_queue=False, inline=True, max_threads=30)