Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files- app.py +5 -5
- requirements.txt +1 -1
app.py
CHANGED
@@ -14,15 +14,15 @@ for n in range(1, 10):
|
|
14 |
|
15 |
@spaces.GPU()
|
16 |
def infer(init_image, prompt, negative_prompt, seed, guidance_scale, controlnet_conditioning_scale, num_inference_steps):
|
17 |
-
return model
|
18 |
-
image=
|
19 |
-
prompt=
|
20 |
-
negative_prompt=
|
21 |
guidance_scale=guidance_scale,
|
22 |
controlnet_conditioning_scale=controlnet_conditioning_scale,
|
23 |
num_inference_steps=num_inference_steps,
|
24 |
seed=seed
|
25 |
-
)
|
26 |
|
27 |
|
28 |
with gr.Blocks() as demo:
|
|
|
14 |
|
15 |
@spaces.GPU()
|
16 |
def infer(init_image, prompt, negative_prompt, seed, guidance_scale, controlnet_conditioning_scale, num_inference_steps):
|
17 |
+
return model(
|
18 |
+
image=init_image,
|
19 |
+
prompt=prompt,
|
20 |
+
negative_prompt=negative_prompt,
|
21 |
guidance_scale=guidance_scale,
|
22 |
controlnet_conditioning_scale=controlnet_conditioning_scale,
|
23 |
num_inference_steps=num_inference_steps,
|
24 |
seed=seed
|
25 |
+
)
|
26 |
|
27 |
|
28 |
with gr.Blocks() as demo:
|
requirements.txt
CHANGED
@@ -2,4 +2,4 @@ git+https://github.com/huggingface/diffusers.git
|
|
2 |
git+https://github.com/rwightman/pytorch-image-models.git
|
3 |
accelerate
|
4 |
sentencepiece
|
5 |
-
panna>=0.0
|
|
|
2 |
git+https://github.com/rwightman/pytorch-image-models.git
|
3 |
accelerate
|
4 |
sentencepiece
|
5 |
+
panna>=0.1.0
|