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.1.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for novelai_gen-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ebf6db2abf4eeb30c71cbdf9ce0e7895a71a24fc726a809d4d9a32b1a49c8b0 |
|
MD5 | 554a0610d2b1156d2e7036895d7319bf |
|
BLAKE2b-256 | 890742705a1720d1a4cc882e9e67d38aa92d97f1b0a33e8285e8ffc325d3cc48 |