multimodalart HF staff commited on
Commit
2bb7654
1 Parent(s): 38dcde2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -19,7 +19,7 @@ pipe = pipe.to(device)
19
  MAX_SEED = np.iinfo(np.int32).max
20
  MAX_IMAGE_SIZE = 1024
21
 
22
- @spaces.GPU(duration=65) #[uncomment to use ZeroGPU]
23
  def infer(prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, true_guidance, num_inference_steps, progress=gr.Progress(track_tqdm=True)):
24
 
25
  if randomize_seed:
@@ -75,14 +75,14 @@ with gr.Blocks(css=css) as demo:
75
  with gr.Row():
76
  guidance_scale = gr.Slider(
77
  label="Distilled Guidance scale",
78
- minimum=0.0,
79
  maximum=10.0,
80
  step=0.1,
81
  value=1.0, #Replace with defaults that work for your model
82
  )
83
  true_guidance = gr.Slider(
84
  label="True CFG scale",
85
- minimum=0.0,
86
  maximum=10.0,
87
  step=0.1,
88
  value=5.0, #Replace with defaults that work for your model
 
19
  MAX_SEED = np.iinfo(np.int32).max
20
  MAX_IMAGE_SIZE = 1024
21
 
22
+ @spaces.GPU(duration=75) #[uncomment to use ZeroGPU]
23
  def infer(prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, true_guidance, num_inference_steps, progress=gr.Progress(track_tqdm=True)):
24
 
25
  if randomize_seed:
 
75
  with gr.Row():
76
  guidance_scale = gr.Slider(
77
  label="Distilled Guidance scale",
78
+ minimum=1.0,
79
  maximum=10.0,
80
  step=0.1,
81
  value=1.0, #Replace with defaults that work for your model
82
  )
83
  true_guidance = gr.Slider(
84
  label="True CFG scale",
85
+ minimum=1.0,
86
  maximum=10.0,
87
  step=0.1,
88
  value=5.0, #Replace with defaults that work for your model