Spaces:
Running
Running
Commit
·
4a0e3c0
1
Parent(s):
b2c0bbb
hopefully this works
Browse files- app.py +2 -2
- static/.DS_Store +0 -0
- {templates → static/demo}/index.html +0 -0
app.py
CHANGED
@@ -37,7 +37,7 @@ import uuid
|
|
37 |
import json
|
38 |
import os
|
39 |
|
40 |
-
app = Flask(__name__)
|
41 |
|
42 |
# configure logging
|
43 |
logging.basicConfig(
|
@@ -60,7 +60,7 @@ FRONT_LOG_FILE = 'front_log.json'
|
|
60 |
def index():
|
61 |
user_ip = request.remote_addr
|
62 |
logger.info(f'USER {user_ip} - ID {id} - started the app')
|
63 |
-
return
|
64 |
|
65 |
@app.route("/recommend", methods=['GET'])
|
66 |
@cross_origin()
|
|
|
37 |
import json
|
38 |
import os
|
39 |
|
40 |
+
app = Flask(__name__, static_folder='static')
|
41 |
|
42 |
# configure logging
|
43 |
logging.basicConfig(
|
|
|
60 |
def index():
|
61 |
user_ip = request.remote_addr
|
62 |
logger.info(f'USER {user_ip} - ID {id} - started the app')
|
63 |
+
return app.send_static_file('demo/index.html')
|
64 |
|
65 |
@app.route("/recommend", methods=['GET'])
|
66 |
@cross_origin()
|
static/.DS_Store
CHANGED
Binary files a/static/.DS_Store and b/static/.DS_Store differ
|
|
{templates → static/demo}/index.html
RENAMED
File without changes
|