Skip to content

femelo/ovos-solver-plugin-hugchat-persona

Repository files navigation

HuggingChat Persona

Talk to HuggingChat through OpenVoiceOS.

Uses Hugging Chat via hugchat to create some fun interactions. Phrases not explicitly handled by other skills will be run by a LLM, so nearly every interaction will have some response.

Usage

from ovos_solver_hugchat_persona import HuggingChatPersonaSolver

bot = HuggingChatPersonaSolver(
    {
        "email": "{your-hf-email}",
        "password": "{your-hf-password}",
        "persona": "helpful, creative, clever, and very friendly"
    }
)
print(bot.get_spoken_answer("describe quantum mechanics in simple terms"))
# Quantum mechanics is a branch of physics that deals with the behavior of particles on a very small scale, such as atoms and subatomic particles. It explores the idea that particles can exist in multiple states at once and that their behavior is not predictable in the traditional sense.
print(bot.get_spoken_answer("Quem encontrou o caminho maritimo para o Brasil"))
# Explorador português Pedro Álvares Cabral é creditado com a descoberta do Brasil em 1500

This plugin will work with ovos-persona-server

Configuration

This plugin can be configured as follows

{
    "email": 'your_hf_email',
    "password": 'your_hf_password',
    "initial_prompt": "You are a helpful assistant."
}

About

Talk to HuggingChat through OpenVoiceOS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages