Spaces:
Runtime error
Runtime error
hello
Browse files- Code/app.py +5 -1
Code/app.py
CHANGED
@@ -1,7 +1,11 @@
|
|
|
|
1 |
from fastapi import FastAPI
|
2 |
|
3 |
app = FastAPI()
|
4 |
|
5 |
@app.get("/")
|
6 |
def read_root():
|
7 |
-
return {"Hello": "World!"}
|
|
|
|
|
|
|
|
1 |
+
import uvicorn
|
2 |
from fastapi import FastAPI
|
3 |
|
4 |
app = FastAPI()
|
5 |
|
6 |
@app.get("/")
|
7 |
def read_root():
|
8 |
+
return {"Hello": "World!"}
|
9 |
+
|
10 |
+
if __name__ == '__main__':
|
11 |
+
uvicorn.run('main:app', port=8000, reload=True)
|