Spaces:
Running
Running
Upload convert_url_to_diffusers_sd_gr.py
Browse files
convert_url_to_diffusers_sd_gr.py
CHANGED
@@ -13,7 +13,7 @@ def list_sub(a, b):
|
|
13 |
|
14 |
def is_repo_name(s):
|
15 |
import re
|
16 |
-
return re.fullmatch(r'^[
|
17 |
|
18 |
|
19 |
def download_thing(directory, url, civitai_api_key="", progress=gr.Progress(track_tqdm=True)):
|
|
|
13 |
|
14 |
def is_repo_name(s):
|
15 |
import re
|
16 |
+
return re.fullmatch(r'^[^/,\s]+?/[^/,\s]+$', s)
|
17 |
|
18 |
|
19 |
def download_thing(directory, url, civitai_api_key="", progress=gr.Progress(track_tqdm=True)):
|