singhankur01 commited on
Commit
84ee692
·
verified ·
1 Parent(s): 84c3b13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -4
app.py CHANGED
@@ -62,11 +62,11 @@ async def lifespan(app: FastAPI):
62
 
63
  if not GOOGLE_API_KEY:
64
  raise RuntimeError("CRITICAL: Missing GOOGLE_API_KEY in environment secrets!")
65
- nvidia_api_key = os.getenv("nvidia_api_key")
66
- print("🔑 nvidia:", "FOUND" if nvidia_api_key else "NOT FOUND")
67
 
68
- if not nvidia_api_key:
69
- raise RuntimeError("CRITICAL: Missing nvidia api key in environment secrets!")
70
 
71
  # Load models into the shared dictionary
72
  ml_models["embedder"] = HuggingFaceEmbeddings(
@@ -99,7 +99,14 @@ Answer the query , do not add extra information irrelevently.
99
  **Query**: {full_query}
100
 
101
  **Response**:
 
 
102
 
 
 
 
 
 
103
  """
104
  )
105
  print("✅ Models and prompt loaded successfully!")
 
62
 
63
  if not GOOGLE_API_KEY:
64
  raise RuntimeError("CRITICAL: Missing GOOGLE_API_KEY in environment secrets!")
65
+ # nvidia_api_key = os.getenv("nvidia_api_key")
66
+ # print("🔑 nvidia:", "FOUND" if nvidia_api_key else "NOT FOUND")
67
 
68
+ # if not nvidia_api_key:
69
+ # raise RuntimeError("CRITICAL: Missing nvidia api key in environment secrets!")
70
 
71
  # Load models into the shared dictionary
72
  ml_models["embedder"] = HuggingFaceEmbeddings(
 
99
  **Query**: {full_query}
100
 
101
  **Response**:
102
+ 1. query: What is the waiting period for pre-existing diseases (PED) to be covered?
103
+ response: There is a waiting period of thirty-six (36) months of continuous coverage from the first policy inception for pre-existing diseases and their direct complications to be covered.
104
 
105
+ 2. query: Are the medical expenses for an organ donor covered under this policy?
106
+ response : Yes, the policy indemnifies the medical expenses for the organ donor's hospitalization for the purpose of harvesting the organ, provided the organ is for an insured person and the donation complies with the Transplantation of Human Organs Act, 1994.
107
+
108
+ 3. query: Does this policy cover maternity expenses, and what are the conditions?
109
+ response: Yes, the policy covers maternity expenses, including childbirth and lawful medical termination of pregnancy. To be eligible, the female insured person must have been continuously covered for at least 24 months. The benefit is limited to two deliveries or terminations during the policy period.
110
  """
111
  )
112
  print("✅ Models and prompt loaded successfully!")