Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -73,8 +73,8 @@ def query(lora_id, prompt, is_negative=False, steps=28, cfg_scale=3.5, sampler="
|
|
73 |
# print(f'\033[1mGeneration {key}:\033[0m {prompt}')
|
74 |
|
75 |
# If seed is -1, generate a random seed and use it
|
76 |
-
|
77 |
-
|
78 |
|
79 |
payload = {
|
80 |
"inputs": prompt,
|
|
|
73 |
# print(f'\033[1mGeneration {key}:\033[0m {prompt}')
|
74 |
|
75 |
# If seed is -1, generate a random seed and use it
|
76 |
+
if seed == -1:
|
77 |
+
seed = random.randint(1, 1000000000)
|
78 |
|
79 |
payload = {
|
80 |
"inputs": prompt,
|