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

Support the display of text + picture mixed mode for WebModule #417

Merged
merged 4 commits into from
Jan 23, 2025

Conversation

wangjian052163
Copy link
Contributor

No description provided.

lazyllm/tools/webpages/webmodule.py Outdated Show resolved Hide resolved
lazyllm/tools/webpages/webmodule.py Outdated Show resolved Hide resolved
lazyllm/tools/webpages/webmodule.py Show resolved Hide resolved
lazyllm/tools/webpages/webmodule.py Outdated Show resolved Hide resolved
super().__init__()
# Set the static directory of gradio so that gradio can access local resources in the directory
self._static_paths = static_paths
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to study why images can be displayed without providing static_paths.
image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个问题是由于浏览器有缓存,目前可以通过以下步骤进行清理:1、在浏览器中打开开发者工具(通常是 F12),进入 网络 (Network) 面板。2、勾选 禁用缓存 (Disable cache) 并刷新页面。3、或者使用 Ctrl + Shift + R (Windows/Linux) 或 Cmd + Shift + R (Mac) 强制刷新。通过上面的操作测试是有效的。

@wzh1994 wzh1994 merged commit ff9c5e2 into LazyAGI:main Jan 23, 2025
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants