Views
No views yet
pip install -r requirements.txtpython app.py1import requests
2
3API_URL = "https://api-inference.huggingface.co/models/username/my_russian_ai"
4headers = {"Authorization": "Bearer YOUR_API_TOKEN"}
5
6def query(payload):
7 response = requests.post(API_URL, headers=headers, json=payload)
8 return response.json()
9
10print(query({"inputs": "Привет, ИИ!"}))