Spaces:
Running
Running
Upload infer_serverless.py
Browse files- infer_serverless.py +3 -8
infer_serverless.py
CHANGED
@@ -14,7 +14,7 @@ from scipy.io import wavfile
|
|
14 |
from datetime import datetime
|
15 |
from urllib.parse import urlparse
|
16 |
from mega import Mega
|
17 |
-
from flask import Flask, request, jsonify, send_file,
|
18 |
import base64
|
19 |
import tempfile
|
20 |
import threading
|
@@ -234,12 +234,7 @@ def list_weights():
|
|
234 |
return jsonify(filenames)
|
235 |
|
236 |
|
237 |
-
|
238 |
-
# Clear the session
|
239 |
-
session.clear()
|
240 |
-
#if "google_oauth_token" in session:
|
241 |
-
# del session["google_oauth_token"]
|
242 |
-
return redirect(url_for("index"))
|
243 |
|
244 |
|
245 |
|
@@ -341,7 +336,7 @@ def api_convert_voice(filename,spk_id1,unique_id):
|
|
341 |
output_path1= combine_vocal_and_inst(output_path,inst,unique_id)
|
342 |
|
343 |
processed_audio_storage[unique_id] = output_path1
|
344 |
-
session['processed_audio_id'] = unique_id
|
345 |
task_status_tracker[unique_id] = {"status": "Finalizing", "percentage": 100}
|
346 |
print(output_path1)
|
347 |
upload_file(outputpath1)
|
|
|
14 |
from datetime import datetime
|
15 |
from urllib.parse import urlparse
|
16 |
from mega import Mega
|
17 |
+
from flask import Flask, request, jsonify, send_file,render_template
|
18 |
import base64
|
19 |
import tempfile
|
20 |
import threading
|
|
|
234 |
return jsonify(filenames)
|
235 |
|
236 |
|
237 |
+
|
|
|
|
|
|
|
|
|
|
|
238 |
|
239 |
|
240 |
|
|
|
336 |
output_path1= combine_vocal_and_inst(output_path,inst,unique_id)
|
337 |
|
338 |
processed_audio_storage[unique_id] = output_path1
|
339 |
+
#session['processed_audio_id'] = unique_id
|
340 |
task_status_tracker[unique_id] = {"status": "Finalizing", "percentage": 100}
|
341 |
print(output_path1)
|
342 |
upload_file(outputpath1)
|