-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fix blocks_kitchen_sink and streaming_stt demos #4699
Conversation
🎉 The demo notebooks match the run.py files! 🎉 |
website/homepage/upload_demos.py
Outdated
--- | ||
""" | ||
readme.open("w").write(textwrap.dedent(readme_content)) | ||
--- |
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.
Moving the text here otherwise the indented lines will mess up the README in the deployed space. textwrap.dedent is not working as expected so had to resort to this.
All the demos for this PR have been deployed at https://huggingface.co/spaces/gradio-pr-deploys/pr-4699-all-demos |
demo/generate_notebooks.py
Outdated
@@ -26,7 +26,7 @@ def git_tracked(demo, file): | |||
""" | |||
|
|||
files = os.listdir(os.path.join(GRADIO_DEMO_DIR, demo)) | |||
skip = ["run.py", "run.ipynb", "setup.sh", ".gitignore", "requirements.txt", "DESCRIPTION.md", "screenshot.png", "screenshot.gif"] | |||
skip = ["run.py", "run.ipynb", "setup.sh", ".gitignore", "requirements.txt", "DESCRIPTION.md", "screenshot.png", "screenshot.gif", "README.json"] |
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.
Should not be present in the colab
6ff2f6b
to
2c7857f
Compare
Could we just have a That being said, specifically for this demo |
Might be easiest to just delete then! |
Yeah sounds good, we can revisit if there are more important demos that require specific readmes |
LGTM thanks @freddyaboulton |
Thank you @abidlabs 😄 |
* Add code * Add json file * Remove streaming_stt demo * Undo generate_notebooks * Add blocks_kitchen_sink
* playwright tests for chatbot * more tests * changelog * Update CHANGELOG.md * fix upload file delay (#4661) * fix * changes * changes --------- Co-authored-by: Abubakar Abid <[email protected]> * Forward `tqdm` constructor arguments to `Progress` component (#4475) * Forward tqdm constructor arguments to Progress component Signed-off-by: Ilya Trushkin <[email protected]> * lint * reorder args * added tests --------- Signed-off-by: Ilya Trushkin <[email protected]> Co-authored-by: Abubakar Abid <[email protected]> * Remove cleared_value (#4685) * Remove cleared_value * CHANGELOG * Add requirements.txt to dialogpt demo (#4686) * Add requirements.txt * Update demo notebook * Add torch * remove streaming demo + more tests * Fix blocks_kitchen_sink and streaming_stt demos (#4699) * Add code * Add json file * Remove streaming_stt demo * Undo generate_notebooks * Add blocks_kitchen_sink * fix tests * Update js/app/test/chatbot_multimodal.spec.ts Co-authored-by: pngwn <[email protected]> * Update js/app/test/chatbot_multimodal.spec.ts Co-authored-by: pngwn <[email protected]> * Update js/app/test/chatbot_multimodal.spec.ts Co-authored-by: pngwn <[email protected]> * Update js/app/test/chatbot_multimodal.spec.ts Co-authored-by: pngwn <[email protected]> * Update js/app/test/chatbot_multimodal.spec.ts Co-authored-by: pngwn <[email protected]> * Update js/app/test/chatbot_multimodal.spec.ts Co-authored-by: pngwn <[email protected]> * Update js/app/test/chatbot_multimodal.spec.ts Co-authored-by: pngwn <[email protected]> * Update js/app/test/chatbot_multimodal.spec.ts Co-authored-by: pngwn <[email protected]> * Update js/app/test/chatbot_multimodal.spec.ts Co-authored-by: pngwn <[email protected]> * update notebook * remove debug * remove debug --------- Signed-off-by: Ilya Trushkin <[email protected]> Co-authored-by: aliabid94 <[email protected]> Co-authored-by: Abubakar Abid <[email protected]> Co-authored-by: Ilya Trushkin <[email protected]> Co-authored-by: Freddy Boulton <[email protected]> Co-authored-by: pngwn <[email protected]>
Description
The streaming_stt demo is broken because spaces default python version is 3.10 now but
deepspeech==0.9.3
is only available up to python 3.9. EDIT: We're just going to delete the demo since deepspeech is not maintained.The fix I'm proposing is that we have an optionalREADME.json
in the demo dir with any values the deployed space should have in the readme. In the case of streaming_stt, this would be{"python_version": "'3.9'"}
Deployed the following demos with this script to test:https://huggingface.co/spaces/freddyaboulton/streaming_stthttps://huggingface.co/spaces/freddyaboulton/blocks_inputshttps://huggingface.co/spaces/freddyaboulton/calculatorblocks_kitchen_sink is not expected to work outside of
all_demos
so I deleted the space and making changes so that it does not get deployed again.🎯 PRs Should Target Issues
Before your create a PR, please check to see if there is an existing issue for this change. If not, please create an issue before you create this PR, unless the fix is very small.
Not adhering to this guideline will result in the PR being closed.
Tests & Changelog
PRs will only be merged if tests pass on CI. To run the tests locally, please set up your Gradio environment locally and run the tests:
bash scripts/run_all_tests.sh
You may need to run the linters:
bash scripts/format_backend.sh
andbash scripts/format_frontend.sh
Unless the pull request is labeled with the "no-changelog-update" label by a maintainer of the repo, all pull requests must update the changelog located in
CHANGELOG.md
:Please add a brief summary of the change to the Upcoming Release section of the
CHANGELOG.md
file and includea 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)
".