gaur3009 commited on
Commit
7f13670
·
verified ·
1 Parent(s): 162a494

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -6,10 +6,12 @@ from weaviate import WeaviateClient
6
  from weaviate.auth import AuthApiKey
7
  import cohere
8
 
9
- auth = AuthApiKey(api_key="7VoeYTjkOS4aHINuhllGpH4JPgE2QquFmSMn")
10
- client = WeaviateClient(
11
- url="vgwhgmrlqrqqgnlb1avjaa.c0.us-west3.gcp.weaviate.cloud",
12
- auth_client=auth
 
 
13
  )
14
 
15
  cohere_client = cohere.Client("LEvCVeZkqZMW1aLYjxDqlstCzWi4Cvlt9PiysqT8")
 
6
  from weaviate.auth import AuthApiKey
7
  import cohere
8
 
9
+ weaviate_url = "vgwhgmrlqrqqgnlb1avjaa.c0.us-west3.gcp.weaviate.cloud"
10
+ weaviate_api_key = "7VoeYTjkOS4aHINuhllGpH4JPgE2QquFmSMn"
11
+
12
+ ]client = weaviate.connect_to_weaviate_cloud(
13
+ cluster_url=weaviate_url,
14
+ auth_credentials=Auth.api_key(weaviate_api_key),
15
  )
16
 
17
  cohere_client = cohere.Client("LEvCVeZkqZMW1aLYjxDqlstCzWi4Cvlt9PiysqT8")