prathameshks commited on
Commit
7da6912
·
verified ·
1 Parent(s): 1246a53

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -9
app.py CHANGED
@@ -1,11 +1,7 @@
1
- from flask import Flask, render_template
2
 
3
- app = Flask(__name__)
4
 
5
-
6
- @app.route("/")
7
- def index():
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!"}