From 0258a6f87793da90006045a3ed8e601c5b3c3897 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Thu, 16 Jan 2025 05:21:18 -0800 Subject: [PATCH] Fix the Google Colab notebook --- modules/block_requests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/block_requests.py b/modules/block_requests.py index 29fc6633..5a4b533f 100644 --- a/modules/block_requests.py +++ b/modules/block_requests.py @@ -40,7 +40,7 @@ def my_get(url, **kwargs): # Kindly provided by our friend WizardLM-30B def my_open(*args, **kwargs): filename = str(args[0]) - if filename.endswith('index.html'): + if filename.endswith(('index.html', 'share.html')): with original_open(*args, **kwargs) as f: file_contents = f.read()