Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ import torch
|
|
5 |
import weaviate
|
6 |
from weaviate import WeaviateClient
|
7 |
from weaviate.auth import AuthApiKey
|
|
|
8 |
import cohere
|
9 |
|
10 |
weaviate_url = "vgwhgmrlqrqqgnlb1avjaa.c0.us-west3.gcp.weaviate.cloud"
|
@@ -12,7 +13,7 @@ weaviate_api_key = "7VoeYTjkOS4aHINuhllGpH4JPgE2QquFmSMn"
|
|
12 |
|
13 |
client = weaviate.connect_to_weaviate_cloud(
|
14 |
cluster_url=weaviate_url,
|
15 |
-
auth_credentials=weaviate_api_key,
|
16 |
)
|
17 |
|
18 |
cohere_client = cohere.Client("LEvCVeZkqZMW1aLYjxDqlstCzWi4Cvlt9PiysqT8")
|
|
|
5 |
import weaviate
|
6 |
from weaviate import WeaviateClient
|
7 |
from weaviate.auth import AuthApiKey
|
8 |
+
from weaviate.classes.init import Auth
|
9 |
import cohere
|
10 |
|
11 |
weaviate_url = "vgwhgmrlqrqqgnlb1avjaa.c0.us-west3.gcp.weaviate.cloud"
|
|
|
13 |
|
14 |
client = weaviate.connect_to_weaviate_cloud(
|
15 |
cluster_url=weaviate_url,
|
16 |
+
auth_credentials=Auth.api_key(weaviate_api_key),
|
17 |
)
|
18 |
|
19 |
cohere_client = cohere.Client("LEvCVeZkqZMW1aLYjxDqlstCzWi4Cvlt9PiysqT8")
|