first commit
Browse files
app.py
CHANGED
@@ -8,12 +8,6 @@ welcome_message = "Welcome! I'm Sage, your friendly AI assistant. I'm here to he
|
|
8 |
@cl.on_chat_start
|
9 |
async def start_chat():
|
10 |
|
11 |
-
input = {"question": ""}
|
12 |
-
|
13 |
-
for output in app.stream(input):
|
14 |
-
for key, value in output.items():
|
15 |
-
print(f"Finished running...{key}:")
|
16 |
-
|
17 |
print("Initialised chain...")
|
18 |
|
19 |
await cl.Message(content=welcome_message).send()
|
@@ -27,7 +21,7 @@ async def main(message: cl.Message):
|
|
27 |
|
28 |
input = {"question": message.content}
|
29 |
|
30 |
-
for output in runnable.
|
31 |
for key, value in output.items():
|
32 |
print(f"Finished running: {key}:")
|
33 |
if key == "generator_agent":
|
|
|
8 |
@cl.on_chat_start
|
9 |
async def start_chat():
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
print("Initialised chain...")
|
12 |
|
13 |
await cl.Message(content=welcome_message).send()
|
|
|
21 |
|
22 |
input = {"question": message.content}
|
23 |
|
24 |
+
async for output in runnable.astream(input):
|
25 |
for key, value in output.items():
|
26 |
print(f"Finished running: {key}:")
|
27 |
if key == "generator_agent":
|