Spaces:
No application file
No application file
Create mainapp.py
Browse files- mainapp.py +8 -0
mainapp.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from fastapi import FastAPI
|
2 |
+
|
3 |
+
app = FastAPI()
|
4 |
+
|
5 |
+
|
6 |
+
@app.get("/")
|
7 |
+
async def root():
|
8 |
+
return {"message": "Hello World"}
|