Update main.py
Browse files
main.py
CHANGED
@@ -35,3 +35,10 @@ async def generate_image_caption(image: UploadFile = File(...)):
|
|
35 |
|
36 |
except Exception as e:
|
37 |
raise HTTPException(status_code=500, detail=str(e))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
except Exception as e:
|
37 |
raise HTTPException(status_code=500, detail=str(e))
|
38 |
+
|
39 |
+
app.mount("/", StaticFiles(directory="static", html=True), name="static")
|
40 |
+
|
41 |
+
@app.get("/")
|
42 |
+
def index() -> FileResponse:
|
43 |
+
return FileResponse(path="/app/static/index.html", media_type="text/html")
|
44 |
+
|