starsnatched commited on
Commit
69e31cd
·
1 Parent(s): 71e83b5

Uncomment document upload and adjust chat stream commands in run.py

Browse files
Files changed (1) hide show
  1. run.py +5 -2
run.py CHANGED
@@ -7,12 +7,15 @@ 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("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
 
 
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
+ # async for resp in chat.chat_stream("What is the content of the document I uploaded?"):
17
+ # async for resp in chat.chat_stream("Install necessary package(s) to read PDF files and edit them."):
18
+ async for resp in chat.chat_stream("Install sudo and try again."):
19
  print("\n>>>", resp)
20
 
21