Socket
Socket
Sign inDemoInstall

ovos-solver-dialogpt-plugin

Package Overview
Dependencies
2
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ovos-solver-dialogpt-plugin

A question solver plugin for ovos


Maintainers
1

Readme

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.

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc