hysts HF staff commited on
Commit
5935f44
1 Parent(s): e8089b6
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -121,7 +121,8 @@ with gr.Blocks(css='style.css') as demo:
121
  'The base model must be compatible with Stable Diffusion v1.5.',
122
  interactive=ALLOW_CHANGING_BASE_MODEL)
123
  with gr.Column(scale=0.3):
124
- change_base_model_button = gr.Button('Change base model')
 
125
  if not ALLOW_CHANGING_BASE_MODEL:
126
  gr.Markdown(
127
  '''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>'''
 
121
  'The base model must be compatible with Stable Diffusion v1.5.',
122
  interactive=ALLOW_CHANGING_BASE_MODEL)
123
  with gr.Column(scale=0.3):
124
+ change_base_model_button = gr.Button(
125
+ 'Change base model', interactive=ALLOW_CHANGING_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>'''