Spaces:
Running
Running
Commit
·
bfc97c8
1
Parent(s):
678e471
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def upload_pdf(file, pdf_text, embeddings, vectorstore, azure_embeddings, qa, pr
|
|
35 |
embeddings.append(emb)
|
36 |
except Exception as e:
|
37 |
print(e)
|
38 |
-
time.sleep(
|
39 |
response = openai.Embedding.create(
|
40 |
input=text,
|
41 |
engine="text-embedding-ada-002")
|
|
|
35 |
embeddings.append(emb)
|
36 |
except Exception as e:
|
37 |
print(e)
|
38 |
+
time.sleep(8)
|
39 |
response = openai.Embedding.create(
|
40 |
input=text,
|
41 |
engine="text-embedding-ada-002")
|