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

warnings.warn(f"Unknown style parameter: {key}") #19

Open
zz10247 opened this issue Apr 11, 2023 · 1 comment
Open

warnings.warn(f"Unknown style parameter: {key}") #19

zz10247 opened this issue Apr 11, 2023 · 1 comment

Comments

@zz10247
Copy link

zz10247 commented Apr 11, 2023

/root/autodl-tmp/CreativeChatGLM/tutorial-env1/lib/python3.10/site-packages/gradio/components.py:148: UserWarning: Unknown style parameter: height
warnings.warn(f"Unknown style parameter: {key}")

运行以后出现这个问题,可以进入界面,一输入就报错

@ypwhs
Copy link
Owner

ypwhs commented Apr 11, 2023

我的 gradio 的版本是 3.25.0,可以正常运行:

--------------------Collect environment info--------------------
sys.platform: win32
Python: 3.9.7 (default, Sep 16 2021, 16:59:28) [MSC v.1916 64 bit (AMD64)]
Python executable: C:\ProgramData\Miniconda3\python.exe
PyTorch: 1.13.1+cu117
Gradio: 3.25.0
Transformers: 4.28.0.dev0
GPU 0: NVIDIA GeForce RTX 4090
------------------------------Done------------------------------

此外,之前发布的离线包版本是 3.22.1,也是可以运行的:

你可以检查自己的 gradio 版本,我也更新了一下 requirements.txt

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

No branches or pull requests

2 participants