Spaces:
Runtime error
Runtime error
phenomenon1981
commited on
Commit
•
3c715fd
1
Parent(s):
259fe5c
Update app.py
Browse files
app.py
CHANGED
@@ -8,9 +8,6 @@ import time
|
|
8 |
from queue import Queue
|
9 |
from threading import Thread
|
10 |
|
11 |
-
queue = Queue()
|
12 |
-
queue_threshold = 30
|
13 |
-
|
14 |
text_gen=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion")
|
15 |
proc1=gr.Interface.load("models/dreamlike-art/dreamlike-photoreal-2.0", live=True)
|
16 |
|
@@ -24,6 +21,8 @@ def reset_queue_periodically():
|
|
24 |
reset_queue_thread = Thread(target=reset_queue_periodically, daemon=True)
|
25 |
reset_queue_thread.start()
|
26 |
|
|
|
|
|
27 |
|
28 |
def add_random_noise(prompt, noise_level=0.07):
|
29 |
# Get the percentage of characters to add as noise
|
|
|
8 |
from queue import Queue
|
9 |
from threading import Thread
|
10 |
|
|
|
|
|
|
|
11 |
text_gen=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion")
|
12 |
proc1=gr.Interface.load("models/dreamlike-art/dreamlike-photoreal-2.0", live=True)
|
13 |
|
|
|
21 |
reset_queue_thread = Thread(target=reset_queue_periodically, daemon=True)
|
22 |
reset_queue_thread.start()
|
23 |
|
24 |
+
queue = Queue()
|
25 |
+
queue_threshold = 30
|
26 |
|
27 |
def add_random_noise(prompt, noise_level=0.07):
|
28 |
# Get the percentage of characters to add as noise
|