mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-15 14:51:19 -08:00
Fix JSDELIVR_URL replacement in render function to ensure correct path formatting
This commit is contained in:
parent
17b2526f69
commit
2030bdd62a
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ def render(filename = "home", download_url: str = DOWNLOAD_URL):
|
|||
else:
|
||||
response.raise_for_status()
|
||||
html = response.text
|
||||
html = html.replace(JSDELIVR_URL, "")
|
||||
html = html.replace(JSDELIVR_URL, "/")
|
||||
html = html.replace("../dist/", f"dist/")
|
||||
html = html.replace("\"dist/", f"\"{STATIC_URL}dist/")
|
||||
if is_temp:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue