Sudipta Nayak
commited on
Commit
·
e6702de
1
Parent(s):
9036fbb
app start code added
Browse files- app/main.py +6 -0
app/main.py
CHANGED
@@ -35,3 +35,9 @@ async def detect_objects(request: Request, item: Item):
|
|
35 |
"result.html",
|
36 |
{"request": request, "original_image": f"/static/{item.file.filename}", "output_image": f"/static/output/{item.file.filename}"},
|
37 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
"result.html",
|
36 |
{"request": request, "original_image": f"/static/{item.file.filename}", "output_image": f"/static/output/{item.file.filename}"},
|
37 |
)
|
38 |
+
|
39 |
+
|
40 |
+
# Start app
|
41 |
+
if __name__ == "__main__":
|
42 |
+
import uvicorn
|
43 |
+
uvicorn.run(app, host="0.0.0.0", port=8001)
|