Spaces:
Runtime error
Runtime error
Update chat prompt in _main function to specify document modification
Browse files
run.py
CHANGED
|
@@ -9,7 +9,7 @@ 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 |
|
|
|
|
| 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 |
|