Spaces:
Runtime error
Runtime error
Commit
·
f5d7a85
1
Parent(s):
10f1021
Update app.py
Browse files
app.py
CHANGED
@@ -43,14 +43,15 @@ def chatgpt_chatclone(input, history):
|
|
43 |
return history, history
|
44 |
|
45 |
def chatgpt_clear(input, history):
|
|
|
46 |
messages = SysIns
|
47 |
return "", [], []
|
48 |
|
49 |
blocks = gr.Blocks()
|
50 |
|
51 |
with blocks:
|
52 |
-
chatbot = gr.Chatbot(label="OpenAI分析师")
|
53 |
-
message = gr.Textbox(placeholder=prompt, label="
|
54 |
state = gr.State()
|
55 |
submit = gr.Button("Send")
|
56 |
submit.click(fn=chatgpt_chatclone, inputs=[message, state], outputs=[chatbot, state])
|
|
|
43 |
return history, history
|
44 |
|
45 |
def chatgpt_clear(input, history):
|
46 |
+
messages = []
|
47 |
messages = SysIns
|
48 |
return "", [], []
|
49 |
|
50 |
blocks = gr.Blocks()
|
51 |
|
52 |
with blocks:
|
53 |
+
chatbot = gr.Chatbot(label="OpenAI 分析师")
|
54 |
+
message = gr.Textbox(placeholder=prompt, label="输入您的查询。OpenAI已被指示扮演专业股票分析师的角色做出回应。您每次输入的上下文都会影响OpenAI的回应。按Clear可以重设对话。")
|
55 |
state = gr.State()
|
56 |
submit = gr.Button("Send")
|
57 |
submit.click(fn=chatgpt_chatclone, inputs=[message, state], outputs=[chatbot, state])
|