Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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://
|
90 |
-
result = client.predict(youtube_url, "translate",
|
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(
|