hysts HF staff commited on
Commit
d3f1a0c
1 Parent(s): 8ae4526
Files changed (1) hide show
  1. app.py +14 -15
app.py CHANGED
@@ -64,22 +64,21 @@ with gr.Blocks(css='style.css') as demo:
64
 
65
  with gr.Accordion(label='Base model', open=False):
66
  with gr.Row():
67
- with gr.Column():
68
- current_base_model = gr.Text(label='Current base model')
69
- with gr.Column(scale=0.3):
70
- check_base_model_button = gr.Button('Check current base model')
71
  with gr.Row():
72
- with gr.Column():
73
- new_base_model_id = gr.Text(
74
- label='New base model',
75
- max_lines=1,
76
- placeholder='runwayml/stable-diffusion-v1-5',
77
- info=
78
- 'The base model must be compatible with Stable Diffusion v1.5.',
79
- interactive=ALLOW_CHANGING_BASE_MODEL)
80
- with gr.Column(scale=0.3):
81
- change_base_model_button = gr.Button(
82
- 'Change base model', interactive=ALLOW_CHANGING_BASE_MODEL)
83
  if not ALLOW_CHANGING_BASE_MODEL:
84
  gr.Markdown(
85
  '''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.'''
 
64
 
65
  with gr.Accordion(label='Base model', open=False):
66
  with gr.Row():
67
+ current_base_model = gr.Text(label='Current base model')
68
+ check_base_model_button = gr.Button('Check current base model',
69
+ scale=0.15)
 
70
  with gr.Row():
71
+ new_base_model_id = gr.Text(
72
+ label='New base model',
73
+ max_lines=1,
74
+ placeholder='runwayml/stable-diffusion-v1-5',
75
+ info=
76
+ 'The base model must be compatible with Stable Diffusion v1.5.',
77
+ interactive=ALLOW_CHANGING_BASE_MODEL)
78
+ change_base_model_button = gr.Button(
79
+ 'Change base model',
80
+ interactive=ALLOW_CHANGING_BASE_MODEL,
81
+ scale=0.15)
82
  if not ALLOW_CHANGING_BASE_MODEL:
83
  gr.Markdown(
84
  '''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.'''