Spaces:
Runtime error
Runtime error
Implement code changes to enhance functionality and improve performance
Browse files
note.pdf
ADDED
Binary file (71.1 kB). View file
|
|
run.py
CHANGED
@@ -7,12 +7,12 @@ from src.chat import ChatSession
|
|
7 |
|
8 |
async def _main() -> None:
|
9 |
async with ChatSession(user="demo_user", session="demo_session") as chat:
|
10 |
-
# doc_path = chat.upload_document("
|
11 |
# print(f"Document uploaded to VM at: {doc_path}")
|
12 |
# answer = await chat.chat(f"Remove all contents of test.txt and add the text 'Hello, World!' to it.")
|
13 |
# async for resp in chat.chat_stream("Erase the contents of test.txt and write 'Hello, World!' to it."):
|
14 |
# async for resp in chat.chat_stream("Verify that the file test.txt exists and contains the text 'Hello, World!'."):
|
15 |
-
async for resp in chat.chat_stream("
|
16 |
print("\n>>>", resp)
|
17 |
|
18 |
|
|
|
7 |
|
8 |
async def _main() -> None:
|
9 |
async with ChatSession(user="demo_user", session="demo_session") as chat:
|
10 |
+
# doc_path = chat.upload_document("note.pdf")
|
11 |
# print(f"Document uploaded to VM at: {doc_path}")
|
12 |
# answer = await chat.chat(f"Remove all contents of test.txt and add the text 'Hello, World!' to it.")
|
13 |
# async for resp in chat.chat_stream("Erase the contents of test.txt and write 'Hello, World!' to it."):
|
14 |
# async for resp in chat.chat_stream("Verify that the file test.txt exists and contains the text 'Hello, World!'."):
|
15 |
+
async for resp in chat.chat_stream("Inspect the contents of note.pdf and summarize it."):
|
16 |
print("\n>>>", resp)
|
17 |
|
18 |
|