TheVeshup commited on
Commit
df6cfdd
·
verified ·
1 Parent(s): d1b1319

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -29,7 +29,7 @@ MAX_SEED = np.iinfo(np.int32).max
29
  MAX_IMAGE_SIZE = 1024
30
 
31
 
32
- @spaces.GPU(duration=180) # ZeroGPU decorator
33
  def infer(
34
  prompt,
35
  negative_prompt,
@@ -72,8 +72,8 @@ css = """
72
  """
73
 
74
  # Higher Defaults for Advanced Settings
75
- DEFAULT_STEPS = 50
76
- DEFAULT_GUIDANCE = 7.5
77
 
78
  with gr.Blocks(css=css) as demo:
79
  with gr.Column(elem_id="col-container"):
@@ -116,7 +116,7 @@ with gr.Blocks(css=css) as demo:
116
  minimum=256,
117
  maximum=MAX_IMAGE_SIZE,
118
  step=32,
119
- value=768, # Higher default resolution
120
  )
121
 
122
  height = gr.Slider(
@@ -124,7 +124,7 @@ with gr.Blocks(css=css) as demo:
124
  minimum=256,
125
  maximum=MAX_IMAGE_SIZE,
126
  step=32,
127
- value=768, # Higher default resolution
128
  )
129
 
130
  with gr.Row():
 
29
  MAX_IMAGE_SIZE = 1024
30
 
31
 
32
+ @spaces.GPU(duration=50) # ZeroGPU decorator
33
  def infer(
34
  prompt,
35
  negative_prompt,
 
72
  """
73
 
74
  # Higher Defaults for Advanced Settings
75
+ DEFAULT_STEPS = 40
76
+ DEFAULT_GUIDANCE = 8
77
 
78
  with gr.Blocks(css=css) as demo:
79
  with gr.Column(elem_id="col-container"):
 
116
  minimum=256,
117
  maximum=MAX_IMAGE_SIZE,
118
  step=32,
119
+ value=1024, # Higher default resolution
120
  )
121
 
122
  height = gr.Slider(
 
124
  minimum=256,
125
  maximum=MAX_IMAGE_SIZE,
126
  step=32,
127
+ value=1024, # Higher default resolution
128
  )
129
 
130
  with gr.Row():