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))