Skip to content

A simple wrapper for Fooocus / Fooocus-API for easier integration with Discord, Telegram or Slack

License

Notifications You must be signed in to change notification settings

stilkin/focus_api_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fooocus Bot Client

a simple wrapper for Fooocus that you can use to add image generation to your Discord or Telegram channel

In this repository:

  • clients/bot_discord.py a basic Discord bot that responds to '/focus' prompts with an image based on the prompt

  • clients/bot_telegram.py a basic Telegram bot that responds to '/focus' prompts with an image based on the prompt

  • fooocus/fc_methods.py methods to generate an image from the Fooocus API, and change & store some config settings

  • fooocus/fc_settings.py a large array with all valid "styles", and a default config for the Fooocus API

  • tools/chroma_calls.py chromadb functions to store and retrieve the different styles. Will use a distance function to determine the best matching style based on the prompt

  • tools/or_calls.py calls to the OpenRouter API to "enrich" the prompt

  • tools/utilities.py functions for web- and file I/O

  • requirements.txt libraries you need to install to run the code samples

About

A simple wrapper for Fooocus / Fooocus-API for easier integration with Discord, Telegram or Slack

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages