Merge branch 'main' of https://huggingface.co/spaces/JoeMiNot/trRun
Browse files- __pycache__/app.cpython-39.pyc +0 -0
- app.py +0 -11
__pycache__/app.cpython-39.pyc
ADDED
|
Binary file (436 Bytes). View file
|
|
|
app.py
DELETED
|
@@ -1,11 +0,0 @@
|
|
| 1 |
-
from fastapi import FastAPI
|
| 2 |
-
|
| 3 |
-
app = FastAPI()
|
| 4 |
-
|
| 5 |
-
@app.get("/")
|
| 6 |
-
def root():
|
| 7 |
-
return {"Hello": "World!"}
|
| 8 |
-
|
| 9 |
-
@app.get("/greet")
|
| 10 |
-
def greet_json():
|
| 11 |
-
return {"Greet": "Again!"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|