Spaces:
Runtime error
Runtime error
Commit
·
76e6a74
1
Parent(s):
679fe00
Update app.py
Browse files
app.py
CHANGED
@@ -10,16 +10,6 @@ with open("vectorstore.pkl", "rb") as f:
|
|
10 |
vectorstore = pickle.load(f)
|
11 |
|
12 |
|
13 |
-
def set_openai_api_key(api_key: str):
|
14 |
-
"""Set the api key and return chain.
|
15 |
-
If no api_key, then None is returned.
|
16 |
-
"""
|
17 |
-
print(os.environ["TEST"])
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
return chain
|
23 |
|
24 |
class ChatWrapper:
|
25 |
|
@@ -94,7 +84,7 @@ with block:
|
|
94 |
agent_state = gr.State()
|
95 |
|
96 |
|
97 |
-
message.submit(chat, inputs=[
|
98 |
|
99 |
|
100 |
def echo(name, request: gr.Request):
|
|
|
10 |
vectorstore = pickle.load(f)
|
11 |
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
class ChatWrapper:
|
15 |
|
|
|
84 |
agent_state = gr.State()
|
85 |
|
86 |
|
87 |
+
message.submit(chat, inputs=[message, state, agent_state], outputs=[chatbot, state])
|
88 |
|
89 |
|
90 |
def echo(name, request: gr.Request):
|