vboxuser commited on
Commit
b3e7432
·
1 Parent(s): d336ece

add home page

Browse files
Files changed (2) hide show
  1. __pycache__/app.cpython-310.pyc +0 -0
  2. app.py +5 -0
__pycache__/app.cpython-310.pyc ADDED
Binary file (1.88 kB). View file
 
app.py CHANGED
@@ -8,8 +8,13 @@ from cnocr import CnOcr
8
 
9
  from fastapi import FastAPI, UploadFile, File
10
 
 
11
  app = FastAPI()
12
 
 
 
 
 
13
 
14
 
15
  @app.post("/file")
 
8
 
9
  from fastapi import FastAPI, UploadFile, File
10
 
11
+ from fastapi.responses import HTMLResponse
12
  app = FastAPI()
13
 
14
+ @app.get("/")
15
+ def home():
16
+ html_content = open('index.html').read()
17
+ return HTMLResponse(content=html_content, status_code=200)
18
 
19
 
20
  @app.post("/file")