Giter Site home page Giter Site logo

naifu2webui's Introduction

🍭naifu2webui - 一个naifu前端接入webui端的设想

😊简介:

naifu的前端相对于webui有着更为简洁的界面和更为优秀的蒙版,不仅很适合普通的用户使用,也可以实现前后端分离,方便管理。于是,在群友们的支持下,我开启了该项目。

🙌注意:

1.本项目通过webuiapi实现,请在config.yaml中填入对应信息,并开启webui的api。

2.本人水平有限,代码可能会出现一些影响使用的bug,欢迎大家提issue共同讨论。

3.关于数据库的使用,下面会给出例子:

#在代码中使用
#导入数据库
from sql_whitecat import sql_neko
#初始化数据库,如果不存在,会按照config.yaml的信息创建
text = sql_neko()
#添加用户,user_id默认为QQ号
text.execute_sql("add_user",("2029354033","cat"))
#通过user_id查用户,改变token
text.execute_sql("change_user_token",("helpme","2029354033"))
#通过token查user_id
print(text.Query_sql("token2user","helpme"))
#请注意!数据库查询结果均为元组,获取单个数据应使用[0]

💯 TODO

2023/2/9

1.重写翻译模块 。

2.增加对蒙版的支持。

3.增加对webui功能的支持(如:xy图,高清修复等)。

naifu2webui's People

Contributors

realityerror avatar

Stargazers

t4wefan avatar Kmew avatar

Watchers

 avatar

Forkers

t4wefan

naifu2webui's Issues

关于相关依赖问题

在README中并没有提及依赖的问题,在更新后的项目中出现了依赖问题,模块无法被import

加入模型切换(lora)和后端屏蔽词功能以及自定义分辨率,高分修复按钮

用于搭建公开服务时需要使用一些屏蔽词来保证不会出现可能违法违规的内容
屏蔽词可以在后端通过对正面prompt正则操作实现

模型切换也应该允许用户自定义一些后端保存的lora权重
让用户有好的自定义体验

分辨率方面nai默认最大不超过1024,显然这是不够的,而且强制要求64整数倍这个问题已经在auto111的更新中被解决,但是web仍然还有限制
高分修复现在只能从后端启动,但是因为之前改了高分的api所以现在开高分修复会让成片模糊
觉得都还是比较重要的功能

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.