asahi417 commited on
Commit
5480cff
1 Parent(s): 7726d37

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. requirements.txt +3 -1
app.py CHANGED
@@ -5,7 +5,7 @@ from panna import SD3
5
 
6
  model = SD3("stabilityai/stable-diffusion-3-medium-diffusers")
7
  title = ("# [Stable Diffusion 3 Medium](https://huggingface.co/stabilityai/stable-diffusion-3-medium)\n"
8
- "The demo is part of [panna](https://github.com/abacws-abacus/panna) project.")
9
  examples = [
10
  "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
11
  "A female model, high quality, fashion, Paris, Vogue, Maison Margiela, 8k",
@@ -45,8 +45,8 @@ with gr.Blocks(css=css) as demo:
45
  width = gr.Slider(label="Width", minimum=256, maximum=1344, step=64, value=1024)
46
  height = gr.Slider(label="Height", minimum=256, maximum=1344, step=64, value=1024)
47
  with gr.Row():
48
- guidance_scale = gr.Slider(label="Guidance scale", minimum=0.0, maximum=10.0, step=0.1, value=7.5)
49
- num_inference_steps = gr.Slider(label="Inference steps", minimum=1, maximum=50, step=1, value=50)
50
  gr.Examples(examples=examples, inputs=[prompt])
51
  gr.on(
52
  triggers=[run_button.click, prompt.submit, negative_prompt.submit],
 
5
 
6
  model = SD3("stabilityai/stable-diffusion-3-medium-diffusers")
7
  title = ("# [Stable Diffusion 3 Medium](https://huggingface.co/stabilityai/stable-diffusion-3-medium)\n"
8
+ "The demo is part of [panna](https://github.com/asahi417/panna) project.")
9
  examples = [
10
  "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
11
  "A female model, high quality, fashion, Paris, Vogue, Maison Margiela, 8k",
 
45
  width = gr.Slider(label="Width", minimum=256, maximum=1344, step=64, value=1024)
46
  height = gr.Slider(label="Height", minimum=256, maximum=1344, step=64, value=1024)
47
  with gr.Row():
48
+ guidance_scale = gr.Slider(label="Guidance scale", minimum=0.0, maximum=10.0, step=0.1, value=7)
49
+ num_inference_steps = gr.Slider(label="Inference steps", minimum=1, maximum=50, step=1, value=28)
50
  gr.Examples(examples=examples, inputs=[prompt])
51
  gr.on(
52
  triggers=[run_button.click, prompt.submit, negative_prompt.submit],
requirements.txt CHANGED
@@ -1,3 +1,5 @@
 
 
1
  accelerate
2
  sentencepiece
3
- panna
 
1
+ git+https://github.com/rwightman/pytorch-image-models.git
2
+ git+https://github.com/huggingface/diffusers.git
3
  accelerate
4
  sentencepiece
5
+ panna>=0.0.4