asahi417 commited on
Commit
c7bd22a
1 Parent(s): dd31ab9

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -6,8 +6,7 @@ from panna import SD3
6
  model = SD3("stabilityai/stable-diffusion-3-medium-diffusers")
7
  examples = [
8
  "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
9
- "An astronaut riding a green horse",
10
- "A delicious ceviche cheesecake slice",
11
  ]
12
  css = """
13
  #col-container {
@@ -20,8 +19,8 @@ css = """
20
  @spaces.GPU
21
  def infer(prompt, negative_prompt, seed, width, height, guidance_scale, num_inference_steps):
22
  image = model.text2image(
23
- prompt=prompt,
24
- negative_prompt=negative_prompt,
25
  guidance_scale=guidance_scale,
26
  num_inference_steps=num_inference_steps,
27
  width=width,
@@ -52,6 +51,6 @@ with gr.Blocks(css=css) as demo:
52
  triggers=[run_button.click, prompt.submit, negative_prompt.submit],
53
  fn=infer,
54
  inputs=[prompt, negative_prompt, seed, width, height, guidance_scale, num_inference_steps],
55
- outputs=[result, seed]
56
  )
57
  demo.launch()
 
6
  model = SD3("stabilityai/stable-diffusion-3-medium-diffusers")
7
  examples = [
8
  "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
9
+ "A female model, high quality, fashion, Paris, Vogue, Maison Margiela, 8k",
 
10
  ]
11
  css = """
12
  #col-container {
 
19
  @spaces.GPU
20
  def infer(prompt, negative_prompt, seed, width, height, guidance_scale, num_inference_steps):
21
  image = model.text2image(
22
+ prompt=[prompt],
23
+ negative_prompt=[negative_prompt],
24
  guidance_scale=guidance_scale,
25
  num_inference_steps=num_inference_steps,
26
  width=width,
 
51
  triggers=[run_button.click, prompt.submit, negative_prompt.submit],
52
  fn=infer,
53
  inputs=[prompt, negative_prompt, seed, width, height, guidance_scale, num_inference_steps],
54
+ outputs=[result]
55
  )
56
  demo.launch()