Spaces:
Running
on
Zero
Running
on
Zero
Upload app.py
Browse files
app.py
CHANGED
@@ -86,6 +86,14 @@ with gr.Blocks(fill_width=True, elem_id="container", css=css, delete_cache=(60,
|
|
86 |
with gr.Row():
|
87 |
recom_prompt = gr.Checkbox(label="Recommended prompt", value=True, scale=1)
|
88 |
prompt_syntax = gr.Dropdown(label="Prompt Syntax", choices=PROMPT_W_OPTIONS, value=PROMPT_W_OPTIONS[1][1])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
with gr.Row():
|
90 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
|
91 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
|
@@ -109,15 +117,7 @@ with gr.Blocks(fill_width=True, elem_id="container", css=css, delete_cache=(60,
|
|
109 |
with gr.Accordion("Textual inversion", open=True):
|
110 |
active_textual_inversion = gr.Checkbox(value=False, label="Active Textual Inversion in prompt")
|
111 |
use_textual_inversion = gr.CheckboxGroup(choices=get_ti_choices(model_name.value) if active_textual_inversion.value else [], value=None, label="Use Textual Invertion in prompt")
|
112 |
-
|
113 |
-
with gr.Column(scale=4):
|
114 |
-
model_name = gr.Dropdown(label="Model", info="You can enter a huggingface model repo_id to want to use.",
|
115 |
-
choices=get_diffusers_model_list(), value=get_diffusers_model_list()[0],
|
116 |
-
allow_custom_value=True, interactive=True, min_width=320)
|
117 |
-
model_info = gr.Markdown(elem_classes="info")
|
118 |
-
with gr.Column(scale=1):
|
119 |
-
model_detail = gr.Checkbox(label="Show detail of model in list", value=False)
|
120 |
-
|
121 |
with gr.Tab("LoRA"):
|
122 |
def lora_dropdown(label, visible=True):
|
123 |
return gr.Dropdown(label=label, choices=get_all_lora_tupled_list(), value="", allow_custom_value=True, elem_classes="lora", min_width=320, visible=visible)
|
|
|
86 |
with gr.Row():
|
87 |
recom_prompt = gr.Checkbox(label="Recommended prompt", value=True, scale=1)
|
88 |
prompt_syntax = gr.Dropdown(label="Prompt Syntax", choices=PROMPT_W_OPTIONS, value=PROMPT_W_OPTIONS[1][1])
|
89 |
+
with gr.Row():
|
90 |
+
with gr.Column(scale=4):
|
91 |
+
model_name = gr.Dropdown(label="Model", info="You can enter a huggingface model repo_id to want to use.",
|
92 |
+
choices=get_diffusers_model_list(), value=get_diffusers_model_list()[0],
|
93 |
+
allow_custom_value=True, interactive=True, min_width=320)
|
94 |
+
model_info = gr.Markdown(elem_classes="info")
|
95 |
+
with gr.Column(scale=1):
|
96 |
+
model_detail = gr.Checkbox(label="Show detail of model in list", value=False)
|
97 |
with gr.Row():
|
98 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
|
99 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
|
|
|
117 |
with gr.Accordion("Textual inversion", open=True):
|
118 |
active_textual_inversion = gr.Checkbox(value=False, label="Active Textual Inversion in prompt")
|
119 |
use_textual_inversion = gr.CheckboxGroup(choices=get_ti_choices(model_name.value) if active_textual_inversion.value else [], value=None, label="Use Textual Invertion in prompt")
|
120 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
with gr.Tab("LoRA"):
|
122 |
def lora_dropdown(label, visible=True):
|
123 |
return gr.Dropdown(label=label, choices=get_all_lora_tupled_list(), value="", allow_custom_value=True, elem_classes="lora", min_width=320, visible=visible)
|