Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,7 @@ import os
|
|
| 5 |
import shutil
|
| 6 |
from pathlib import Path
|
| 7 |
import uuid
|
|
|
|
| 8 |
|
| 9 |
app = FastAPI(title="Document Conversion API")
|
| 10 |
|
|
@@ -79,7 +80,6 @@ app.add_middleware(
|
|
| 79 |
from fastapi.staticfiles import StaticFiles
|
| 80 |
app.mount("/", StaticFiles(directory="static/ui", html=True), name="index")
|
| 81 |
|
| 82 |
-
|
| 83 |
@app.get("/health")
|
| 84 |
async def health_check():
|
| 85 |
return {"status": "healthy"}
|
|
|
|
| 5 |
import shutil
|
| 6 |
from pathlib import Path
|
| 7 |
import uuid
|
| 8 |
+
from fastapi.middleware.cors import CORSMiddleware
|
| 9 |
|
| 10 |
app = FastAPI(title="Document Conversion API")
|
| 11 |
|
|
|
|
| 80 |
from fastapi.staticfiles import StaticFiles
|
| 81 |
app.mount("/", StaticFiles(directory="static/ui", html=True), name="index")
|
| 82 |
|
|
|
|
| 83 |
@app.get("/health")
|
| 84 |
async def health_check():
|
| 85 |
return {"status": "healthy"}
|