Spaces:
Sleeping
Sleeping
acharyaaditya26
commited on
Commit
•
356330f
1
Parent(s):
486fb7a
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
from fastapi import FastAPI, File, UploadFile, HTTPException
|
2 |
from fastapi.responses import JSONResponse, HTMLResponse
|
3 |
from fastapi.staticfiles import StaticFiles
|
4 |
from fastapi.templating import Jinja2Templates
|
@@ -137,4 +137,4 @@ async def upload_file(file: UploadFile = File(...)):
|
|
137 |
return results
|
138 |
|
139 |
if __name__ == "__main__":
|
140 |
-
uvicorn.run(app, host="0.0.0.0", port=8000)
|
|
|
1 |
+
from fastapi import FastAPI, File, UploadFile, HTTPException, Request
|
2 |
from fastapi.responses import JSONResponse, HTMLResponse
|
3 |
from fastapi.staticfiles import StaticFiles
|
4 |
from fastapi.templating import Jinja2Templates
|
|
|
137 |
return results
|
138 |
|
139 |
if __name__ == "__main__":
|
140 |
+
uvicorn.run(app, host="0.0.0.0", port=8000)
|