mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 06:23:20 -07:00
fix: saved_models_path
This commit is contained in:
parent
fdc41cd212
commit
0aae99e808
1 changed files with 2 additions and 2 deletions
|
@ -5,11 +5,11 @@ from flask_socketio import SocketIO, emit
|
|||
import logging
|
||||
|
||||
|
||||
def create_flask_app(s2c, c2s, s2flask, args):
|
||||
def create_flask_app(s2c, c2s, s2flask, kwargs):
|
||||
app = Flask(__name__, template_folder="templates", static_folder="static")
|
||||
log = logging.getLogger('werkzeug')
|
||||
log.disabled = True
|
||||
model_path = Path(args.get('model_path', ''))
|
||||
model_path = Path(kwargs.get('saved_models_path', ''))
|
||||
filename = 'preview.jpg'
|
||||
preview_file = str(model_path / filename)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue