Spaces:
Sleeping
Sleeping
Upload ui.html
Browse files- templates/ui.html +1 -0
templates/ui.html
CHANGED
@@ -77,6 +77,7 @@ $(document).ready(function() {
|
|
77 |
success: function(data) {
|
78 |
$('#statusDisplay').text(`${data.status} - ${data.percentage}% complete`);
|
79 |
if (data.status !== "Completed" && data.status !== "Failed") {
|
|
|
80 |
setTimeout(() => updateTaskStatus(audioId), 1000); // Poll every second
|
81 |
} else {
|
82 |
if (data.status === "Completed") {
|
|
|
77 |
success: function(data) {
|
78 |
$('#statusDisplay').text(`${data.status} - ${data.percentage}% complete`);
|
79 |
if (data.status !== "Completed" && data.status !== "Failed") {
|
80 |
+
$('#processedAudio')[0].play();
|
81 |
setTimeout(() => updateTaskStatus(audioId), 1000); // Poll every second
|
82 |
} else {
|
83 |
if (data.status === "Completed") {
|