Update app.py
Browse files
app.py
CHANGED
|
@@ -105,7 +105,7 @@ def set_visible_false():
|
|
| 105 |
def set_visible_true():
|
| 106 |
return gr.update(visible=True)
|
| 107 |
|
| 108 |
-
title = """<h1 align="center">🔥
|
| 109 |
|
| 110 |
#display message for themes feature
|
| 111 |
theme_addon_msg = """<center>🌟 Discover Gradio Themes with this Demo, featuring v3.22.0! Gradio v3.23.0 also enables seamless Theme sharing. You can develop or modify a theme, and send it to the hub using simple <code>theme.push_to_hub()</code>.
|
|
@@ -133,13 +133,13 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
|
|
| 133 |
system_msg = gr.Textbox(label="Instruct the AI Assistant to set its beaviour", info = system_msg_info, value="")
|
| 134 |
accordion_msg = gr.HTML(value="🚧 To set System message you will have to refresh the app", visible=False)
|
| 135 |
chatbot = gr.Chatbot(label='GPT4', elem_id="chatbot")
|
| 136 |
-
inputs = gr.Textbox(placeholder= "
|
| 137 |
state = gr.State([])
|
| 138 |
with gr.Row():
|
| 139 |
with gr.Column(scale=7):
|
| 140 |
b1 = gr.Button().style(full_width=True)
|
| 141 |
with gr.Column(scale=3):
|
| 142 |
-
server_status_code = gr.Textbox(label="
|
| 143 |
|
| 144 |
#top_p, temperature
|
| 145 |
with gr.Accordion("Parameters", open=False):
|
|
|
|
| 105 |
def set_visible_true():
|
| 106 |
return gr.update(visible=True)
|
| 107 |
|
| 108 |
+
title = """<h1 align="center">🔥GPT4 with ChatCompletions API +🚀Gradio-Streaming</h1>"""
|
| 109 |
|
| 110 |
#display message for themes feature
|
| 111 |
theme_addon_msg = """<center>🌟 Discover Gradio Themes with this Demo, featuring v3.22.0! Gradio v3.23.0 also enables seamless Theme sharing. You can develop or modify a theme, and send it to the hub using simple <code>theme.push_to_hub()</code>.
|
|
|
|
| 133 |
system_msg = gr.Textbox(label="Instruct the AI Assistant to set its beaviour", info = system_msg_info, value="")
|
| 134 |
accordion_msg = gr.HTML(value="🚧 To set System message you will have to refresh the app", visible=False)
|
| 135 |
chatbot = gr.Chatbot(label='GPT4', elem_id="chatbot")
|
| 136 |
+
inputs = gr.Textbox(placeholder= "输入内容;量化代写,股票,期货,港股美股", label= "收入后请直接回车)
|
| 137 |
state = gr.State([])
|
| 138 |
with gr.Row():
|
| 139 |
with gr.Column(scale=7):
|
| 140 |
b1 = gr.Button().style(full_width=True)
|
| 141 |
with gr.Column(scale=3):
|
| 142 |
+
server_status_code = gr.Textbox(label="服务器状态", )
|
| 143 |
|
| 144 |
#top_p, temperature
|
| 145 |
with gr.Accordion("Parameters", open=False):
|