Spaces:
Running
Running
Create app/app.py
Browse files- app/app.py +9 -0
app/app.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from fastapi import FastAPI
|
2 |
+
|
3 |
+
# Create an instance of the FastAPI class
|
4 |
+
app = FastAPI()
|
5 |
+
|
6 |
+
# Define a route for the root endpoint
|
7 |
+
@app.get("/")
|
8 |
+
def read_root():
|
9 |
+
return {"message": "Hello, World!"}
|