freddyaboulton HF staff commited on
Commit
6b09a6a
·
1 Parent(s): b2eeccf
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,7 +13,7 @@ from PIL import Image
13
  SELECT_LABEL = "Select as seed"
14
 
15
  MODEL_ID = "CompVis/ldm-text2im-large-256"
16
- STEPS = 25 # while running on CPU
17
  ETA = 0.3
18
  GUIDANCE_SCALE = 6
19
 
@@ -77,7 +77,7 @@ with gr.Blocks(css=".container { max-width: 800px; margin: auto; }") as demo:
77
 
78
  def update_state(selected_index: int, value, state):
79
  if value == '':
80
- others_value = None
81
  else:
82
  others_value = ''
83
  state["selected"] = selected_index
 
13
  SELECT_LABEL = "Select as seed"
14
 
15
  MODEL_ID = "CompVis/ldm-text2im-large-256"
16
+ STEPS = 5 # while running on CPU
17
  ETA = 0.3
18
  GUIDANCE_SCALE = 6
19
 
 
77
 
78
  def update_state(selected_index: int, value, state):
79
  if value == '':
80
+ others_value = gr.components._Keywords.NO_VALUE
81
  else:
82
  others_value = ''
83
  state["selected"] = selected_index