Spaces:
Sleeping
Sleeping
Upload 3 files
Browse files- app.py +2 -2
- convert_url_to_diffusers_sd_gr.py +1 -1
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
from convert_url_to_diffusers_sd_gr import (
|
3 |
-
|
4 |
SCHEDULER_CONFIG_MAP,
|
5 |
)
|
6 |
|
@@ -65,7 +65,7 @@ It saves you the trouble of typing them in.<br>
|
|
65 |
|
66 |
gr.on(
|
67 |
triggers=[run_button.click],
|
68 |
-
fn=
|
69 |
inputs=[dl_url, repo_id, hf_token, civitai_key, repo_urls, is_half, vae, scheduler,
|
70 |
lora1, lora1s, lora2, lora2s, lora3, lora3s, lora4, lora4s, lora5, lora5s,
|
71 |
model_type, sample_size, ema],
|
|
|
1 |
import gradio as gr
|
2 |
from convert_url_to_diffusers_sd_gr import (
|
3 |
+
convert_url_to_diffusers_repo_sd,
|
4 |
SCHEDULER_CONFIG_MAP,
|
5 |
)
|
6 |
|
|
|
65 |
|
66 |
gr.on(
|
67 |
triggers=[run_button.click],
|
68 |
+
fn=convert_url_to_diffusers_repo_sd,
|
69 |
inputs=[dl_url, repo_id, hf_token, civitai_key, repo_urls, is_half, vae, scheduler,
|
70 |
lora1, lora1s, lora2, lora2s, lora3, lora3s, lora4, lora4s, lora5, lora5s,
|
71 |
model_type, sample_size, ema],
|
convert_url_to_diffusers_sd_gr.py
CHANGED
@@ -301,7 +301,7 @@ def create_diffusers_repo(new_repo_id, diffusers_folder, progress=gr.Progress(tr
|
|
301 |
return url
|
302 |
|
303 |
|
304 |
-
def
|
305 |
scheduler="Euler", lora1=None, lora1s=1.0, lora2=None, lora2s=1.0, lora3=None, lora3s=1.0,
|
306 |
lora4=None, lora4s=1.0, lora5=None, lora5s=1.0,
|
307 |
model_type="v1", sample_size=768, ema="ema", progress=gr.Progress(track_tqdm=True)):
|
|
|
301 |
return url
|
302 |
|
303 |
|
304 |
+
def convert_url_to_diffusers_repo_sd(dl_url, new_repo_id, hf_token, civitai_key="", repo_urls=[], half=True, vae=None,
|
305 |
scheduler="Euler", lora1=None, lora1s=1.0, lora2=None, lora2s=1.0, lora3=None, lora3s=1.0,
|
306 |
lora4=None, lora4s=1.0, lora5=None, lora5s=1.0,
|
307 |
model_type="v1", sample_size=768, ema="ema", progress=gr.Progress(track_tqdm=True)):
|