Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
from fastapi import FastAPI
|
2 |
-
|
3 |
|
4 |
|
5 |
app = FastAPI()
|
@@ -9,4 +9,7 @@ area_thres = 0.3
|
|
9 |
|
10 |
@app.get("/")
|
11 |
def read_root():
|
12 |
-
return {"Message": "Application startup complete"}
|
|
|
|
|
|
|
|
1 |
from fastapi import FastAPI
|
2 |
+
import uvicorn
|
3 |
|
4 |
|
5 |
app = FastAPI()
|
|
|
9 |
|
10 |
@app.get("/")
|
11 |
def read_root():
|
12 |
+
return {"Message": "Application startup complete"}
|
13 |
+
|
14 |
+
if __name__ == "__main__":
|
15 |
+
uvicorn.run("main:app", host="0.0.0.0", port=8000, reload=True)
|