Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,8 @@ def query_vectara(question):
|
|
18 |
|
19 |
headers = {
|
20 |
"Content-Type": "application/json",
|
21 |
-
"authorization": f"{api_key}",
|
22 |
-
"customer-id":
|
23 |
}
|
24 |
|
25 |
query_body = {
|
|
|
18 |
|
19 |
headers = {
|
20 |
"Content-Type": "application/json",
|
21 |
+
"authorization": f"Bearer {api_key}", # Corrected authorization header
|
22 |
+
"customer-id": customer_id,
|
23 |
}
|
24 |
|
25 |
query_body = {
|