Spaces:
Build error
Build error
Update app.py
Browse files21 unmodified lines2223242526272821 unmodified linesTITLE = 'DeepDanbooru String'url = 'https://huggingface.co/spaces/yo2266911/DeepDanbooru_string/'repo_id, repo_type = re.findall(r'https://huggingface.co/([^/]+)/([^/]+)/', url)print(f'Repository ID: {repo_id}')print(f'Repository type: {repo_type}')MODEL_REPO = f'{repo_id}/{repo_type}'21 unmodified lines22232425262728293021 unmodified linesTITLE = 'DeepDanbooru String'url = 'https://huggingface.co/spaces/yo2266911/DeepDanbooru_string/'matches = re.findall(r'https://huggingface.co/([^/]+)/([^/]+)/([^/]+)/', url)repo_id = matches[0][1]repo_type = matches[0][2]print(f'Repository ID: {repo_id}')print(f'Repository type: {repo_type}')MODEL_REPO = f'{repo_id}/{repo_type}'
app.py+3-1