Coder Social home page Coder Social logo

dandjourney's Introduction

Just a hobby

🔭 Do something worthwhile

🔭 Do something interesting

🔭 Do something for beautiful life

dandjourney's People

Contributors

yuexdang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dandjourney's Issues

应用程序未响应

提示应用程序未响应,已经更新代码重新部署仍然不行,然后觉得是不是VIP TOKEN这些需要重新设置,但是发现现在网页端抓不到authorization: VIP_TOKEN(String)这个了,请问是哪个模块出了问题?

Add front_end

yue老师,我申请添加一丢丢前端代码(bushi

关于 blend 和 describe 两个指令以及后面的指令拓展

目前这两个在request传入的参数很特殊,因为带有附件,而且这个附件是关于CDN描述的。在ctx中被解码了,导致我拿不到discord POST发送的数据,现在有两个折中的方法

  1. 把上传的图片再去使用 discord.googleapi 转存一遍,拿到所需要的数据,从而完善request请求,这个不稳定,十次有两次会传回来一个无法访问的数据

  2. 寻找替代方法

  • blend 在Midjourney 的文档中描述了,说是为了优化页面体验(原midjourney没有提供 插入图片的选项),支持这么几张图进行混合,它的替代方法无疑是使用 imagine 进行生成,我测试的时候感觉两个差别不大
  • describe 这个比较麻烦,因为它的的确确是需要我传入一个图片参数的,替代方法就是载入一个I2T(image to text)的数据库做图片描述,但是很耗时间,我觉得体验挺差的

大家如果有什么方法,比如能够通过 discord.py 拿到web发送的最原始的POST请求,都可以在下面进行交流(WebHook这个方法除外)

部署方案

求vercel快速部署,railway要钱 /太难了

更新计划与时间

最近在做毕设,15号 之前应该都没时间再去更新相关代码了
Sorry about that

下次计划的更新内容:

  1. blend 、describe两个方法以及附属的几个按钮(等搞明白discord.storage.googleapi的用法就能更新)
  2. flask的支持(上面的搞明白才能支持flask使用本地图片上传的方式去发送请求)
  3. proxy支持(还是想要等一等 i.py 的更新)

更新后会及时在这里进行状态更新

试着用docker部署后报错

Error in ResponseCheck: Msg:{"message": "Unknown Integration", "code": 10005},Code:400
Error! Msg:{"message": "Unknown Integration", "code": 10005},Code:400

试着将项目下载下来后将配置写入到config.py中,建立dockerfile后拉起,/dhelp /dabout能输出,但是其他指令会报错,求大佬解惑!
端口用的8080映射到8900,因为原本的8080被占用了;dockerfile放在下面,感觉如果这个调试好了以后可以直接用docker方便一点:

FROM python:3.9-slim-buster

WORKDIR /ddj

COPY requirements.txt . #复制 requirements.txt 文件到容器中

RUN pip install --no-cache-dir -r requirements.txt # 安装依赖包

COPY . . # 将所有文件复制到容器中

CMD ["python", "main.py"] # 运行 main.py

API调用

您好,这个服务不通过discord,可以直接执行命令行,或者调用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.