sarwansingh commited on
Commit
1b4eb2e
·
verified ·
1 Parent(s): a11dcb3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -1,7 +1,11 @@
1
- from fastapi import FastAPI
2
 
3
- app = FastAPI()
4
 
5
- @app.get("/")
6
- def greet_json():
7
- return {"Hello": "World!"}
 
 
 
 
 
 
 
1
 
2
+ from flask import Flask
3
 
4
+ app = Flask(__name__)
5
+
6
+ @app.route('/')
7
+ def hello_world():
8
+ return render_template("index.html")
9
+
10
+ if __name__ == '__main__':
11
+ app.run()