Spaces:
Running
Running
Upload myinfer_latest.py
Browse files- myinfer_latest.py +2 -1
myinfer_latest.py
CHANGED
@@ -152,6 +152,7 @@ def cleanup_files(file_paths):
|
|
152 |
@app.route('/status/<audio_id>', methods=['GET'])
|
153 |
def get_status(audio_id):
|
154 |
# Retrieve the task status using the unique ID
|
|
|
155 |
status_info = task_status_tracker.get(audio_id, {"status": "Unknown ID", "percentage": 0})
|
156 |
return jsonify({"audio_id": audio_id, "status": status_info["status"], "percentage": status_info["percentage"]})
|
157 |
|
@@ -229,7 +230,7 @@ def api_convert_voice():
|
|
229 |
vocal_path = f"output/{spk_id}_{unique_id}/{split_model}/{spk_id}_input_audio_{unique_id}/vocals.wav"
|
230 |
inst = f"output/{spk_id}_{unique_id}/{split_model}/{spk_id}_input_audio_{unique_id}/no_vocals.wav"
|
231 |
print("*****before making call to convert ", unique_id)
|
232 |
-
task_status_tracker[unique_id] = "Processing: Step 2"
|
233 |
#output_queue = SimpleQueue()
|
234 |
ctx = get_context('spawn')
|
235 |
output_queue = ctx.Queue()
|
|
|
152 |
@app.route('/status/<audio_id>', methods=['GET'])
|
153 |
def get_status(audio_id):
|
154 |
# Retrieve the task status using the unique ID
|
155 |
+
print(audio_id)
|
156 |
status_info = task_status_tracker.get(audio_id, {"status": "Unknown ID", "percentage": 0})
|
157 |
return jsonify({"audio_id": audio_id, "status": status_info["status"], "percentage": status_info["percentage"]})
|
158 |
|
|
|
230 |
vocal_path = f"output/{spk_id}_{unique_id}/{split_model}/{spk_id}_input_audio_{unique_id}/vocals.wav"
|
231 |
inst = f"output/{spk_id}_{unique_id}/{split_model}/{spk_id}_input_audio_{unique_id}/no_vocals.wav"
|
232 |
print("*****before making call to convert ", unique_id)
|
233 |
+
#task_status_tracker[unique_id] = "Processing: Step 2"
|
234 |
#output_queue = SimpleQueue()
|
235 |
ctx = get_context('spawn')
|
236 |
output_queue = ctx.Queue()
|