minchyeom commited on
Commit
4ff72e9
·
1 Parent(s): 0d71761

Refactor chat command in main function to modify file contents

Browse files
Files changed (1) hide show
  1. run.py +4 -3
run.py CHANGED
@@ -7,9 +7,10 @@ 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("test.txt")
11
- print(f"Document uploaded to VM at: {doc_path}")
12
- answer = await chat.chat(f"Add a line to {doc_path} saying JavaScript sucks!")
 
13
  print("\n>>>", answer)
14
 
15
 
 
7
 
8
  async def _main() -> None:
9
  async with ChatSession(user="demo_user", session="demo_session") as chat:
10
+ # doc_path = chat.upload_document("test.txt")
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
+ # answer = await chat.chat("What is in /data directory?")
14
  print("\n>>>", answer)
15
 
16