Update app.py
Browse files
app.py
CHANGED
|
@@ -65,7 +65,7 @@ pipe = pipeline(model = llm_model, tokenizer = tokenizer,trust_remote_code=True,
|
|
| 65 |
question = "How can I reverse diabetes?"
|
| 66 |
docs1 = retriever.invoke(question)
|
| 67 |
print(docs1[0].page_content)
|
| 68 |
-
print(docs1)[0]['generated_text'][-1]
|
| 69 |
|
| 70 |
print("check2")
|
| 71 |
|
|
@@ -73,12 +73,9 @@ print("check2")
|
|
| 73 |
#question = "How can I reverse diabetes?"
|
| 74 |
result = qa({"question": question})
|
| 75 |
print("result")
|
| 76 |
-
#result['answer']
|
| 77 |
-
|
| 78 |
-
#"question-answering", "conversational"
|
| 79 |
|
| 80 |
print("check3")
|
| 81 |
-
chain = pipe(question = question,context = "Use the following information to answer the question
|
| 82 |
|
| 83 |
|
| 84 |
print("check3A")
|
|
|
|
| 65 |
question = "How can I reverse diabetes?"
|
| 66 |
docs1 = retriever.invoke(question)
|
| 67 |
print(docs1[0].page_content)
|
| 68 |
+
#print(docs1)[0]['generated_text'][-1]
|
| 69 |
|
| 70 |
print("check2")
|
| 71 |
|
|
|
|
| 73 |
#question = "How can I reverse diabetes?"
|
| 74 |
result = qa({"question": question})
|
| 75 |
print("result")
|
|
|
|
|
|
|
|
|
|
| 76 |
|
| 77 |
print("check3")
|
| 78 |
+
chain = pipe(question = question,context = "Use the following information to answer the question. docs1[0].page_content.")
|
| 79 |
|
| 80 |
|
| 81 |
print("check3A")
|