Update app.py
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ def get_emb(text):
|
|
| 52 |
data=json.dumps(data),
|
| 53 |
headers=headers
|
| 54 |
)
|
| 55 |
-
print("--------------------------------Embeddings
|
| 56 |
print(result.json()['data'][0]['embedding'])
|
| 57 |
return result.json()['data'][0]['embedding']
|
| 58 |
except Exception as e:
|
|
|
|
| 52 |
data=json.dumps(data),
|
| 53 |
headers=headers
|
| 54 |
)
|
| 55 |
+
print("--------------------------------Embeddings--------------------------------------")
|
| 56 |
print(result.json()['data'][0]['embedding'])
|
| 57 |
return result.json()['data'][0]['embedding']
|
| 58 |
except Exception as e:
|