mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-19 12:00:39 +08:00
raw string to fix flake8
This commit is contained in:
parent
f3da68666c
commit
9d8e6dc01c
@ -294,7 +294,7 @@ def get_spaces_interface(model_name, api_key, alias):
|
||||
|
||||
r = requests.get(iframe_url)
|
||||
result = re.search(
|
||||
"window.gradio_config = (.*?);[\s]*</script>", r.text
|
||||
r"window.gradio_config = (.*?);[\s]*</script>", r.text
|
||||
) # some basic regex to extract the config
|
||||
try:
|
||||
config = json.loads(result.group(1))
|
||||
|
Loading…
x
Reference in New Issue
Block a user