A question solver plugin for ovos
Project description
DialoGPT Persona
Give Mycroft some sass with DialoGPT
While this can not compete with ChatGPT Persona it is an offline alternative, you can use any model from huggingface to have different personas
Find models here
Examples
- "What is best in life?"
- "Do you like dogs"
- "Does God exist?"
Usage
Spoken answers api
from ovos_solver_dialogpt import DialoGPTSolver
d = DialoGPTSolver({"model": "microsoft/DialoGPT-large"})
sentence = d.spoken_answer("What is best in life?")
print(sentence)
# To be alive.
sentence = d.spoken_answer("Qual é o teu animal favorito?", {"lang": "pt-pt"})
print(sentence)
# Adoro todos os animais
d = DialoGPTSolver({"model": "ingen51/DialoGPT-medium-GPT4"})
for q in ["hello!",
"who are you?",
"what is the speed of light?",
"what is the meaning of life?",
"Does god exist?",
"What is your favorite color?",
"What is your favorite animal?",
"What is best in life?"]:
a = d.get_spoken_answer(q)
print(q, a)
# hello! Hiya there.
# who are you? I'm the guy that runs the place.
# what is the speed of light? About 186,600 mph
# what is the meaning of life? The meaning of existence is to suffer alone.
# Does god exist? Yes. He does.
# What is your favorite color? I don't have one in particular.
# What is your favorite animal? Horned lizard.
# What is best in life? A warm home.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for ovos-solver-dialogpt-plugin-0.0.0a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 718f0ba3d86f008bc1db5bc2eed6cc1c3c7b9c92a0692a0f429e095110e93c03 |
|
MD5 | 1c98593f7d144bd3322af686efde7404 |
|
BLAKE2b-256 | d2c7c08566d78e9dcbef1e4b68c60d937ff355c8a11c4e33fb5e6ff70f4aa114 |
Close
Hashes for ovos_solver_dialogpt_plugin-0.0.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 860529856a23b917f761b014fb732c3ce9efafa096fe00241af8c7c4cfb1b8ab |
|
MD5 | 714809c5b8918a42c23a8d886646d496 |
|
BLAKE2b-256 | 3691d9cfb8ad0444b07ec64e12547feaaf3044ee92572316cc7b29539ed2cd00 |