Update app.py
Browse files
app.py
CHANGED
|
@@ -69,6 +69,10 @@ async def create_upload_file(file: UploadFile = File(...)):
|
|
| 69 |
# Render the HTML with the image and bounding boxes
|
| 70 |
return templates.TemplateResponse("prediction.html", {"request": file, "image_path": image_with_boxes_path})
|
| 71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
@app.get("/")
|
| 74 |
async def read_root():
|
|
|
|
| 69 |
# Render the HTML with the image and bounding boxes
|
| 70 |
return templates.TemplateResponse("prediction.html", {"request": file, "image_path": image_with_boxes_path})
|
| 71 |
|
| 72 |
+
@app.get("/test")
|
| 73 |
+
async def read_root():
|
| 74 |
+
return {"message": "TEST"}
|
| 75 |
+
|
| 76 |
|
| 77 |
@app.get("/")
|
| 78 |
async def read_root():
|