SPACERUNNER99 commited on
Commit
0324ab5
·
verified ·
1 Parent(s): 4f894e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -22,7 +22,7 @@ def main(url, parameters, progress=gr.Progress()):
22
  job = transcribe_client.submit(url)
23
  while not job.done():
24
  time.sleep(0.5)
25
- progress(0.35 + job.progress*0.2, desc="تبدیل صوت به متن")
26
 
27
  results = job.outputs()
28
  if len(results) < 1:
@@ -40,7 +40,7 @@ def main(url, parameters, progress=gr.Progress()):
40
  job = translate_client.submit(results[0], target)
41
  while not job.done():
42
  time.sleep(0.5)
43
- progress(0.55 + job.progress*0.2, desc="در حال ترجمه")
44
 
45
  translated_text = job.outputs()[0]
46
  finally:
@@ -63,7 +63,7 @@ def main(url, parameters, progress=gr.Progress()):
63
  )
64
  while not job.done():
65
  time.sleep(0.5)
66
- progress(0.75 + job.progress*0.25, desc="پردازش ویدئو")
67
 
68
  output_video = job.outputs()[0]
69
 
 
22
  job = transcribe_client.submit(url)
23
  while not job.done():
24
  time.sleep(0.5)
25
+ progress(0.35, desc="تبدیل صوت به متن")
26
 
27
  results = job.outputs()
28
  if len(results) < 1:
 
40
  job = translate_client.submit(results[0], target)
41
  while not job.done():
42
  time.sleep(0.5)
43
+ progress(0.55, desc="در حال ترجمه")
44
 
45
  translated_text = job.outputs()[0]
46
  finally:
 
63
  )
64
  while not job.done():
65
  time.sleep(0.5)
66
+ progress(0.75, desc="پردازش ویدئو")
67
 
68
  output_video = job.outputs()[0]
69