filipeclduarte commited on
Commit
71c537b
·
1 Parent(s): 8c13840

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -1,7 +1,10 @@
1
- from fastapi import FastAPI
2
 
3
- app = FastAPI()
4
 
5
- @app.get("/")
6
- async def root():
7
- return {"message": "Hello World"}
 
 
 
 
1
+ from flask import Flask
2
 
3
+ app = Flask(__name__)
4
 
5
+ @app.route("/")
6
+ def index():
7
+ return {"output": "Hello, world!"}
8
+
9
+ if __name__ == "__main__":
10
+ app.run(host="0.0.0.0", port=7860)