Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -88,7 +88,7 @@ def transcribe_video(youtube_url: str, path: str) -> List[Document]:
|
|
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(
|
94 |
message: str, system_prompt: str = "", model_url: str = models["Llama2-70b"]["chat_link"]
|
|
|
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(
|
94 |
message: str, system_prompt: str = "", model_url: str = models["Llama2-70b"]["chat_link"]
|