Spaces:
Sleeping
Sleeping
pminervini
commited on
Commit
•
65126e2
1
Parent(s):
030557b
update
Browse files
app.py
CHANGED
@@ -149,6 +149,8 @@ def rag_pipeline(prompt, index="pubmed", num_docs=3, model_name="HuggingFaceH4/z
|
|
149 |
print('HF_RESPONSE', hf_response)
|
150 |
response = hf_response[0]['generated_text']
|
151 |
|
|
|
|
|
152 |
analysed_response = analyse(joined_docs, response)
|
153 |
|
154 |
# Return the generated text and the documents
|
|
|
149 |
print('HF_RESPONSE', hf_response)
|
150 |
response = hf_response[0]['generated_text']
|
151 |
|
152 |
+
model = tokenizer = None
|
153 |
+
|
154 |
analysed_response = analyse(joined_docs, response)
|
155 |
|
156 |
# Return the generated text and the documents
|