Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
|
@@ -336,14 +336,6 @@ def get_photo():
|
|
| 336 |
return FileResponse("static/placeholder.png", media_type="image/png")
|
| 337 |
|
| 338 |
|
| 339 |
-
@app.get("/armoiries")
|
| 340 |
-
def get_armoiries():
|
| 341 |
-
path = "db/armoiries.jpg"
|
| 342 |
-
if os.path.exists(path):
|
| 343 |
-
return FileResponse(path, media_type="image/jpeg")
|
| 344 |
-
return FileResponse("static/placeholder.png", media_type="image/png")
|
| 345 |
-
|
| 346 |
-
|
| 347 |
@app.post("/chat")
|
| 348 |
@limiter.limit("20/minute")
|
| 349 |
def chat_endpoint(req: ChatRequest, request: Request):
|
|
|
|
| 336 |
return FileResponse("static/placeholder.png", media_type="image/png")
|
| 337 |
|
| 338 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 339 |
@app.post("/chat")
|
| 340 |
@limiter.limit("20/minute")
|
| 341 |
def chat_endpoint(req: ChatRequest, request: Request):
|