Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,9 +25,9 @@ def flip_text(prompt, negative_prompt, task, steps, sampler, cfg_scale, seed):
|
|
25 |
cfg = int(cfg_scale)
|
26 |
steps = int(steps)
|
27 |
seed = int(seed)
|
28 |
-
url_sd1 = "https://
|
29 |
-
url_sd2 = "https://
|
30 |
-
url_sd3 = "https://
|
31 |
|
32 |
if task == 'Realistic Vision 5.0':
|
33 |
model = 'Realistic Vision V5.0.safetensors+%5B614d1063%5D'
|
@@ -73,8 +73,8 @@ def flip_text(prompt, negative_prompt, task, steps, sampler, cfg_scale, seed):
|
|
73 |
|
74 |
def mirror(image_output, scale_by, method, gfpgan, codeformer):
|
75 |
|
76 |
-
url_up = "https://
|
77 |
-
url_up_f = "https://
|
78 |
|
79 |
scale_by = int(scale_by)
|
80 |
gfpgan = int(gfpgan)
|
|
|
25 |
cfg = int(cfg_scale)
|
26 |
steps = int(steps)
|
27 |
seed = int(seed)
|
28 |
+
url_sd1 = "https://stable-diffusion-open.api.replicate.com/infer"
|
29 |
+
url_sd2 = "https://api.replicate.com/predictions/10720/jobs/"
|
30 |
+
url_sd3 = "https://stable-diffusion-open.api.replicate.com/predictions/10720/output/"
|
31 |
|
32 |
if task == 'Realistic Vision 5.0':
|
33 |
model = 'Realistic Vision V5.0.safetensors+%5B614d1063%5D'
|
|
|
73 |
|
74 |
def mirror(image_output, scale_by, method, gfpgan, codeformer):
|
75 |
|
76 |
+
url_up = "https://api.replicate.com/predictions/10721/infer"
|
77 |
+
url_up_f = "https://api.replicate.com/output/10721/job/"
|
78 |
|
79 |
scale_by = int(scale_by)
|
80 |
gfpgan = int(gfpgan)
|