Spaces:
Running
Running
AbelGAlem commited on
Commit ·
53ec08f
0
Parent(s):
chore(server): initialize FastAPI application and update .gitignore for Python cache
Browse files- main.py +7 -0
- requirements.txt +0 -0
main.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from fastapi import FastAPI
|
| 2 |
+
|
| 3 |
+
app = FastAPI()
|
| 4 |
+
|
| 5 |
+
@app.get("/health")
|
| 6 |
+
def read_root():
|
| 7 |
+
return {"message": "Hello?"}
|
requirements.txt
ADDED
|
Binary file (520 Bytes). View file
|
|
|