Raghav001 commited on
Commit
70d5872
·
1 Parent(s): b1611f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -245,7 +245,7 @@ def pine(data):
245
  check = 0
246
  for i in data:
247
  # print(i)
248
- if c == 500:
249
  text = " ".join(data[check: check + c])
250
  print(text)
251
  print(check)
@@ -257,14 +257,14 @@ def pine(data):
257
 
258
 
259
  Embedding_model = "text-embedding-ada-002"
260
- embeddings = OpenAIEmbeddings(openai_api_key = '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')
261
 
262
- # print(requests.post(url = chat_emd))
263
 
264
- # # embeddings = requests.post(url=chat_emd,
265
- # # data=json.dumps(data),
266
- # # headers=headers
267
- # # )
268
 
269
  pinecone.init(api_key = "ffb1f594-0915-4ebf-835f-c1eaa62fdcdc",
270
  environment = "us-west4-gcp-free"
 
245
  check = 0
246
  for i in data:
247
  # print(i)
248
+ if c == 550:
249
  text = " ".join(data[check: check + c])
250
  print(text)
251
  print(check)
 
257
 
258
 
259
  Embedding_model = "text-embedding-ada-002"
260
+ embeddings = OpenAIEmbeddings(openai_api_key="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")
261
 
262
+ print(requests.post(url = chat_emd))
263
 
264
+ # embeddings = requests.post(url=chat_emd,
265
+ # data=json.dumps(data),
266
+ # headers=headers
267
+ # )
268
 
269
  pinecone.init(api_key = "ffb1f594-0915-4ebf-835f-c1eaa62fdcdc",
270
  environment = "us-west4-gcp-free"