Gen Image From Novelai
Project description
Nai3DrawServer
Install 💻
pip install novelai_gen
Usage 🖥️
from pydantic import SecretStr
from novelai_gen import CurlSession, NovelAiInference, NaiResult
globe_s = CurlSession(jwt_token=SecretStr("555"))
_res = NovelAiInference.build(prompt="1girl").generate(session=globe_s)
_res: NaiResult
print(_res)
Server Usage 🖥️
🔧 Config
Use the following commands to copy and edit the environment configuration file:
cd conf_dir
cp secrets.exp.toml .secrets.toml
nano .secrets.toml
🚀 Run
Here's how to run the server in your terminal:
pip install pdm
pdm install
pdm run python main.py
PM2 🔄
These instructions help you start PM2 hosting and set it to automatically restart:
apt install npm
npm install pm2 -g
pip install pdm
pdm install
pm2 start pm2.json
pm2 stop pm2.json
pm2 restart pm2.json
📚 Docs
To view interface documentation and debug, visit the /docs
page.
Acknowledgement 🏅
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
novelai_gen-0.1.0.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for novelai_gen-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef505874b534e119c1de0edfa325c4ac113db132740131c969f793a07f9b1cdc |
|
MD5 | 2a1e36058d0cbec5c102df5b7b102c98 |
|
BLAKE2b-256 | 0de642cc9cc3acb320b87a4a70774c0f8e515708566b7c832f73a4fa23eeeabb |