Spaces:
Runtime error
Runtime error
WaiYanLinn
commited on
Commit
•
d7e3e3c
1
Parent(s):
cd77a9a
'fixed-error'
Browse files- app.py +1 -1
- src/__init__.py +3 -2
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
from src import create_app
|
2 |
from asgiref.wsgi import WsgiToAsgi
|
3 |
|
4 |
-
|
|
|
1 |
from src import create_app
|
2 |
from asgiref.wsgi import WsgiToAsgi
|
3 |
|
4 |
+
asgi = WsgiToAsgi(create_app())
|
src/__init__.py
CHANGED
@@ -2,12 +2,13 @@ from flask import Flask
|
|
2 |
from flask_cors import CORS
|
3 |
from src.router.routes import api, web
|
4 |
|
5 |
-
app = Flask(__name__, template_folder="./
|
6 |
app.secret_key = "oOUP0oHOQKHnmZHbXT8IxQ99Ml4Q2ZMv"
|
7 |
cors = CORS(app, resources={r"/*": {"origins": "*"}})
|
8 |
|
9 |
app.register_blueprint(api, url_prefix="/api")
|
10 |
app.register_blueprint(web)
|
11 |
|
|
|
12 |
def create_app():
|
13 |
-
return app
|
|
|
2 |
from flask_cors import CORS
|
3 |
from src.router.routes import api, web
|
4 |
|
5 |
+
app = Flask(__name__, template_folder="./templates")
|
6 |
app.secret_key = "oOUP0oHOQKHnmZHbXT8IxQ99Ml4Q2ZMv"
|
7 |
cors = CORS(app, resources={r"/*": {"origins": "*"}})
|
8 |
|
9 |
app.register_blueprint(api, url_prefix="/api")
|
10 |
app.register_blueprint(web)
|
11 |
|
12 |
+
|
13 |
def create_app():
|
14 |
+
return app
|