Spaces:
Restarting
Restarting
Update
Browse files
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 |
-
|
68 |
-
|
69 |
-
|
70 |
-
check_base_model_button = gr.Button('Check current base model')
|
71 |
with gr.Row():
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
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.'''
|