Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -8,6 +8,10 @@ load_dotenv()
|
|
| 8 |
|
| 9 |
app = FastAPI(title="BookLeaf Cover Validator API")
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
@app.post("/analyze")
|
| 12 |
async def analyze_cover_api(file: UploadFile = File(...)):
|
| 13 |
try:
|
|
|
|
| 8 |
|
| 9 |
app = FastAPI(title="BookLeaf Cover Validator API")
|
| 10 |
|
| 11 |
+
@app.get("/")
|
| 12 |
+
def root():
|
| 13 |
+
return {"message": "API live"}
|
| 14 |
+
|
| 15 |
@app.post("/analyze")
|
| 16 |
async def analyze_cover_api(file: UploadFile = File(...)):
|
| 17 |
try:
|