Namitg02 commited on
Commit
c3ecef9
·
verified ·
1 Parent(s): 18a436f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
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- docs1[0].page_content.")
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")