Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,8 +21,8 @@ import re
|
|
21 |
|
22 |
TITLE = 'DeepDanbooru String'
|
23 |
|
24 |
-
url = 'https://huggingface.co/spaces/yo2266911/DeepDanbooru_string
|
25 |
-
matches = re.findall(r'https://huggingface.co/([^/]+)/([^/]+)/([^/]+)
|
26 |
repo_id = matches[0][1]
|
27 |
repo_type = matches[0][2]
|
28 |
MODEL_REPO = f'{repo_id}/{repo_type}'
|
|
|
21 |
|
22 |
TITLE = 'DeepDanbooru String'
|
23 |
|
24 |
+
url = 'https://huggingface.co/spaces/yo2266911/DeepDanbooru_string'
|
25 |
+
matches = re.findall(r'https://huggingface.co/([^/]+)/([^/]+)/([^/]+)', url)
|
26 |
repo_id = matches[0][1]
|
27 |
repo_type = matches[0][2]
|
28 |
MODEL_REPO = f'{repo_id}/{repo_type}'
|