Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ def main():
|
|
75 |
predefined_btns = {}
|
76 |
with gr.Blocks(title="GPT 学术优化", theme=set_theme, analytics_enabled=False, css=advanced_css) as demo:
|
77 |
gr.HTML(title_html)
|
78 |
-
gr.HTML('''<center>使用时,先在输入框填入API-KEY然后回车。支持任意数量的OpenAI的密钥和API2D的密钥共存,例如输入"OpenAI密钥1,API2D密钥2",然后提交,即可同时使用两种模型接口。</center>''')
|
79 |
secret_css, dark_mode, py_pickle_cookie = gr.Textbox(visible=False), gr.Textbox(DARK_MODE, visible=False), gr.Textbox(visible=False)
|
80 |
cookies = gr.State(load_chat_cookies())
|
81 |
with gr_L1():
|
@@ -86,7 +86,7 @@ def main():
|
|
86 |
with gr_L2(scale=1, elem_id="gpt-panel"):
|
87 |
with gr.Accordion("输入区", open=True, elem_id="input-panel") as area_input_primary:
|
88 |
with gr.Row():
|
89 |
-
txt = gr.Textbox(show_label=False, lines=2, placeholder="输入问题或API密钥,输入多个密钥时,用英文逗号间隔。支持多个OpenAI密钥共存。").style(container=False)
|
90 |
with gr.Row():
|
91 |
submitBtn = gr.Button("提交", elem_id="elem_submit", variant="primary")
|
92 |
with gr.Row():
|
|
|
75 |
predefined_btns = {}
|
76 |
with gr.Blocks(title="GPT 学术优化", theme=set_theme, analytics_enabled=False, css=advanced_css) as demo:
|
77 |
gr.HTML(title_html)
|
78 |
+
gr.HTML('''<center>使用时,先在输入框填入Rikka提供的API-KEY然后回车。支持任意数量的OpenAI的密钥和API2D的密钥共存,例如输入"OpenAI密钥1,API2D密钥2",然后提交,即可同时使用两种模型接口。</center>''')
|
79 |
secret_css, dark_mode, py_pickle_cookie = gr.Textbox(visible=False), gr.Textbox(DARK_MODE, visible=False), gr.Textbox(visible=False)
|
80 |
cookies = gr.State(load_chat_cookies())
|
81 |
with gr_L1():
|
|
|
86 |
with gr_L2(scale=1, elem_id="gpt-panel"):
|
87 |
with gr.Accordion("输入区", open=True, elem_id="input-panel") as area_input_primary:
|
88 |
with gr.Row():
|
89 |
+
txt = gr.Textbox(show_label=False, lines=2, placeholder="输入问题或Rikka提供的API密钥,输入多个密钥时,用英文逗号间隔。支持多个OpenAI密钥共存。").style(container=False)
|
90 |
with gr.Row():
|
91 |
submitBtn = gr.Button("提交", elem_id="elem_submit", variant="primary")
|
92 |
with gr.Row():
|