Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ from queue import Queue
|
|
| 8 |
from threading import Thread
|
| 9 |
|
| 10 |
text_gen = gr.Interface.load("models/Gustavosta/MagicPrompt-Stable-Diffusion")
|
| 11 |
-
proc1 = gr.Interface.load("models/
|
| 12 |
|
| 13 |
def restart_script_periodically():
|
| 14 |
while True:
|
|
@@ -61,7 +61,7 @@ def get_prompts(prompt_text):
|
|
| 61 |
request_counter += 1
|
| 62 |
timestamp = f"{time.time()}_{request_counter}"
|
| 63 |
if prompt_text:
|
| 64 |
-
return text_gen("
|
| 65 |
else:
|
| 66 |
return text_gen("", timestamp)
|
| 67 |
|
|
|
|
| 8 |
from threading import Thread
|
| 9 |
|
| 10 |
text_gen = gr.Interface.load("models/Gustavosta/MagicPrompt-Stable-Diffusion")
|
| 11 |
+
proc1 = gr.Interface.load("models/Ashrafb/Testopenjourney-v4")
|
| 12 |
|
| 13 |
def restart_script_periodically():
|
| 14 |
while True:
|
|
|
|
| 61 |
request_counter += 1
|
| 62 |
timestamp = f"{time.time()}_{request_counter}"
|
| 63 |
if prompt_text:
|
| 64 |
+
return text_gen("mdjrny-v4 style, " + prompt_text + f" - {timestamp}")
|
| 65 |
else:
|
| 66 |
return text_gen("", timestamp)
|
| 67 |
|