smjain commited on
Commit
d0a84b4
·
verified ·
1 Parent(s): cc8f83d

Upload ui.html

Browse files
Files changed (1) hide show
  1. 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") {