-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add client wheel url to main spaces #7612
Conversation
🪼 branch checks and previews
Install Gradio from this PR pip install https://gradio-builds.s3.amazonaws.com/1302e41bf442c9ddfd20412349cf972931d17806/gradio-4.19.2-py3-none-any.whl Install Gradio Python Client from this PR pip install "gradio-client @ git+https://github.com/gradio-app/gradio@1302e41bf442c9ddfd20412349cf972931d17806#subdirectory=client/python" |
🦄 no changes detectedThis Pull Request does not include changes to any packages.__No changes detected. __
|
if args.AUTH_TOKEN is not None: | ||
hello_world_version = str(huggingface_hub.space_info("gradio/hello_world").cardData["sdk_version"]) | ||
for demo in demos: | ||
if hello_world_version != args.GRADIO_VERSION: | ||
upload_demo_to_space(demo_name=demo, space_id="gradio/" + demo, hf_token=args.AUTH_TOKEN, gradio_version=args.GRADIO_VERSION) | ||
upload_demo_to_space(demo_name=demo, space_id="gradio/" + demo + "_main", hf_token=args.AUTH_TOKEN, gradio_version=args.GRADIO_VERSION, gradio_wheel_url=gradio_wheel_url) | ||
upload_demo_to_space(demo_name=demo, space_id="gradio/" + demo + "_main", hf_token=args.AUTH_TOKEN, gradio_version=args.GRADIO_VERSION, gradio_wheel_url=gradio_wheel_url, gradio_client_url=args.CLIENT_URL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We modify args.WHEEL_URL by adding "gradio-{args.GRADIO_VERSION}-py3-none-any.whl" to it. Do we need to do the same thing for the gradio_client
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, the gradio_client is just installed from github, so there's no actual wheel file. it's just something like
gradio-client @ git+https://github.com/gradio-app/gradio@c0d25fc1df60987793471b4745ab453bea92dcfe#subdirectory=client/python
that's also what we do for the pr demos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok great! Thanks for clarifying
Just one question above^ @aliabd but otherwise lgtm |
Adds the missing client wheel url to the requirements for main website spaces.