Commit 503d59d8 authored by Bucky Lee's avatar Bucky Lee
Browse files

feat: manual merge

parent 8fc55c3f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5,3 +5,4 @@

*.log
**/.DS_Store
*.pth
+3 −2
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ import torch
import numpy as np
import shutil
import os
import core.main
from core.main import process
from time import sleep

UPLOAD_FOLDER = os.path.join('data', 'unprocessed')
@@ -46,7 +46,8 @@ def upload_file(model_name):
        file_name = str(file_id) + os.path.splitext(file.filename)[1]
        src_path = os.path.join(app.config['UPLOAD_FOLDER'], file_name)
        file.save(src_path)
        shutil.copy(src_path, 'data/processed')
        process(src_path, model_name)
        # shutil.copy(src_path, 'data/processed')
        # msg = core.main.process(src_path, model_name)
        # if msg == 'Success':
        return jsonify({'id':file_name})
−163 B

File deleted.

−159 B

File deleted.

Loading