Spaces:
Runtime error
Runtime error
starsnatched
commited on
Commit
·
084003a
1
Parent(s):
f473903
Uncomment document upload and adjust chat stream query in run.py
Browse files
run.py
CHANGED
@@ -8,10 +8,11 @@ from src.vm import VMRegistry
|
|
8 |
|
9 |
async def _main() -> None:
|
10 |
async with TeamChatSession(user="demo_user", session="demo_session") as chat:
|
11 |
-
|
|
|
12 |
# async for resp in chat.chat_stream("ask how junior agent is doing"):
|
13 |
-
|
14 |
-
async for resp in chat.chat_stream("add transformers package to requirements.txt."):
|
15 |
print("\n>>>", resp)
|
16 |
|
17 |
|
|
|
8 |
|
9 |
async def _main() -> None:
|
10 |
async with TeamChatSession(user="demo_user", session="demo_session") as chat:
|
11 |
+
doc_path = chat.upload_document("requirements.txt")
|
12 |
+
print("Document uploaded to:", doc_path)
|
13 |
# async for resp in chat.chat_stream("ask how junior agent is doing"):
|
14 |
+
async for resp in chat.chat_stream("what is in the requirements.txt file in /data?"):
|
15 |
+
# async for resp in chat.chat_stream("add transformers package to requirements.txt."):
|
16 |
print("\n>>>", resp)
|
17 |
|
18 |
|