File size: 298 Bytes
1bc3f18
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import requests

url = "https://elwanda-agnathous-tragically.ngrok-free.dev/api/embeddings"
headers = {
    "Content-Type": "application/json"
}
data = {"model": "embeddinggemma:latest", "prompt": "Hello world"}

r = requests.post(url, json=data, headers=headers)
print(r.status_code)
print(r.text)