Spaces:
Runtime error
Runtime error
Refactor chat command in main function to modify file contents
Browse files
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"
|
|
|
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 |
|