Spaces:
Running
Running
Update app.py
Browse files
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
|
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
|
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
|
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 |
|