Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,7 @@
|
|
| 1 |
-
from
|
| 2 |
|
| 3 |
-
app =
|
| 4 |
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
return render_template("index.html")
|
| 9 |
-
|
| 10 |
-
if __name__ == "__main__":
|
| 11 |
-
app.run()
|
|
|
|
| 1 |
+
from fastapi import FastAPI
|
| 2 |
|
| 3 |
+
app = FastAPI()
|
| 4 |
|
| 5 |
+
@app.get("/")
|
| 6 |
+
def greet_json():
|
| 7 |
+
return {"Hello": "World!"}
|
|
|
|
|
|
|
|
|
|
|
|