Spaces:
Running
on
Zero
Running
on
Zero
vteam27
commited on
Commit
β’
45a9477
1
Parent(s):
aabcd56
updated gradio sdk & used M4T large
Browse files
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: π
|
|
4 |
colorFrom: pink
|
5 |
colorTo: pink
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 4.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: mit
|
|
|
4 |
colorFrom: pink
|
5 |
colorTo: pink
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 4.26.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: mit
|
app.py
CHANGED
@@ -21,8 +21,8 @@ logging.set_verbosity_error()
|
|
21 |
DEFAULT_TARGET_LANGUAGE = "English"
|
22 |
from transformers import SeamlessM4TForTextToText
|
23 |
from transformers import AutoProcessor
|
24 |
-
model = SeamlessM4TForTextToText.from_pretrained("facebook/hf-seamless-m4t-
|
25 |
-
processor = AutoProcessor.from_pretrained("facebook/hf-seamless-m4t-
|
26 |
|
27 |
|
28 |
import pytesseract as pt
|
@@ -213,7 +213,7 @@ with gr.Blocks() as demo_t2tt:
|
|
213 |
inputs=[file_uploader ,input_text, source_language, target_language],
|
214 |
outputs=[output_text, output_file],
|
215 |
fn=run_t2tt,
|
216 |
-
cache_examples=
|
217 |
api_name=False,
|
218 |
)
|
219 |
|
|
|
21 |
DEFAULT_TARGET_LANGUAGE = "English"
|
22 |
from transformers import SeamlessM4TForTextToText
|
23 |
from transformers import AutoProcessor
|
24 |
+
model = SeamlessM4TForTextToText.from_pretrained("facebook/hf-seamless-m4t-large")
|
25 |
+
processor = AutoProcessor.from_pretrained("facebook/hf-seamless-m4t-large")
|
26 |
|
27 |
|
28 |
import pytesseract as pt
|
|
|
213 |
inputs=[file_uploader ,input_text, source_language, target_language],
|
214 |
outputs=[output_text, output_file],
|
215 |
fn=run_t2tt,
|
216 |
+
cache_examples=True,
|
217 |
api_name=False,
|
218 |
)
|
219 |
|