vteam27 commited on
Commit
45a9477
β€’
1 Parent(s): aabcd56

updated gradio sdk & used M4T large

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +3 -3
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: πŸƒ
4
  colorFrom: pink
5
  colorTo: pink
6
  sdk: gradio
7
- sdk_version: 4.16.0
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-medium")
25
- processor = AutoProcessor.from_pretrained("facebook/hf-seamless-m4t-medium")
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=False,
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