Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ else:
|
|
| 23 |
st.write(transcript.text)
|
| 24 |
query = transcript.text
|
| 25 |
docs_chroma = db.similarity_search_with_score(query, k=3)
|
| 26 |
-
context_text = "\n\n".join([doc.page_content for doc,_score in docs_chroma]
|
| 27 |
prompt = prompt_template.format(context=context_text, question=query)
|
| 28 |
response_text = model.invoke(prompt)
|
| 29 |
|
|
|
|
| 23 |
st.write(transcript.text)
|
| 24 |
query = transcript.text
|
| 25 |
docs_chroma = db.similarity_search_with_score(query, k=3)
|
| 26 |
+
context_text = "\n\n".join([doc.page_content for doc,_score in docs_chroma])
|
| 27 |
prompt = prompt_template.format(context=context_text, question=query)
|
| 28 |
response_text = model.invoke(prompt)
|
| 29 |
|