Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -109,7 +109,7 @@ async def get_json_file(filename: str):
|
|
| 109 |
raise HTTPException(status_code=404, detail="JSON file not found")
|
| 110 |
return FileResponse(file_path, media_type="application/json", filename=filename)
|
| 111 |
|
| 112 |
-
|
| 113 |
@app.get("/outputs/pdf/{filename}")
|
| 114 |
async def get_pdf_file(filename: str):
|
| 115 |
file_path = os.path.join(PDF_DIR, filename)
|
|
|
|
| 109 |
raise HTTPException(status_code=404, detail="JSON file not found")
|
| 110 |
return FileResponse(file_path, media_type="application/json", filename=filename)
|
| 111 |
|
| 112 |
+
|
| 113 |
@app.get("/outputs/pdf/{filename}")
|
| 114 |
async def get_pdf_file(filename: str):
|
| 115 |
file_path = os.path.join(PDF_DIR, filename)
|