asahi417 commited on
Commit
40b6060
1 Parent(s): 4cf4250

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. app.py +5 -5
  2. 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.text2image(
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
- )[0]
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.9
 
2
  git+https://github.com/rwightman/pytorch-image-models.git
3
  accelerate
4
  sentencepiece
5
+ panna>=0.1.0