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

Enable gradio to work on kaggle #3101

Merged
merged 4 commits into from
Feb 1, 2023
Merged

Enable gradio to work on kaggle #3101

merged 4 commits into from
Feb 1, 2023

Conversation

freddyaboulton
Copy link
Collaborator

Description

Enable gradio to run on kaggle notebooks via share link

Test with this notebook: https://www.kaggle.com/code/freddyboultonhf/kaggle-gradio-share

Basically install this gradio build: https://gradio-builds.s3.amazonaws.com/kaggle-launch/attempt-1/gradio-3.17.0-py3-none-any.whl

image

Checklist:

  • I have performed a self-review of my own code
  • I have added a short summary of my change to the CHANGELOG.md
  • My code follows the style guidelines of this project
  • I have commented my code in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

A note about the CHANGELOG

Hello 👋 and thank you for contributing to Gradio!

All pull requests must update the change log located in CHANGELOG.md, unless the pull request is labeled with the "no-changelog-update" label.

Please add a brief summary of the change to the Upcoming Release > Full Changelog section of the CHANGELOG.md file and include
a link to the PR (formatted in markdown) and a link to your github profile (if you like). For example, "* Added a cool new feature by [@myusername](link-to-your-github-profile) in [PR 11111](https://github.com/gradio-app/gradio/pull/11111)".

If you would like to elaborate on your change further, feel free to include a longer explanation in the other sections.
If you would like an image/gif/video showcasing your feature, it may be best to edit the CHANGELOG file using the
GitHub web UI since that lets you upload files directly via drag-and-drop.

@freddyaboulton freddyaboulton changed the title Enable share kaggle Enable gradio to work on kaggle Jan 31, 2023
@gradio-pr-bot
Copy link
Collaborator

All the demos for this PR have been deployed at https://huggingface.co/spaces/gradio-pr-deploys/pr-3101-all-demos

@freddyaboulton freddyaboulton marked this pull request as ready for review January 31, 2023 17:19
@dawoodkhan82
Copy link
Collaborator

having trouble installing that gradio build in a kaggle notebook Could not install packages due to an OSError:

@freddyaboulton
Copy link
Collaborator Author

freddyaboulton commented Jan 31, 2023

@dawoodkhan82 did you enable internet access for your kaggle notebook? I was having troubles at first too. You have to authenticate your kaggle account with a phone number and then you will see this "Internet" toggle button in the settings tab on the right hand side of the notebook

image

@dawoodkhan82
Copy link
Collaborator

@dawoodkhan82 did you enable internet access for your kaggle notebook? I was having troubles at first too. You have to authenticate your kaggle account with a phone number and then you will see this "Internet" toggle button in the settings tab on the right hand side of the notebook

image

Yes it works. Didn't realize I signed in using my hf email instead of my kaggle verified email.

@freddyaboulton
Copy link
Collaborator Author

Thank you for the review @dawoodkhan82 !

@freddyaboulton freddyaboulton merged commit 42ad0cb into main Feb 1, 2023
@freddyaboulton freddyaboulton deleted the enable-share-kaggle branch February 1, 2023 16:53
tomchang25 pushed a commit to tomchang25/gradio that referenced this pull request Feb 2, 2023
* Fix bug

* CHANGELOG

demo

fix-tabs (gradio-app#3055)

* fix-tabs

* Reformat changelog

Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>

video-bug-demo

Another bug

Fix video and file events bugs

demo.ipynb

fix space embeds using `src` attribute (gradio-app#3065)

* change ports in dev mode

* changelog

* correctly detect space embeds

* changelog

* formatting

fix css scoping (gradio-app#3059)

Fix auth on spaces (gradio-app#3049)

* Add route alias

* on button click

* Fix config

* Do not redirect

* Use login to check if other route necessary

* Add message about HF spaces

* CHANGELOG

* Add gif to changelog

Fix Sketch clearing bug (gradio-app#3047)

* bug fix

* changelog

* undo fix

Release version 3.17.0 (gradio-app#3074)

* version 3.17.0

* changelog

New Version Docs (gradio-app#3087)

Chatbot loader (gradio-app#3079)

* changes

* chagnes

* changes

* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

Changelog and format front

changelog fix

Change demo video and image

Fix image rotation on iOS (gradio-app#3091)

* rotate image based on exif tag

* rotate on backend

* CHANGELOG

* Only rotate if needed

* Add image comparison to changelog

---------

Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>

Set minimum markdown-it-py version to 2.0.0 (gradio-app#3102)

* Bump requirements

* CHANGELOG

only mount fonts in prod mode (gradio-app#3100)

* only mount fonts in prod mode

* cleanup

---------

Co-authored-by: aliabid94 <aabid94@gmail.com>

Fix change event listener (gradio-app#3095)

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>

[Minor] Correct link (gradio-app#3109)

* Correct link

* Update CHANGELOG.md

Enable gradio to work on kaggle (gradio-app#3101)

* enable share kaggle

* Add test

* CHANGELOG

* Add image to changelog

Fix example gallery mode (gradio-app#3090)

* Fix example gallery mode

* CHANGELOG

fix changelog

fix changelog
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