Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: midjourney_temp_folder 配置无效 #1100

Open
1 of 2 tasks
ThorinKong opened this issue Apr 13, 2024 · 0 comments
Open
1 of 2 tasks

[Bug]: midjourney_temp_folder 配置无效 #1100

ThorinKong opened this issue Apr 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ThorinKong
Copy link

ThorinKong commented Apr 13, 2024

这个bug是否已存在现有issue了?

  • 我确认没有已有issue,且已阅读常见问题

错误表现

在config.json中设置了midjourney_temp_folder:"./tmp"后,./tmp文件夹不在gradio的allowed_paths中,导致聊天记录中图片均403。
在config.json中设置了midjourney_temp_folder:"./other_folder"后,midjourney生成的图片仍然下载至./tmp文件夹中。
相关代码:
https://github.com/GaiZhenbiao/ChuanhuChatGPT/blob/fccd3de495e1b2184d49ca4c1c353dc10fc2eb3e/ChuanhuChatbot.py#L814
https://github.com/GaiZhenbiao/ChuanhuChatGPT/blob/fccd3de495e1b2184d49ca4c1c353dc10fc2eb3e/modules/models/midjourney.py#L58

复现操作

1.正常完成部署并配置好midjourney相关配置和环境
2.选取midjourney模型
3.在对话框中填写/mj 任意描述话语 并发送
4.程序返回的图片均不能显示,控制台报错403

错误日志

No response

运行环境

  • OS:
  • Browser:
  • Gradio version:
  • Python version:

帮助解决

  • 我愿意协助解决!

补充说明

No response

@ThorinKong ThorinKong added the bug Something isn't working label Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant