Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
@@ -76,38 +76,39 @@ It saves you the trouble of typing them in.<br>
|
|
76 |
"""
|
77 |
)
|
78 |
with gr.Column():
|
79 |
-
|
80 |
-
|
81 |
-
hf_user = gr.Textbox(label="Your HF user ID", placeholder="username", value="", max_lines=1)
|
82 |
-
hf_repo = gr.Textbox(label="New repo name", placeholder="reponame", info="If empty, auto-complete", value="", max_lines=1)
|
83 |
-
with gr.Row():
|
84 |
-
hf_token = gr.Textbox(label="Your HF write token", placeholder="hf_...", value="", max_lines=1)
|
85 |
-
civitai_key = gr.Textbox(label="Your Civitai API Key (Optional)", info="If you download model from Civitai...", placeholder="", value="", max_lines=1)
|
86 |
-
with gr.Row():
|
87 |
-
is_upload_sf = gr.Checkbox(label="Upload single safetensors file into new repo", value=False)
|
88 |
-
is_private = gr.Checkbox(label="Create private repo", value=True)
|
89 |
-
presets = gr.Radio(label="Presets", choices=list(preset_dict.keys()), value="Default")
|
90 |
-
with gr.Accordion("Advanced settings", open=False):
|
91 |
-
is_half = gr.Checkbox(label="Half precision", value=True)
|
92 |
with gr.Row():
|
93 |
-
|
94 |
-
|
95 |
with gr.Row():
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
run_button = gr.Button(value="Submit")
|
112 |
repo_urls = gr.CheckboxGroup(visible=False, choices=[], value=None)
|
113 |
output_md = gr.Markdown(label="Output", value="<br><br>", elem_classes="result")
|
|
|
76 |
"""
|
77 |
)
|
78 |
with gr.Column():
|
79 |
+
with gr.Group():
|
80 |
+
dl_url = gr.Textbox(label="URL to download", placeholder="https://huggingface.co/bluepen5805/blue_pencil-XL/blob/main/blue_pencil-XL-v7.0.0.safetensors", value="", max_lines=1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
with gr.Row():
|
82 |
+
hf_user = gr.Textbox(label="Your HF user ID", placeholder="username", value="", max_lines=1)
|
83 |
+
hf_repo = gr.Textbox(label="New repo name", placeholder="reponame", info="If empty, auto-complete", value="", max_lines=1)
|
84 |
with gr.Row():
|
85 |
+
hf_token = gr.Textbox(label="Your HF write token", placeholder="hf_...", value="", max_lines=1)
|
86 |
+
civitai_key = gr.Textbox(label="Your Civitai API Key (Optional)", info="If you download model from Civitai...", placeholder="", value="", max_lines=1)
|
87 |
+
with gr.Row():
|
88 |
+
is_upload_sf = gr.Checkbox(label="Upload single safetensors file into new repo", value=False)
|
89 |
+
is_private = gr.Checkbox(label="Create private repo", value=True)
|
90 |
+
presets = gr.Radio(label="Presets", choices=list(preset_dict.keys()), value="Default")
|
91 |
+
with gr.Accordion("Advanced settings", open=False):
|
92 |
+
is_half = gr.Checkbox(label="Half precision", value=True)
|
93 |
+
with gr.Row():
|
94 |
+
vae = gr.Dropdown(label="VAE", choices=vaes, value="", allow_custom_value=True)
|
95 |
+
scheduler = gr.Dropdown(label="Scheduler (Sampler)", choices=schedulers, value="Euler a")
|
96 |
+
with gr.Row():
|
97 |
+
with gr.Column():
|
98 |
+
lora1 = gr.Dropdown(label="LoRA1", choices=loras, value="", allow_custom_value=True, min_width=320)
|
99 |
+
lora1s = gr.Slider(minimum=-2, maximum=2, step=0.01, value=1.00, label="LoRA1 weight scale")
|
100 |
+
with gr.Column():
|
101 |
+
lora2 = gr.Dropdown(label="LoRA2", choices=loras, value="", allow_custom_value=True, min_width=320)
|
102 |
+
lora2s = gr.Slider(minimum=-2, maximum=2, step=0.01, value=1.00, label="LoRA2 weight scale")
|
103 |
+
with gr.Column():
|
104 |
+
lora3 = gr.Dropdown(label="LoRA3", choices=loras, value="", allow_custom_value=True, min_width=320)
|
105 |
+
lora3s = gr.Slider(minimum=-2, maximum=2, step=0.01, value=1.00, label="LoRA3 weight scale")
|
106 |
+
with gr.Column():
|
107 |
+
lora4 = gr.Dropdown(label="LoRA4", choices=loras, value="", allow_custom_value=True, min_width=320)
|
108 |
+
lora4s = gr.Slider(minimum=-2, maximum=2, step=0.01, value=1.00, label="LoRA4 weight scale")
|
109 |
+
with gr.Column():
|
110 |
+
lora5 = gr.Dropdown(label="LoRA5", choices=loras, value="", allow_custom_value=True, min_width=320)
|
111 |
+
lora5s = gr.Slider(minimum=-2, maximum=2, step=0.01, value=1.00, label="LoRA5 weight scale")
|
112 |
run_button = gr.Button(value="Submit")
|
113 |
repo_urls = gr.CheckboxGroup(visible=False, choices=[], value=None)
|
114 |
output_md = gr.Markdown(label="Output", value="<br><br>", elem_classes="result")
|