SPACERUNNER99 commited on
Commit
e396490
·
verified ·
1 Parent(s): f07297a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -22,9 +22,6 @@ def main(url, parameters, progress=gr.Progress()):
22
  job = transcribe_client.submit(url, api_name="/transcribe")
23
  while not job.done():
24
  time.sleep(0.5)
25
-
26
- if job.failed():
27
- raise gr.Error("Transcription API failed!")
28
 
29
  results = job.outputs()
30
  if len(results) != 3:
@@ -47,7 +44,6 @@ def main(url, parameters, progress=gr.Progress()):
47
  )
48
  while not job.done():
49
  time.sleep(0.3)
50
-
51
  subtitle_file = job.outputs()[0]
52
  finally:
53
  translate_client.close()
 
22
  job = transcribe_client.submit(url, api_name="/transcribe")
23
  while not job.done():
24
  time.sleep(0.5)
 
 
 
25
 
26
  results = job.outputs()
27
  if len(results) != 3:
 
44
  )
45
  while not job.done():
46
  time.sleep(0.3)
 
47
  subtitle_file = job.outputs()[0]
48
  finally:
49
  translate_client.close()