ligengkai commited on
Commit
a4ac3ef
·
1 Parent(s): f95486e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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">🔥量化代写 vx1985159637🚀 股票【qmt/supermind】,期货【tqsdk】,港股美股【富途牛牛】</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,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= "Hi there!", label= "Type an input and press Enter")
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="Status code from OpenAI server", )
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):