Open fegen/docs/index.html as "rb"
This commit is contained in:
parent
1ea09e0408
commit
84963b42e2
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ class LabelingBot:
|
||||||
|
|
||||||
@app.get("/", response_class=HTMLResponse)
|
@app.get("/", response_class=HTMLResponse)
|
||||||
async def root():
|
async def root():
|
||||||
with open("fegen/docs/index.html", "r") as f:
|
with open("fegen/docs/index.html", "rb") as f:
|
||||||
index = f.read()
|
index = f.read()
|
||||||
return index
|
return index
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue