ConradLax commited on
Commit
8c29057
·
1 Parent(s): 4963215
Files changed (1) hide show
  1. main.py +2 -3
main.py CHANGED
@@ -27,7 +27,6 @@ async def classify_doc(files: List[UploadFile] = File(...)):
27
 
28
  if filename.endswith('.pdf'):
29
  try:
30
- print("poppler: " + poppler_path)
31
  pages = convert_from_bytes(contents, poppler_path = poppler_path)
32
  print(pages)
33
  for pagenum, image in enumerate(pages):
@@ -127,8 +126,8 @@ app.mount("/", StaticFiles(directory="static", html=True), name="static")
127
 
128
  @app.get("/")
129
  def index() -> FileResponse:
130
- #return FileResponse(path="/app/static/index.html", media_type="text/html")
131
- return os.getcwd()
132
 
133
 
134
 
 
27
 
28
  if filename.endswith('.pdf'):
29
  try:
 
30
  pages = convert_from_bytes(contents, poppler_path = poppler_path)
31
  print(pages)
32
  for pagenum, image in enumerate(pages):
 
126
 
127
  @app.get("/")
128
  def index() -> FileResponse:
129
+ return FileResponse(path="/app/static/index.html", media_type="text/html")
130
+
131
 
132
 
133