修复翻译框
parent
10c2f12090
commit
9825d1ac79
14
README.md
14
README.md
|
|
@ -1,8 +1,16 @@
|
|||
|
||||
# sd-webui-oldsix_prompt v1.65.1
|
||||
<!--
|
||||
* @Author: thisjam 3213441409@qq.com
|
||||
* @Date: 2024-03-24 15:56:01
|
||||
* @LastEditors: thisjam 3213441409@qq.com
|
||||
* @LastEditTime: 2024-03-28 10:11:16
|
||||
* @FilePath: \webui\extensions\sd-webui-oldsix-prompt\README.md
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
-->
|
||||
|
||||
# sd-webui-oldsix_prompt v1.66
|
||||
### 老版词库 @路过银河&网上收集
|
||||
### 新词库由群里小伙伴 @麻瓜 @万碎爷 @元一斤 整理
|
||||
### 100%完全自制插件,不是魔改别人,最近有个别up未均本人允许,在多个平台打着nsfw词库的旗号拿本插件吸粉入群,别人安装插件出问题又无法提供解决方案 ###
|
||||
### 开源不易,别跑到Issues发牢骚,有重要的事@我QQ,前段时间忙,群里那么多人真的管不过来,大家文明交流 ###
|
||||
### 觉得好用的可以给我点颗星。
|
||||
#### 英文不好不用怕!彻底解决prompt对于国人不友好的痛点,整理了多个分类上千个提示词,无需英文快速输入提示词
|
||||
#### 词库会持续更新
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
import launch
|
||||
if not launch.is_installed('beautifulsoup4'):
|
||||
launch.run_pip("install beautifulsoup4")
|
||||
|
||||
|
|
@ -830,6 +830,7 @@ function initTrans() {
|
|||
|
||||
function toggleDisplay(dom){
|
||||
dom.style.display = dom.style.display === 'block' ? 'none' : 'block';
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -839,6 +840,7 @@ function showTransUI(){
|
|||
|
||||
if (txtdisplay === 'block') {
|
||||
toggleDisplay(Elements.trans[0])
|
||||
// old-six-traninput
|
||||
Elements.trans[0].querySelector('textarea').focus()
|
||||
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -128,11 +128,11 @@ class Script(scripts.Script):
|
|||
|
||||
|
||||
with gr.Row(elem_id=eid):
|
||||
with gr.Accordion(label="SixGod_K提示词 v1.65.1",open=False):
|
||||
with gr.Accordion(label="SixGod_K提示词 v1.66",open=False):
|
||||
gr.HTML('<a class="oldsix-tips" href="https://github.com/thisjam/sd-webui-oldsix-prompt/">【使用说明书】')
|
||||
|
||||
textarea=gr.TextArea(self.json,elem_id=tid,visible=False)
|
||||
traninput=gr.Textbox(elem_classes="old-six-traninput",visible=False,show_label="",placeholder="输入中文后按回车翻译,[ALT+Q]键呼出/隐藏")
|
||||
traninput=gr.Textbox(elem_classes="old-six-traninput",show_label="",placeholder="输入中文后按回车翻译,[ALT+Q]键呼出/隐藏")
|
||||
tcache=gr.Textbox(elem_classes="old-six-tcache",visible=False)
|
||||
|
||||
with gr.Column(scale=4,elem_id="oldsix-optit"):
|
||||
|
|
|
|||
Loading…
Reference in New Issue