Fix the Google Colab notebook

This commit is contained in:
oobabooga 2025-01-16 05:21:18 -08:00
parent fe96678692
commit 0258a6f877

View File

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