Spaces:
Runtime error
Runtime error
Commit
·
06efe94
1
Parent(s):
e5fc77d
Update app.py
Browse files
app.py
CHANGED
@@ -83,15 +83,12 @@ with block:
|
|
83 |
|
84 |
gr.HTML("Demo application of a LangChain chain.")
|
85 |
|
86 |
-
gr.HTML(
|
87 |
-
"<center>Powered by <a href='https://github.com/hwchase17/langchain'>LangChain 🦜️🔗</a></center>"
|
88 |
-
)
|
89 |
|
90 |
state = gr.State()
|
91 |
agent_state = gr.State()
|
92 |
|
93 |
-
submit.click(chat, inputs=[openai_api_key_textbox, message, state, agent_state], outputs=[chatbot, state]
|
94 |
-
message.submit(chat, inputs=[openai_api_key_textbox, message, state, agent_state], outputs=[chatbot, state])
|
95 |
|
96 |
openai_api_key_textbox.change(
|
97 |
set_openai_api_key,
|
|
|
83 |
|
84 |
gr.HTML("Demo application of a LangChain chain.")
|
85 |
|
|
|
|
|
|
|
86 |
|
87 |
state = gr.State()
|
88 |
agent_state = gr.State()
|
89 |
|
90 |
+
submit.click(chat, inputs=[openai_api_key_textbox, message, state, agent_state], outputs=[chatbot, state])
|
91 |
+
message.submit(chat, inputs=[openai_api_key_textbox, message, state, agent_state], outputs=[chatbot, state],api_name="chat")
|
92 |
|
93 |
openai_api_key_textbox.change(
|
94 |
set_openai_api_key,
|