Spaces:
Sleeping
Sleeping
Next7years
commited on
Commit
•
03dd223
1
Parent(s):
cd4d8c0
fix
Browse files
main.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
from fastapi import FastAPI
|
|
|
2 |
|
3 |
app = FastAPI()
|
4 |
|
@@ -6,3 +7,5 @@ app = FastAPI()
|
|
6 |
def read_root():
|
7 |
return {"Hello": "World!"}
|
8 |
|
|
|
|
|
|
1 |
from fastapi import FastAPI
|
2 |
+
import uvicorn
|
3 |
|
4 |
app = FastAPI()
|
5 |
|
|
|
7 |
def read_root():
|
8 |
return {"Hello": "World!"}
|
9 |
|
10 |
+
if __name__ == "__main__":
|
11 |
+
uvicorn.run(app, host="0.0.0.0", port=8000)
|