Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,6 +26,7 @@ def get_text_emb(open_ai_key, text):
|
|
| 26 |
data=json.dumps(data),
|
| 27 |
headers=headers
|
| 28 |
)
|
|
|
|
| 29 |
return result.json()['data'][0]['embedding']
|
| 30 |
|
| 31 |
|
|
|
|
| 26 |
data=json.dumps(data),
|
| 27 |
headers=headers
|
| 28 |
)
|
| 29 |
+
print(result.json())
|
| 30 |
return result.json()['data'][0]['embedding']
|
| 31 |
|
| 32 |
|