mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-01-29 13:24:59 +01:00
Fix the Google Colab notebook
This commit is contained in:
parent
fe96678692
commit
0258a6f877
@ -40,7 +40,7 @@ def my_get(url, **kwargs):
|
|||||||
# Kindly provided by our friend WizardLM-30B
|
# Kindly provided by our friend WizardLM-30B
|
||||||
def my_open(*args, **kwargs):
|
def my_open(*args, **kwargs):
|
||||||
filename = str(args[0])
|
filename = str(args[0])
|
||||||
if filename.endswith('index.html'):
|
if filename.endswith(('index.html', 'share.html')):
|
||||||
with original_open(*args, **kwargs) as f:
|
with original_open(*args, **kwargs) as f:
|
||||||
file_contents = f.read()
|
file_contents = f.read()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user