Spaces:
Running
Running
with open('main.py', 'r', encoding='utf8') as file: | |
data = file.read() | |
data.replace( | |
"gr.HTML(title_html)", | |
"""gr.HTML(title_html); gr.HTML('''<center><a href="https://huggingface.co/spaces/qingxu98/gpt_academic?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>请您打开此页面后务必点击上方的“复制空间”(Duplicate Space)按钮!<font color="#FF00FF">使用时,先在输入框填入API-KEY然后回车。</font><br/>切忌在“复制空间”(Duplicate Space)之前填入API_KEY或进行提问,否则您的API_KEY将极可能被空间所有者攫取!<br/>支持任意数量的OpenAI的密钥共存,例如输入"OpenAI密钥1",然后提交,即可同时使用两种模型接口。</center>''') | |
""" | |
) | |
with open('main.py', 'w', encoding='utf8') as file: | |
file.write(data) |