Illia56 commited on
Commit
f1de2d5
1 Parent(s): a19adbb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -86,8 +86,8 @@ def transcribe_video(youtube_url: str, path: str) -> List[Document]:
86
  Transcribe a video and return its content as a Document.
87
  """
88
  logging.info(f"Transcribing video: {youtube_url}")
89
- client = Client("https://hf-audio-whisper-large-v3.hf.space/")
90
- result = client.predict(youtube_url, "translate", fn_index=7)
91
  return [Document(page_content=result[1], metadata=dict(page=1))]
92
 
93
  def predict(
 
86
  Transcribe a video and return its content as a Document.
87
  """
88
  logging.info(f"Transcribing video: {youtube_url}")
89
+ client = Client("https://sanchit-gandhi-whisper-jax.hf.space/")
90
+ result = client.predict(youtube_url, "translate", True, fn_index=7)
91
  return [Document(page_content=result[1], metadata=dict(page=1))]
92
 
93
  def predict(