Bump to latest gradio (3.47) (#4258)
This commit is contained in:
parent
2b75d725e6
commit
fae8062d39
19 changed files with 57 additions and 95 deletions
|
@ -40,7 +40,7 @@ def my_open(*args, **kwargs):
|
|||
with original_open(*args, **kwargs) as f:
|
||||
file_contents = f.read()
|
||||
|
||||
file_contents = file_contents.replace(b'<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js"></script>', b'')
|
||||
file_contents = file_contents.replace(b'\t\t<script\n\t\t\tsrc="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.7/iframeResizer.contentWindow.min.js"\n\t\t\tasync\n\t\t></script>', b'')
|
||||
file_contents = file_contents.replace(b'cdnjs.cloudflare.com', b'127.0.0.1')
|
||||
return io.BytesIO(file_contents)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue