Spaces:
Runtime error
Runtime error
Commit
·
7cfb5aa
1
Parent(s):
d8eac12
simplify life
Browse files
app.py
CHANGED
@@ -61,9 +61,9 @@ def setup():
|
|
61 |
pipeline = improved_diffusion.pipeline.SamplingPipeline(sampling_model_sres1, sampling_model_sres2)
|
62 |
return pipeline
|
63 |
|
64 |
-
pipeline = setup()
|
65 |
-
|
66 |
def handler(text, ts1, ts2, gs1):
|
|
|
|
|
67 |
# a = np.random.randint(0, 255, (128, 128, 3)).astype(np.uint8)
|
68 |
data = {'text': text[:380], 'guidance_scale': gs1}
|
69 |
args = {k: v for k, v in DIFFUSION_DEFAULTS.items()}
|
|
|
61 |
pipeline = improved_diffusion.pipeline.SamplingPipeline(sampling_model_sres1, sampling_model_sres2)
|
62 |
return pipeline
|
63 |
|
|
|
|
|
64 |
def handler(text, ts1, ts2, gs1):
|
65 |
+
pipeline = setup()
|
66 |
+
|
67 |
# a = np.random.randint(0, 255, (128, 128, 3)).astype(np.uint8)
|
68 |
data = {'text': text[:380], 'guidance_scale': gs1}
|
69 |
args = {k: v for k, v in DIFFUSION_DEFAULTS.items()}
|