Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def main(url, parameters, progress=gr.Progress()):
|
|
15 |
progress(0.35, desc="تبدیل صوت به متن")
|
16 |
yield "تبدیل صوت به متن", None
|
17 |
|
18 |
-
transcribe_client = Client("
|
19 |
try:
|
20 |
job = transcribe_client.submit(url, api_name="/transcribe")
|
21 |
while not job.done():
|
@@ -34,7 +34,7 @@ def main(url, parameters, progress=gr.Progress()):
|
|
34 |
progress(0.55, desc="در حال ترجمه")
|
35 |
yield "در حال ترجمه", None
|
36 |
|
37 |
-
translate_client = Client("
|
38 |
try:
|
39 |
job = translate_client.submit(
|
40 |
handle_file(srt_file),
|
@@ -51,7 +51,7 @@ def main(url, parameters, progress=gr.Progress()):
|
|
51 |
progress(0.75, desc="پردازش ویدئو")
|
52 |
yield "درحال پردازش ویدئو", None
|
53 |
|
54 |
-
video_client = Client("
|
55 |
try:
|
56 |
job = video_client.submit(
|
57 |
handle_file(subtitle_file),
|
|
|
15 |
progress(0.35, desc="تبدیل صوت به متن")
|
16 |
yield "تبدیل صوت به متن", None
|
17 |
|
18 |
+
transcribe_client = Client("rayesh/transcribe")
|
19 |
try:
|
20 |
job = transcribe_client.submit(url, api_name="/transcribe")
|
21 |
while not job.done():
|
|
|
34 |
progress(0.55, desc="در حال ترجمه")
|
35 |
yield "در حال ترجمه", None
|
36 |
|
37 |
+
translate_client = Client("rayesh/translate")
|
38 |
try:
|
39 |
job = translate_client.submit(
|
40 |
handle_file(srt_file),
|
|
|
51 |
progress(0.75, desc="پردازش ویدئو")
|
52 |
yield "درحال پردازش ویدئو", None
|
53 |
|
54 |
+
video_client = Client("SPACERUNNER99/video_edite")
|
55 |
try:
|
56 |
job = video_client.submit(
|
57 |
handle_file(subtitle_file),
|