[BUG/Help] 调用API时报错405:Method Not Allowed
AlyssaZyt opened this issue · 0 comments
AlyssaZyt commented
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
调用API时报错:405 Method Not Allowed 。从服务器进入url页面后,呈现结果如下:
{
"detail": "Method Not Allowed"
}
Expected Behavior
No response
Steps To Reproduce
- I have already installed all the dependencies in README.md.
- python api.py
- run
- see this error
Environment
- OS:20.04
- Python:3.8
- Transformers:4。26.1
- PyTorch:1.12
- CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) :True
Anything else?
No response