ImageBot
所属分类:图形图象
开发工具:Others
文件大小:0KB
下载次数:0
上传日期:2023-12-26 19:51:48
上 传 者:
sh-1993
说明: 图像博特
(ImageBot)
文件列表:
main.py
# ImageBot
ImageBot, much like chatbots powered by LLMs, is adept at fulfilling user requests by generating images based on their prompts.
ImageBot's primary function is to interpret prompts and generate corresponding visual content, making it a valuable tool for image generation.
# Getting Started
To get started with this project, you'll need to clone the repository and set up a virtual environment. This will allow you to install the required dependencies without affecting your system-wide Python installation.
### Cloning the Repository
git clone https://github.com/jkmathilda/ImageBot.git
### Setting up a Virtual Environment
cd ./ImageBot
pyenv versions
pyenv local 3.11.6
echo '.env' >> .gitignore
echo '.venv' >> .gitignore
ls -la
python -m venv .venv # create a new virtual environment
source .venv/bin/activate # Activate the virtual environment
python -V # Check a python version
### Install the required dependencies
pip install -r requirements.txt
### Configure the Application
To configure the application, there are a few properties that can be set the environment
echo 'OPENAI_API_KEY="sk-...."' >> .env
### Running the Application
python -m streamlit run main.py
### Deactivate the virtual environment
deactivate
# Example
![Image 2023-12-26 at 1 08PM](https://github.com/jkmathilda/ImageBot/assets/142202145/6bdb0578-2af3-4b41-9827-dc537a2a3fa9)
# Reference
OpenAI Soure
https://platform.openai.com/docs/guides/images/usage
近期下载者:
相关文件:
收藏者: