Commit ·
4d4d824
1
Parent(s): ad03ba1
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,14 +83,7 @@ with block:
|
|
| 83 |
state = gr.State()
|
| 84 |
agent_state = gr.State()
|
| 85 |
|
| 86 |
-
submit.click(chat, inputs=[
|
| 87 |
-
message.submit(chat, inputs=[openai_api_key_textbox, message, state, agent_state], outputs=[chatbot, state])
|
| 88 |
-
|
| 89 |
-
openai_api_key_textbox.change(
|
| 90 |
-
set_openai_api_key,
|
| 91 |
-
inputs=[openai_api_key_textbox],
|
| 92 |
-
outputs=[agent_state],
|
| 93 |
-
)
|
| 94 |
|
| 95 |
|
| 96 |
def echo(name, request: gr.Request):
|
|
|
|
| 83 |
state = gr.State()
|
| 84 |
agent_state = gr.State()
|
| 85 |
|
| 86 |
+
submit.click(chat, inputs=[message, state, agent_state], outputs=[chatbot, state])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
|
| 88 |
|
| 89 |
def echo(name, request: gr.Request):
|