fix spaces import
Browse files7188 unmodified lines7189719071917192719371947195719671977188 unmodified lines"""Check if URL is a valid Hugging Face Spaces URL and extract username/project"""import re# Pattern to match HF Spaces URLsurl_pattern = re.compile(r'^(https?://)?(huggingface\.co|hf\.co)/spaces/([\w-]+)/([\w-]+)$',re.IGNORECASE)7188 unmodified lines7189719071917192719371947195719671977188 unmodified lines"""Check if URL is a valid Hugging Face Spaces URL and extract username/project"""import re# Pattern to match HF Spaces URLs (allows dots in space names)url_pattern = re.compile(r'^(https?://)?(huggingface\.co|hf\.co)/spaces/([\w.-]+)/([\w.-]+)$',re.IGNORECASE)
app.py+2-2