Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,7 +35,7 @@ def get_text_embedding_with_rate_limit(text_list, initial_delay=2, max_retries=1
|
|
| 35 |
logging.warning("Text chunk exceeds the token limit. Truncating the text.")
|
| 36 |
text = text[:8192]
|
| 37 |
|
| 38 |
-
response =
|
| 39 |
model="text-embedding-3-small",
|
| 40 |
input=[text]
|
| 41 |
)
|
|
|
|
| 35 |
logging.warning("Text chunk exceeds the token limit. Truncating the text.")
|
| 36 |
text = text[:8192]
|
| 37 |
|
| 38 |
+
response = client.embeddings.create(
|
| 39 |
model="text-embedding-3-small",
|
| 40 |
input=[text]
|
| 41 |
)
|