FresherDifference commited on
Commit
e1902cd
·
verified ·
1 Parent(s): 366ef54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import os
2
  import gc
3
  import gradio as gr
@@ -316,12 +318,13 @@ with gr.Blocks() as demo:
316
  choices=list(ADAPTER_SPECS.keys()),
317
  value="Photo-to-Anime"
318
  )
 
 
319
 
320
  with gr.Accordion("Advanced Settings", open=False, visible=False):
321
  seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
322
  randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
323
  guidance_scale = gr.Slider(label="Guidance Scale", minimum=1.0, maximum=10.0, step=0.1, value=1.0)
324
- steps = gr.Slider(label="Inference Steps", minimum=1, maximum=50, step=1, value=4)
325
 
326
  gr.Examples(
327
  examples=[
 
1
+ --- START OF FILE app.py ---
2
+
3
  import os
4
  import gc
5
  import gradio as gr
 
318
  choices=list(ADAPTER_SPECS.keys()),
319
  value="Photo-to-Anime"
320
  )
321
+
322
+ steps = gr.Slider(label="Inference Steps", minimum=1, maximum=50, step=1, value=4)
323
 
324
  with gr.Accordion("Advanced Settings", open=False, visible=False):
325
  seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
326
  randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
327
  guidance_scale = gr.Slider(label="Guidance Scale", minimum=1.0, maximum=10.0, step=0.1, value=1.0)
 
328
 
329
  gr.Examples(
330
  examples=[