Spaces:
Running
on
L4
Running
on
L4
Update
Browse files
app.py
CHANGED
@@ -64,21 +64,22 @@ with gr.Blocks(css='style.css') as demo:
|
|
64 |
|
65 |
with gr.Accordion(label='Base model', open=False):
|
66 |
with gr.Row():
|
67 |
-
|
68 |
-
|
69 |
-
|
|
|
70 |
with gr.Row():
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
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.'''
|
|
|
64 |
|
65 |
with gr.Accordion(label='Base model', open=False):
|
66 |
with gr.Row():
|
67 |
+
with gr.Column(scale=5):
|
68 |
+
current_base_model = gr.Text(label='Current base model')
|
69 |
+
with gr.Column(scale=1):
|
70 |
+
check_base_model_button = gr.Button('Check current base model')
|
71 |
with gr.Row():
|
72 |
+
with gr.Column(scale=5):
|
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=1):
|
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.'''
|