gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
33.42k stars 2.53k forks source link

[Custom Components]`gradio cc publish` run failed when the project name contains hyphens #7306

Closed Col0ring closed 8 months ago

Col0ring commented 8 months ago

Describe the bug

gradio 4.16.0 is not working, but 4.15.0 works.

maybe it's because of the following code incli/commands/compoents/publish.py

image

Have you searched existing issues? 🔎

Reproduction

create a custom component project named gradio-foo, then run gradio cc build and gradio cc publish.

Screenshot

No response

Logs

No response

System Info

gradio 4.16.0

Severity

I can work around it

freddyaboulton commented 8 months ago

Thank you @Col0ring ! This has been fixed by #7229 and will be released soon!