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
30.56k stars 2.27k forks source link

Remove duplicated code in `routes.py` #8565

Closed sadra-barikbin closed 6 days ago

sadra-barikbin commented 1 week ago

Description

Hi there!

To do a tiny refactor in routes.py.

gradio-pr-bot commented 1 week ago

🪼 branch checks and previews

• Name Status URL
Spaces ready! Spaces preview
Website ready! Website preview
:unicorn: Changes detecting...

Install Gradio from this PR

pip install https://gradio-builds.s3.amazonaws.com/47a8073d37958e29955a95db1059984fc908b13f/gradio-4.36.1-py3-none-any.whl

Install Gradio Python Client from this PR

pip install "gradio-client @ git+https://github.com/gradio-app/gradio@47a8073d37958e29955a95db1059984fc908b13f#subdirectory=client/python"

Install Gradio JS Client from this PR

npm install https://gradio-builds.s3.amazonaws.com/47a8073d37958e29955a95db1059984fc908b13f/gradio-client-1.1.1.tgz
abidlabs commented 1 week ago

Thank you @sadra-barikbin for the refactor!

gradio-pr-bot commented 1 week ago

🦄 change detected

This Pull Request includes changes to the following packages.

Package Version
gradio minor

With the following changelog entry.

Remove duplicated code in routes.py

Maintainers or the PR author can modify the PR title to modify this entry.

#### Something isn't right? - Maintainers can change the version label to modify the version bump. - If the bot has failed to detect any changes, or if this pull request needs to update multiple packages to different versions or requires a more comprehensive changelog entry, maintainers can [update the changelog file directly](https://github.com/sadra-barikbin/gradio/edit/patch-2/.changeset/slick-dancers-lie.md).