Staticaliza commited on
Commit
55e1b65
·
verified ·
1 Parent(s): 2d1af3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -22,7 +22,8 @@ BATCH_SIZE = 8
22
  snapshot_download(repo_id="deepdml/faster-whisper-large-v3-turbo-ct2", local_dir="faster-whisper-large-v3-turbo-ct2", repo_type="model")
23
 
24
  repo = WhisperModel("faster-whisper-large-v3-turbo-ct2")
25
-
 
26
  css = '''
27
  .gradio-container{max-width: 560px !important}
28
  h1{text-align:center}
@@ -36,7 +37,7 @@ def transcribe(input=None, task=DEFAULT_TASK):
36
  print(input)
37
  if input is None: raise gr.Error("Invalid input.")
38
 
39
- segments, info = model.transcribe(input)
40
  print(segments)
41
  print(info)
42
  # output = repo(input, batch_size=BATCH_SIZE, generate_kwargs={"task": task}, return_timestamps=True)["text"]
 
22
  snapshot_download(repo_id="deepdml/faster-whisper-large-v3-turbo-ct2", local_dir="faster-whisper-large-v3-turbo-ct2", repo_type="model")
23
 
24
  repo = WhisperModel("faster-whisper-large-v3-turbo-ct2")
25
+ print(repo.transcribe)
26
+ print(repo.translate)
27
  css = '''
28
  .gradio-container{max-width: 560px !important}
29
  h1{text-align:center}
 
37
  print(input)
38
  if input is None: raise gr.Error("Invalid input.")
39
 
40
+ segments, info = repo.transcribe(input)
41
  print(segments)
42
  print(info)
43
  # output = repo(input, batch_size=BATCH_SIZE, generate_kwargs={"task": task}, return_timestamps=True)["text"]