moonvy / openpromptstudio Goto Github PK
View Code? Open in Web Editor NEW🥣 AIGC 提示词可视化编辑器 | OPS | Open Prompt Studio
Home Page: https://moonvy.com/apps/ops/
🥣 AIGC 提示词可视化编辑器 | OPS | Open Prompt Studio
Home Page: https://moonvy.com/apps/ops/
@Moonvy
建议整合这两个,丰富功能,增加演示图片
提示词词典类目要是能排序就好了
浏览器:Chrome / Safari
现象:点击「复制」按钮,生成的内容无法复制到系统剪贴板
直接运行Index是一个空页面,是需要配置什么吗?
nohup npm run serve 无法打开网页nohup npm run dev可以
nohup npm run dev无法使用已经配置了腾讯密钥的翻译服务
一个提示词库多的可能有几千条,找起来也挺不容易的。
本地部署时,速度超过 5字符/s,控制台会报错。
在线版本也有类似错误。
$ npm run dev
> @moonvy/[email protected] dev
> vite dev --host
VITE v3.1.0 ready in 746 ms
➜ Local: http://localhost:12345/apps/ops/
➜ Network: http://x.x.x.x:12345/apps/ops/
➜ Network: http://x.x.x.x:12345/apps/ops/
Failed to resolve import "../../ParsePrompts" from "src/Compoents/PromptEditor/Lib/parsePrompts/parsers/Midjourney/index.ts". Does the file exist?
4:37:41 AM [vite] Internal server error: Failed to resolve import "../../ParsePrompts" from "src/Compoents/PromptEditor/Lib/parsePrompts/parsers/Midjourney/index.ts". Does the file exist?
Plugin: vite:import-analysis
File: /root/OpenPromptStudio/src/Compoents/PromptEditor/Lib/parsePrompts/parsers/Midjourney/index.ts
1 | import { PromptWordType } from "../../ParsePrompts";
| ^
2 | import { translateZh2En } from "../../../translatePrompts";
3 | export async function midjourneyParse(text, options) {
at formatError (file:///root/OpenPromptStudio/node_modules/vite/dist/node/chunks/dep-665b0112.js:40782:46)
at TransformContext.error (file:///root/OpenPromptStudio/node_modules/vite/dist/node/chunks/dep-665b0112.js:40778:19)
at normalizeUrl (file:///root/OpenPromptStudio/node_modules/vite/dist/node/chunks/dep-665b0112.js:37514:33)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async TransformContext.transform (file:///root/OpenPromptStudio/node_modules/vite/dist/node/chunks/dep-665b0112.js:37648:47)
at async Object.transform (file:///root/OpenPromptStudio/node_modules/vite/dist/node/chunks/dep-665b0112.js:41031:30)
at async loadAndTransform (file:///root/OpenPromptStudio/node_modules/vite/dist/node/chunks/dep-665b0112.js:37292:29)
/src/Compoents/PromptEditor/Lib/parsePrompts/parsers/Midjourney/index.ts 这个文件,第一行
import { IPromptWord, PromptWordType } from "../../ParsePrompts"
存在错误,应该改成
import { IPromptWord, PromptWordType } from "../../parsePrompts"
由于windows环境不分大小写,所以应该可以正常运行,但是linux环境则会报错。
以减少在线翻译平台访问次数.
链接了自己的notion之后,还能切换官方词典就好了。目前链接之后即使断开notion也无法查看官方的词典了
Notion连接错误:没有Notion数据库的访问权限.请在此Notion数据库页面菜单的'Connections'中添加你的集成应用,咋整呀
希望可以加一个填写openai api的地方去调用chatgpt的翻译
VITE v3.1.0 ready in 210 ms
➜ Local: http://localhost:12833/apps/ops/
➜ Network: http://172.17.0.5:12833/apps/ops/
✘ [ERROR] No matching export in "node_modules/@vueuse/core/node_modules/vue-demi/lib/index.mjs" for import "createApp"
node_modules/@vueuse/core/dist/index.esm.js:1:62:
1 │ import { isRef, ref, watchEffect, computed, customRef, unref, createApp, reactive, watch, getCurrentInstance, onMounted, onUpdated, toRefs as toRefs$1, shallowRef, markRaw, readonly, isVue2 } from 'vue-demi';
╵ ~~~~~~~~~
想自己添加第三方翻译服务的话,需要在哪个目录改
Stable-Diffusion (WIP) 这一个选项是灰色的
你好,我做个prompt的生成器,能否通过API ,POST到OpenPromptStudio里面进行修改。
目前使用流程:
clip识别图片,使用gpt2模型,生成多条prompt
或 中文,使用chatglm扩展,翻译成英文,生成多条prompt
然后一条一条复制过来修改,比较繁琐:)
改进的流程:
生成多条prompt --> http post --> OpenPromptStudio(建立多个工作区)
项目地址:
https://github.com/zhongpei/image2text_prompt_generator
Failed to resolve import "@moonvy/app-core" from "src\Boot\index.ts". Does the file exist?
10:57:57 [vite] Internal server error: Failed to resolve import "@moonvy/app-core" from "src\Boot\index.ts". Does the file exist?
Plugin: vite:import-analysis
File: E:/Projects/OpenPromptStudio/src/Boot/index.ts
1 | import { bootVue } from "./vue.boot";
2 | import { I18n } from "@moonvy/app-core";
| ^
3 | export function boot() {
4 | ;
部署后出现上诉报错
系统版本 Windows 11 企业版 22H2 (22621.1105)
nodejs版本 18.15.0 LTS
如果能直接将数据存在浏览器的 IndexedDB,这样就不用 Notion 可以实现词典记录了。
搜索 open prompt studio
根本搜不出来。。。
This is an AMAZING project! You are a genius! Can you add other languages other than Chinese? I can provide ITALIAN translations of the keywords and the UI. I'm from Italy.😀
If you support more languages and create a permanent website, OpenPromptStudio can become an international online resource for Prompts.
Can you add a GUIDE on how to contribute for adding a language translation of the keywords? I think that if you add a section to the Readme.md titled "HOW TO CONTRIBUTE WITH AN ADDITIONAL LANGUAGE TRANSLATION". There you can write a step by step guide on how to do it. It would be better if this section of the Readme.md was written in english.
--version 5 改成 --v 5不报错
一直提示,Notion连接错误:没有Notion数据库的访问权限。请在此Notion 数据库页面菜单的'Connections'中添加你的集成应用
但是已经反复确认Token和数据库的BaseID无误,token的访问权限也已经连接至数据库和上级页面,但还是出错0.0
当手动输入新的或修改提示词时,不要让提示词词典中选择的提示词丢失
[plugin:vite:import-analysis] Failed to resolve import "../../ParsePrompts" from "src/Compoents/PromptEditor/Lib/parsePrompts/parsers/Midjourney/index.ts". Does the file exist?
/app/src/Compoents/PromptEditor/Lib/parsePrompts/parsers/Midjourney/index.ts:1:44
1 | import { PromptWordType } from "../../ParsePrompts";
| ^
2 | import { translateZh2En } from "../../../translatePrompts";
3 | export async function midjourneyParse(text, options) {
at formatError (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:40782:46)
at TransformContext.error (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:40778:19)
at normalizeUrl (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:37514:33)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async TransformContext.transform (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:37648:47)
at async Object.transform (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:41031:30)
at async loadAndTransform (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:37292:29
Click outside or fix the code to dismiss.
You can also disable this overlay by setting server.hmr.overlay to false in vite.config.js.
执行了镜像编译,.env也加了,然后容器执行的参数里面也增加了对应的翻译的配置,但是还是不生效,翻译接口会报错,求助
tags来自 https://huggingface.co/SmilingWolf/wd-v1-4-convnextv2-tagger-v2/tree/main
selected_tags.csv
使用google翻译,去掉了一些明显错误的内容。
实现的代码在这里:
https://github.com/zhongpei/image2text_prompt_generator/tree/main/convert_tags
"""
@moonvy/[email protected] dev
vite dev --host
VITE v3.1.0 ready in 487 ms
➜ Local: http://localhost:12833/apps/ops/
➜ Network: http://172.17.0.5:12833/apps/ops/
node:internal/errors:490
ErrorCaptureStackTrace(err);
^
Error: ENOSPC: System limit for number of file watchers reached, watch '/app/src/Boot/vue.boot.ts'
at FSWatcher. (node:internal/fs/watchers:247:19)
at Object.watch (node:fs:2343:34)
at createFsWatchInstance (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:49738:17)
at setFsWatchListener (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:49785:15)
at NodeFsHandler$1._watchWithNodeFs (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:49940:14)
at NodeFsHandler$1._handleFile (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:50004:23)
at NodeFsHandler$1._addToNodeFs (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:50246:21)
at async file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:51238:21
at async Promise.all (index 0)
Emitted 'error' event on FSWatcher instance at:
at FSWatcher._handleError (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:51434:10)
at NodeFsHandler$1._addToNodeFs (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:50254:18)
at async file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:51238:21
at async Promise.all (index 0) {
errno: -28,
syscall: 'watch',
code: 'ENOSPC',
path: '/app/src/Boot/vue.boot.ts',
filename: '/app/src/Boot/vue.boot.ts'
}
Node.js v18.15.0
"""
希望添加对Google翻译和deepl翻译的支持
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.