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)
sentence = d.spoken_answer("Qual é o teu animal favorito?", {"lang": "pt-pt"})
print(sentence)
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)