ALYYAN commited on
Commit
7c9aca9
·
verified ·
1 Parent(s): a6badfd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -1,9 +1,7 @@
1
- from flask import Flask
2
- app = Flask(__name__)
3
 
4
- @app.route("/")
5
- def hello():
6
- return "<h1>Hello, Docker! My deployment is working!</h1>"
7
 
8
- if __name__ == "__main__":
9
- app.run(host="0.0.0.0", port=8080)
 
 
1
+ from fastapi import FastAPI
 
2
 
3
+ app = FastAPI()
 
 
4
 
5
+ @app.get("/")
6
+ def greet_json():
7
+ return {"Hello": "World!"}