Ashrafb commited on
Commit
158c342
·
verified ·
1 Parent(s): 8513b9b

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +7 -0
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
+