Update app.py
Browse files
app.py
CHANGED
@@ -22,6 +22,8 @@ template = """Use the following pieces of context to answer the question at the
|
|
22 |
|
23 |
QA_CHAIN_PROMPT = PromptTemplate(input_variables = ["context", "question"], template = template)
|
24 |
|
|
|
|
|
25 |
def invoke(openai_api_key, youtube_url, prompt):
|
26 |
openai.api_key = openai_api_key
|
27 |
if vectordb == None:
|
|
|
22 |
|
23 |
QA_CHAIN_PROMPT = PromptTemplate(input_variables = ["context", "question"], template = template)
|
24 |
|
25 |
+
vectordb = None
|
26 |
+
|
27 |
def invoke(openai_api_key, youtube_url, prompt):
|
28 |
openai.api_key = openai_api_key
|
29 |
if vectordb == None:
|