Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,11 +14,11 @@ def query_vectara(question):
|
|
14 |
corpus_id = config('CORPUS_ID') # Read from .env file
|
15 |
api_key = config('API_KEY') # Read from .env file
|
16 |
|
17 |
-
query_url = "https://api.vectara.io:443/v1/query"
|
18 |
|
19 |
headers = {
|
20 |
"Content-Type": "application/json",
|
21 |
-
"Authorization": f"
|
22 |
"customer-id": customer_id,
|
23 |
}
|
24 |
|
|
|
14 |
corpus_id = config('CORPUS_ID') # Read from .env file
|
15 |
api_key = config('API_KEY') # Read from .env file
|
16 |
|
17 |
+
query_url = "https://api.vectara.io:443/v1/query/v1/query"
|
18 |
|
19 |
headers = {
|
20 |
"Content-Type": "application/json",
|
21 |
+
"Authorization": f"{api_key}",
|
22 |
"customer-id": customer_id,
|
23 |
}
|
24 |
|