Spaces:
Sleeping
Sleeping
Commit
·
90781d5
1
Parent(s):
6c2bfe0
create a folder for first app
Browse files
app_hello_world/main.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from fastapi import FastAPI
|
2 |
+
app = FastAPI()
|
3 |
+
# Expose an endpoint at the root of URL
|
4 |
+
@app.get("/")
|
5 |
+
def greet_json():
|
6 |
+
return{"Hello":"World!"}
|
app_hello_world/requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
fastapi
|
2 |
+
uvicorn[standard]
|