Open mosh98 opened 1 month ago
me too.
File system permissions? Is your python running newest?
You have to add /batch
or /watch
in URL, i.e.: http://127.0.0.1:8000/batch
You have to add
/batch
or/watch
in URL, i.e.:http://127.0.0.1:8000/batch
Will try, also was about to ask when I refreshed and saw your comment
Edit: it works, but if there's no files then it will spit an error
`INFO: Will watch for changes in these directories: ['/Users/
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO: Started reloader process [25668] using WatchFiles
INFO: Started server process [25672]
INFO: Waiting for application startup.
INFO: Application startup complete.
**INFO: 127.0.0.1:55355 - "GET /batch HTTP/1.1" 405 Method Not Allowed
INFO: 127.0.0.1:55356 - "GET /watch HTTP/1.1" 405 Method Not Allowed`**
ok, curl -X POST http://127.0.0.1:8000/batch -H "Content-Type: application/json" -d '{"path": "/home/john/Downloads/", "instruction": "organize", "incognito": true}'
seemed to work. However, I would need to give it some useful documents to check.
also https://github.com/iyaja/llama-fs says we must use fastapi but I found it runs if you use 'uvicorn' instead... couldn't get fastapi to work/install/run.
mosleh@Moslehs-MacBook-Pro organize % curl -X POST http://127.0.0.1:8000 -H "Content-Type: application/json" -d '{"path": "/Users/mosleh/Downloads/", "instruction": "organize", "incognito": true}' {"detail":"Method Not Allowed"}%
Ollama running in the background