Upload main.py
Browse files
main.py
CHANGED
|
@@ -267,8 +267,4 @@ async def download_file(filename: str):
|
|
| 267 |
|
| 268 |
with open(filepath, "rb") as f:
|
| 269 |
data = f.read()
|
| 270 |
-
return Response(data, media_type="application/octet-stream")
|
| 271 |
-
|
| 272 |
-
@app.get("/")
|
| 273 |
-
async def root():
|
| 274 |
-
return {"status": "ok", "service": "brat-generator", "output_dir": OUTPUT_DIR, "tmp_dir": TMP_DIR}
|
|
|
|
| 267 |
|
| 268 |
with open(filepath, "rb") as f:
|
| 269 |
data = f.read()
|
| 270 |
+
return Response(data, media_type="application/octet-stream")
|
|
|
|
|
|
|
|
|
|
|
|