Spaces:
Runtime error
Runtime error
AchyuthGamer
commited on
Commit
•
0dd9c88
1
Parent(s):
78dadd9
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ import emoji
|
|
12 |
text_gen=gr.Interface.load("spaces/phenomenon1981/MagicPrompt-Stable-Diffusion")
|
13 |
def get_prompts(prompt_text):
|
14 |
if prompt_text:
|
15 |
-
return text_gen(prompt_text + " movie,
|
16 |
else:
|
17 |
return text_gen("")
|
18 |
proc1=gr.Interface.load("models/digiplay/majicMIX_realistic_v6")
|
@@ -29,7 +29,7 @@ restart_thread.start()
|
|
29 |
|
30 |
|
31 |
queue = Queue()
|
32 |
-
queue_threshold =
|
33 |
|
34 |
#Don't add noise to the first picture no matter what (the point of noise is to get varied outputs, the first one doesn't need to vary about anything)
|
35 |
def noadd_random_noise(prompt, noise_level=0.00):
|
@@ -186,5 +186,5 @@ with gr.Blocks(css='style.css') as demo:
|
|
186 |
"""
|
187 |
)
|
188 |
|
189 |
-
demo.launch(enable_queue=True, inline=True)
|
190 |
-
block.queue(concurrency_count=
|
|
|
12 |
text_gen=gr.Interface.load("spaces/phenomenon1981/MagicPrompt-Stable-Diffusion")
|
13 |
def get_prompts(prompt_text):
|
14 |
if prompt_text:
|
15 |
+
return text_gen(prompt_text + " movie, realistic, 8k, cyberpunk, highly detailed, ultra super realism, realism, high graphics")
|
16 |
else:
|
17 |
return text_gen("")
|
18 |
proc1=gr.Interface.load("models/digiplay/majicMIX_realistic_v6")
|
|
|
29 |
|
30 |
|
31 |
queue = Queue()
|
32 |
+
queue_threshold = 50
|
33 |
|
34 |
#Don't add noise to the first picture no matter what (the point of noise is to get varied outputs, the first one doesn't need to vary about anything)
|
35 |
def noadd_random_noise(prompt, noise_level=0.00):
|
|
|
186 |
"""
|
187 |
)
|
188 |
|
189 |
+
demo.launch(enable_queue=True, inline=True, share=True)
|
190 |
+
block.queue(concurrency_count=50)
|