Spaces:
Runtime error
Runtime error
File size: 797 Bytes
0e02b97 f7c8c98 9f82d8d 0e02b97 f7c8c98 084003a c56348f 084003a d0252db 0e02b97 9f82d8d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
from __future__ import annotations
import asyncio
from src.team import TeamChatSession
from src.vm import VMRegistry
async def _main() -> None:
async with TeamChatSession(user="demo_user", session="demo_session") as chat:
doc_path = chat.upload_document("requirements.txt")
print("Document uploaded to:", doc_path)
# async for resp in chat.chat_stream("ask how junior agent is doing"):
async for resp in chat.chat_stream("what is in the requirements.txt file in /data?"):
# async for resp in chat.chat_stream("add transformers package to requirements.txt."):
print("\n>>>", resp)
if __name__ == "__main__":
try:
asyncio.run(_main())
except KeyboardInterrupt:
pass
finally:
VMRegistry.shutdown_all()
|