Code: Select all
from fastapi import FastAPI
app = FastAPI()
@app.post("/{path}")
def pred_image(path:str):
print("path",path)
return {'path':path}
< /code>
Wenn ich es testet, funktioniert es nicht und wirft einen Fehler aus. Ich teste es so: < /p>
http://127.0.0.1:8000/https://raw.githubusercontent.com/ultralytics/yolov5/master/data/images/zidane.jpg