Update functions.py
Browse files- functions.py +1 -3
functions.py
CHANGED
@@ -44,8 +44,6 @@ from langchain.schema import (
|
|
44 |
HumanMessage,
|
45 |
SystemMessage
|
46 |
)
|
47 |
-
from langchain import VectorDBQA
|
48 |
-
from langchain.chains.question_answering import load_qa_chain
|
49 |
|
50 |
from langchain.prompts import PromptTemplate
|
51 |
|
@@ -292,7 +290,7 @@ def get_spacy():
|
|
292 |
return nlp
|
293 |
|
294 |
@st.cache_data
|
295 |
-
def inference(link,
|
296 |
'''Convert Youtube video or Audio upload to text'''
|
297 |
|
298 |
try:
|
|
|
44 |
HumanMessage,
|
45 |
SystemMessage
|
46 |
)
|
|
|
|
|
47 |
|
48 |
from langchain.prompts import PromptTemplate
|
49 |
|
|
|
290 |
return nlp
|
291 |
|
292 |
@st.cache_data
|
293 |
+
def inference(link, upload, _asr_model):
|
294 |
'''Convert Youtube video or Audio upload to text'''
|
295 |
|
296 |
try:
|