|
|
--- |
|
|
license: mit |
|
|
language: |
|
|
- ru |
|
|
base_model: |
|
|
- ai-forever/rugpt3large_based_on_gpt2 |
|
|
tags: |
|
|
- philosophy |
|
|
- Plato |
|
|
- text-generation |
|
|
pipeline_tag: text-generation |
|
|
--- |
|
|
## Examples |
|
|
- Example 1: "Benevolence" |
|
|
- Example 2: "Goodness" |
|
|
- Example 3: "Justice" |
|
|
|
|
|
# Проект семинара “Лаборатория Цифровой Философии”: Обучающий Философский Чат Бот “Досократик”. |
|
|
# interfacing 2024 , Тайвань. |
|
|
# Ярочкин Д.А 2024 |
|
|
|
|
|
import requests |
|
|
|
|
|
API_URL = "https://api-inference.huggingface.co/models/DmitryYarov/dosocratic" |
|
|
headers = {"Authorization": "Bearer hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"} |
|
|
|
|
|
def query(payload): |
|
|
response = requests.post(API_URL, headers=headers, json=payload) |
|
|
return response.json() |
|
|
|
|
|
output = query({ |
|
|
"inputs": "Can you please let us know more details about your ", |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
http://digital-philosophy.ru/ |