Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
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.
Metadata
Release files for ovos-solver-dialogpt-plugin 0.0.0a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ovos-solver-dialogpt-plugin-0.0.0a2.tar.gz | 7.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ovos_solver_dialogpt_plugin-0.0.0a2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.2 kB
Release files / ovos-solver-dialogpt-plugin-0.0.0a2.tar.gz
| Download URL | ovos-solver-dialogpt-plugin-0.0.0a2.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4fced5c9d1d1c9eed95ea93c5b726adfec566b34143c8e33c8ff1315d62577a2
|
|
BLAKE2b-256 checksum How to use checksums |
0f154a1fe411cd08cbf73e4355893c24df37634b443e081e3d4b13edf809d7bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / ovos_solver_dialogpt_plugin-0.0.0a2-py3-none-any.whl
| Download URL | ovos_solver_dialogpt_plugin-0.0.0a2-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e8679467cf66a83f8dd3f9f3230c3b470298adba72ee5051c7107a32cadcbdda
|
|
BLAKE2b-256 checksum How to use checksums |
106f371b80717fc360d1a158899bbddc52c164f79870e9a877d988322b15c85d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|