acharyaaditya26 commited on
Commit
5f9cb8e
1 Parent(s): aceb54a
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -16,6 +16,7 @@ import shutil
16
  from pathlib import Path
17
  import json
18
  from starlette.requests import Request
 
19
 
20
  app = FastAPI()
21
 
@@ -118,6 +119,3 @@ async def upload_file(request: Request, file: UploadFile = File(...)):
118
 
119
  return templates.TemplateResponse("result.html", {"request": request, "json_output": json_output, "html_output": html_output})
120
 
121
- if __name__ == "__main__":
122
- import uvicorn
123
- uvicorn.run(app, host="0.0.0.0", port=8000)
 
16
  from pathlib import Path
17
  import json
18
  from starlette.requests import Request
19
+ import uvicorn
20
 
21
  app = FastAPI()
22
 
 
119
 
120
  return templates.TemplateResponse("result.html", {"request": request, "json_output": json_output, "html_output": html_output})
121