From 9d8e6dc01cd87e331d5035cc002b58ea34376d9d Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Tue, 1 Mar 2022 19:00:41 -0500 Subject: [PATCH] raw string to fix flake8 --- gradio/external.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradio/external.py b/gradio/external.py index ce14d47fe3..9b30252346 100644 --- a/gradio/external.py +++ b/gradio/external.py @@ -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]*", r.text + r"window.gradio_config = (.*?);[\s]*", r.text ) # some basic regex to extract the config try: config = json.loads(result.group(1))