hysts HF staff commited on
Commit
39803df
1 Parent(s): dd9a968
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -122,7 +122,8 @@ with gr.Blocks(css='style.css') as demo:
122
  'The base model must be compatible with Stable Diffusion v1.5.',
123
  interactive=ALLOW_CHANGING_BASE_MODEL)
124
  with gr.Column(scale=0.3):
125
- change_base_model_button = gr.Button('Change base model')
 
126
  if not ALLOW_CHANGING_BASE_MODEL:
127
  gr.Markdown(
128
  '''The base model is not allowed to be changed in this Space so as not to slow down the demo, but it can be changed if you duplicate the Space. <a href="https://huggingface.co/spaces/{SPACE_ID}?duplicate=true"><img style="display: inline; margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space" /></a>'''
 
122
  'The base model must be compatible with Stable Diffusion v1.5.',
123
  interactive=ALLOW_CHANGING_BASE_MODEL)
124
  with gr.Column(scale=0.3):
125
+ change_base_model_button = gr.Button(
126
+ 'Change base model', interactive=ALLOW_CHANGING_BASE_MODEL)
127
  if not ALLOW_CHANGING_BASE_MODEL:
128
  gr.Markdown(
129
  '''The base model is not allowed to be changed in this Space so as not to slow down the demo, but it can be changed if you duplicate the Space. <a href="https://huggingface.co/spaces/{SPACE_ID}?duplicate=true"><img style="display: inline; margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space" /></a>'''