Spaces:
Build error
Build error
Update app.py
Browse files34 unmodified lines3536373839404134 unmodified lineslogging.warning("Text chunk exceeds the token limit. Truncating the text.")text = text[:8192]response = openai.embeddings.create(model="text-embedding-3-small",input=[text])34 unmodified lines3536373839404134 unmodified lineslogging.warning("Text chunk exceeds the token limit. Truncating the text.")text = text[:8192]response = client.embeddings.create(model="text-embedding-3-small",input=[text])
app.py+1-1