linh-hk commited on
Commit
e181215
·
1 Parent(s): 273597e

run on huggingface bug fix

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -4,10 +4,14 @@ from flask_socketio import SocketIO, emit, join_room, leave_room
4
  import eventlet
5
  from core.mtdna_backend import *
6
 
 
 
 
 
7
  # accessions = []
8
  isvip = True # or True depending on the user
9
 
10
- app = flask.Flask(__name__)
11
  app.config["DEBUG"] = True
12
  app.config["SECRET_KEY"] = "dev-key"
13
  socketio = SocketIO(app, async_mode="eventlet", cors_allowed_origins="*")
 
4
  import eventlet
5
  from core.mtdna_backend import *
6
 
7
+ print("CWD:", os.getcwd())
8
+ print("templates/ exists:", os.path.isdir("templates"), "->", os.listdir("templates") if os.path.isdir("templates") else "missing")
9
+ print("static/ exists:", os.path.isdir("static"), "->", os.listdir("static")[:10] if os.path.isdir("static") else "missing")
10
+
11
  # accessions = []
12
  isvip = True # or True depending on the user
13
 
14
+ app = flask.Flask(__name__, static_folder="static", template_folder="templates", static_url_path="/static")
15
  app.config["DEBUG"] = True
16
  app.config["SECRET_KEY"] = "dev-key"
17
  socketio = SocketIO(app, async_mode="eventlet", cors_allowed_origins="*")