Spaces:
Runtime error
Runtime error
Commit
·
451bab1
1
Parent(s):
2bd9c72
Update app_utils.py
Browse files- app_utils.py +1 -1
app_utils.py
CHANGED
|
@@ -24,7 +24,7 @@ from tenacity import (
|
|
| 24 |
# FUNCTIONS
|
| 25 |
|
| 26 |
# get embeddings
|
| 27 |
-
@retry(wait=wait_random_exponential(min=21, max=60), stop=stop_after_attempt(
|
| 28 |
@st.cache_data
|
| 29 |
def embedding_from_string(input: str, model: str) -> list:
|
| 30 |
response = openai.Embedding.create(input=input, model=model)
|
|
|
|
| 24 |
# FUNCTIONS
|
| 25 |
|
| 26 |
# get embeddings
|
| 27 |
+
@retry(wait=wait_random_exponential(min=21, max=60), stop=stop_after_attempt(100))
|
| 28 |
@st.cache_data
|
| 29 |
def embedding_from_string(input: str, model: str) -> list:
|
| 30 |
response = openai.Embedding.create(input=input, model=model)
|