eaglelandsonce commited on
Commit
5b06c04
1 Parent(s): fe4a3d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -14,12 +14,6 @@ corpus_id = os.environ['VECTARA_CORPUS_ID']
14
  customer_id = os.environ['VECTARA_CUSTOMER_ID']
15
  api_key = os.environ['VECTARA_API_KEY']
16
 
17
- """
18
- "api_key": os.environ.get("VECTARA_API_KEY", ""),
19
- "customer_id": os.environ.get("VECTARA_CUSTOMER_ID", ""),
20
- "corpus_id": os.environ.get("VECTARA_CORPUS_ID", ""),
21
-
22
- """
23
 
24
  # Get Data +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
25
 
@@ -67,7 +61,7 @@ def query_vectara(query: str, case_number: int, filter_str="", lambda_val=0.0) -
67
  headers=get_post_headers(),
68
  url="https://api.vectara.io/v1/query",
69
  data=json.dumps(data),
70
- timeout=30,
71
  )
72
 
73
  if response.status_code != 200:
 
14
  customer_id = os.environ['VECTARA_CUSTOMER_ID']
15
  api_key = os.environ['VECTARA_API_KEY']
16
 
 
 
 
 
 
 
17
 
18
  # Get Data +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
19
 
 
61
  headers=get_post_headers(),
62
  url="https://api.vectara.io/v1/query",
63
  data=json.dumps(data),
64
+ timeout=130,
65
  )
66
 
67
  if response.status_code != 200: