Abubakar Abid
62ec2075cc
modify preprocess to use pydantic models ( #6181 )
...
* modify preprocess to use pydantic models
* changes
* add changeset
* fix
* fix
* fix typing
* save
* revert queuing changes
* fix
* fix
* notebook
* fix
* changes
* add changeset
* fix functional tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-10-31 06:48:10 -07:00
Abubakar Abid
86edc01995
Remove gr.mix ( #6184 )
...
* remove mix
* add changeset
* fix script
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-10-31 04:28:39 -07:00
aliabid94
79c8156ebb
Queue concurrency count ( #6172 )
...
* changes
* add changeset
* changes
* changes
* changes
* Update client/python/test/conftest.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* changes
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-10-31 02:41:19 -07:00
Abubakar Abid
59f5a4e30e
Part I: Remove serializes ( #6177 )
...
* remove serializse
* lint
* add changeset
* lint
* fix test
* fix tests
* fix final test
* fix tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-10-31 02:18:41 -07:00
pngwn
287fe67828
Version 4 development branch ( #5498 )
...
* squash commit
* BugFix: Make FileExplorer Component Templateable (#5933 )
* Make FileExplorer templateable
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix notebooks (#5935 )
* V4: Update Component pyi file (#5937 )
* Add code
* add changeset
* delete
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4: Use beta release versions for '@gradio' packages (#5938 )
* Fix versions
* add changeset
* fix
* add changeset
* fix
* add changeset
* Fix
* fix preview
* add changeset
* final fix
* add changeset
* fix
* add changeset
* fix
* add changeset
* revert change
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* maybe fix (#5946 )
* Merge main again (#5948 )
* maybe fix
* fix
* Merge main again (#5949 )
* maybe fix
* fix
* weird weird weird
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Merge main again (#5950 )
* maybe fix
* fix
* weird weird weird
* fix
* log
* log
* fix changesets
* rererefactor frontend files (#5960 )
* do all the things
* add changeset
* remove codemod
* fix
* change casing
* condense upload button
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Strip vite import warning (#5962 )
* Add code
* Remove comment
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5769 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* release wasm (#5963 )
* release wasm
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Wasm release (#5964 )
* release wasm
* release wasm
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5965 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Add json schema unit tests (#5970 )
* Add tests
* add changeset
* Fix tests
* api-info
* Add test
* Add test
* Add email tests
* 3.8 fix 🙄
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4: Simple textbox (#5990 )
* Simple textbox
* add changeset
* Trim down events
* Trim
* Clean up change event
* Add comment
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* File upload optimization (#5961 )
* Use custom multipart parser
* add changeset
* remove print
* Add comment
* Lint
* fix code
* remove print
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Removes deprecated arguments and parameters from v4 (#5968 )
* Removes deprecated arguments and methods for v4
* remove update
* style
* add changeset
* added params
* typign
* fixed all of the typing
* tests
* fix layouts
* layout
* fix config
* fix
* fix form
* fix
* fix blocks tests
* fix some more tests
* lint
* fix test routes
* doc
* notebooks
* remove doc
* format
* format
* remove group
* label docstring
* remov test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4: Simple dropdown (#5996 )
* Add code
* lint
* comment
* add changeset
* revert
* Fix update + docstring cleanup
* Add code
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* pass props to example components and to example outputs (#6014 )
* pass props to example components and to example outputs
* add changeset
* make util less egenric/ more useful
* fix demo
* fix demo
* fix
* fix test
* Fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
* Format js in v4 branch (#6016 )
* Format v4 branch js
* add changeset
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4: Fix component update bug (#6027 )
* Fix tests + bugs
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* lockfile update
* Fixing test
* fix test
* Add a cli command to list available templates (#6018 )
* Add code
* dataset
* Add test
* add changeset
* add changeset
* add changeset
* add changeset
* Exclude FormComponent
* Paginate the output
* No colors but emojis:
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* fix tests (#6046 )
* fix storybook (#6065 )
* fix storybook
* add changeset
* fix
* add changeset
* fix
* fix
* fix components
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* remove dupe component (#6067 )
* remove dupe component
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Simplify File Component (#6044 )
* Add code
* Add code
* Add code
* Reuse code UploadButton
* Use two files for UploadButton
* Address feedback
* Lint
* add changeset
* Update js/uploadbutton/shared/UploadButton.svelte
Co-authored-by: pngwn <hello@pngwn.io>
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
* Clean up backend of `File` and `UploadButton` and change the return type of `preprocess()` from TemporaryFIle to string filepath (#6060 )
* changes
* add changeset
* upload button
* file
* add changeset
* valid types
* fix tests
* address review
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix Dropdown Example component and example processing logic (#6075 )
* fix examples
* helpers
* dropdown
* fix cc build (#6079 )
* fix cc build
* add changeset
* throw error if build fails
* fix entry points
* add changeset
* fix lockfile
* Add test
* update workflow
* try resolve
* lint 🙄
* Use xfail
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
* Fixes markdown rendering in examples (#6071 )
* Fixes markdown rendering in examples
* add changeset
* update delimiters
* format
* format
* docstrings
* test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Proposal: sample demo for custom components should be a `gr.Interface` (#6077 )
* update sample demo to interface
* add changeset
* modify
* Update gradio/cli/commands/components/_create_utils.py
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
* added layout and static
* fix
* refine
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
* WIP: Fix docs (#6082 )
* Website fix
* add changeset
* Fix code
* pin version
* Add code
* skip code
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Pending events behavior (#5826 )
* enter changesets pre-release mode
* release first version (#5500 )
* release packages
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* fix changeset (#5502 )
* add changeset
* release first version
* Custom components (#5507 )
* Add flag
* Copy front-end
* Add backend code
* Remove breakpoint
* Fix init
* Add code
* File reorg
* Fix types
* Upload files
* Fix code
* Custom components
* Add code
* Client changes
* More changes
* Add code
* Add code
* Fix reversion
* build hook integration
* Add code
* rm file
* Add code
* rename cli
* Add code
* Nicer cli
* Add display class
* Add backend devmide
* Add code?
* Add code
* Add paths and fix reload mdoe
* Fix .then
* changes
* fix
* fix
* changes
* changes
* changes
* Fix versions
* Fix wheel build from source
* Add code
* Get no template case working
* Cc fe (#5509 )
* tweaks
* fix 18n
* fix 18n
* tweaks
* Change name
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
* Do not use live display for dev mode
* Clean up front-end server print statements a little bit
* Fix success event
* Cc fe 2 (#5526 )
* tweaks
* fix examples
* fix backend port
* fix things
* fix
* Fix json component flagging
* fix
* fuix
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
* Fix template (#5533 )
* Fix type hint (#5536 )
* fix custom components when installed from wheel (#5552 )
* Fix all demos custom components (#5555 )
* Fix all_demos
* Fix issues
* trigger ci
* add changeset
* Fix merge
* lockfile
* Add code
* add code
* Fix command
* Add code
* Fix highlighted text
* fix interactive highlighted text
* tweak ci
* Disable example caching for load right now
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* image fixes (#5589 )
* Add flag
* Copy front-end
* Add backend code
* Remove breakpoint
* Fix init
* Add code
* File reorg
* Fix types
* Upload files
* Fix code
* Custom components
* Add code
* Client changes
* More changes
* Add code
* Add code
* Fix reversion
* build hook integration
* Add code
* rm file
* Add code
* rename cli
* Add code
* Nicer cli
* Add display class
* Add backend devmide
* Add code?
* Add code
* Add paths and fix reload mdoe
* Fix .then
* changes
* fix
* fix
* changes
* changes
* changes
* Fix versions
* Fix wheel build from source
* Add code
* Get no template case working
* Cc fe (#5509 )
* tweaks
* fix 18n
* fix 18n
* tweaks
* Change name
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
* Do not use live display for dev mode
* Clean up front-end server print statements a little bit
* Fix success event
* Cc fe 2 (#5526 )
* tweaks
* fix examples
* fix backend port
* fix things
* fix
* Fix json component flagging
* fix
* fuix
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
* Fix template (#5533 )
* Fix type hint (#5536 )
* fix custom components when installed from wheel (#5552 )
* Fix all demos custom components (#5555 )
* Fix all_demos
* Fix issues
* trigger ci
* add changeset
* Fix merge
* lockfile
* Add code
* add code
* Fix command
* Add code
* Fix highlighted text
* fix interactive highlighted text
* tweak ci
* fix image uploads
* add changeset
* remove changeset
* add changeset
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Support Literal Typehints (#5591 )
* Fix updateable
* Deploy for failing actions
* fix enum
* Add code
* remove gradio lite from publish ci
* fix
* fix
* chore: update versions (beta) (#5501 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix js deps in cli and add gradio-preview artifacts to build (#5610 )
* Fix js dependencies in cli
* Add preview to build command
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5612 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* backend linting (#5613 )
* backend linting
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Publish js theme (#5615 )
* Publish js theme
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5614 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Add code (#5617 )
* Add docstring to trigger release (#5618 )
* Add docstring
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5619 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* fix build and broken imports (#5620 )
* fix broken import
* fix build scripts
* add changeset
* Update js/statustracker/static/index.svelte
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5621 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix esbuild (#5624 )
* fix build
* fix build
* add changeset
* fix build
* fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5626 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix esbuild (#5629 )
* fix build
* fix build
* add changeset
* fix build
* fix
* asd
* more fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* asd (#5630 )
* chore: update versions (beta) (#5631 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Some minor v4 fixes (#5637 )
* Add code
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Publish all components to npm (#5648 )
* Publish image component
* publish components
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5638 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix front-end imports + other misc fixes (#5649 )
* Fix console error
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Add overwrite flag to create command (#5651 )
* Add overwrite flag to create command
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5650 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Make layout components templateable (#5665 )
* Split out layouts
* Refactor cli
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Patch fixes (#5678 )
* Handle lowercase template name frontend
* Lint
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix build and file route (#5680 )
* Add code
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5662 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* V4 fix typing (#5686 )
* Add examples for series and parallel
* v4 fix typing
* add changeset
* Fix
* Fix
* Fix 3.8
* Fix typing 3.8
* Lint
* Add code
* Add key
* Fix typing
* Add code
* Fix deps
* Fix fastapi
* Fix version
'
:
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Use overrides (#5695 )
* Use overrides
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* ensure client is copied along with components (#5709 )
* ensure client is copied along with components
* add changeset
* add changeset
* chore: update versions (beta) (#5688 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* fix build config (#5710 )
* Fix python unit tests for v4 (#5715 )
* Add code
* Fix tests
* Add ci
* Add code
* fix test_blocks
* More fixes
* Last changes
* add changeset
* Add code
* Continue for the sake of some green ci
* Proper api info
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Better test dir check (#5719 )
* FIx test-dir check
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Use path to npm executable in subprocess (#5736 )
* Use path to npm in subprocess
* Fix dev mode too
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Add Error + test (#5738 )
* Add Error + test
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix component regex (#5739 )
* Add code
* Fix component regex
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix layout templates (#5740 )
* Fix templates
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix template remaining components (#5743 )
* add code
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* --overwrite deletes previous content (#5744 )
* Add code
* Add code
* add changeset
* Add test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Support call method (#5751 )
* Support call method
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix windows ci build (#5752 )
* Try bash
* Use cross-env
* Trigger CI
* Fix comma
* add changeset
* Modify lock file
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix windows paths (#5745 )
* Use posix path
* add changeset
* add changeset
* Try normalize
* to_posix v2
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5717 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Simplify how files are handled in components in 4.0 (#5768 )
* Client and upload route hash files
* Refactor logic
* add changeset
* Add code
* View API fix
* Fix client tests
* Dumb windows fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix deployed demos on v4 branch (#5770 )
* Template fixes
* add changeset
* add changeset
* Fix streaming audio
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Name Endpoints if api_name is None (#5782 )
* Implementation and test
* add changeset
* fix lint
* Fix nits
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* pending events
* add changeset
* Set api=False for cancel events (#5851 )
* Set api=False for cancel events
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4: Set cache dir for some component tests (#5852 )
* Add code
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4: Use async version of shutil in upload route (#5853 )
* Use async shutil copy
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* trigger_mode
* changes
* undo
* undo
* add changeset
* undo
* add changeset
* image undo
* add changeset
* fix merge errors
* remove prints
* change
* fix
* fix error
* change
* quick fix
* trigger_mode param
* type
* value error
---------
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fixes: slider bar are too thin on FireFox (#5984 )
* firefox slider fix
* add changeset
* fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix remaining xfail tests in backend (#6073 )
* Add code'
* Add code
* Add code
* Fix dataset
* add changeset
* Add some comments
* Add recover_kwargs
* Remove from docstring
* Audio-to-audio
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix dev mode model3D (#5955 )
* Fix dev mode
* Lint
* add changeset
* Fix dev mode
* Lint
* remove console.log
* add changeset
* interactive fix
* Fix tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Dawood <dawoodkhan82@gmail.com>
* V4: Single-file implementation of form components (#6026 )
* Checkbox and number
* Number, Checkboxgroup, Radio, and Slider
* Format
* remove range
* Refactor checkbox
* Forgot to add
* Refactor
* Lint
* add changeset
* use rich emoji markup
* Fix ts
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Update logos for v4 (#6089 )
* update v4 logo
* add changeset
* size
* fix on website
* fix on demos
* add changeset
* favicon for demos
* margin on footer logo
* margin bottom to footer logo
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Add a stand-alone install command and tidy-up the fallback template (#6092 )
* Add code
* add changeset
* Add test
* Make install default
* Better error message
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4: Fix constructor_args (#6093 )
* Fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix: Move to cache in init postprocess + Fallback Fixes (#6107 )
* Add code and test
* restore
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* fix build (#6112 )
* fix build
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Update cold-lemons-roll.md
* Revert "Update cold-lemons-roll.md" (#6113 )
This reverts commit 20dbf90811
.
* Try to trigger a major beta release (#6114 )
* pyproject fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Delete bad changelog (#6115 )
* Delete bad changelog
* Revert "Delete bad changelog"
This reverts commit a8ca614eaf
.
* Delete bad
* formatting
* Revert "formatting"
This reverts commit 94f43859e7
.
* Improve Audio Component (#5966 )
* replace <audio> with wavesurfer: add recording, playing and trimming, playback
* add changeset
* merge cleanup
* improving recording styling
* add recording timer
* add trim region duration
* allow trimming recordings
* clean up playing logic
* add pause_recording event
* remove crop min/max
* add waveform options param
* remove trimmingmode and use mode
* streaming + cleanup
* add changeset
* clean up types
* mobile adjustments
* add min/max length + trim accessibility
* update pnpm lock
* amend source to a list and allow source switching
* fix no microphone found logic
* change undo logic to reset trims
* tweaks
* tweak reset logic
* ensure recording is sent to backend
* fix audio duration reactivity
* list tweak
* clean up
* change source -> sources + restore wasm changes
* formatting
* fix tests
* fix test
* add default sources value in fe + fix audio demos
* fix audio file name test
* add better sources typing
* ui test tweaks
* add default value in templates.py
* formatting
* remove unused prop
* add audio story
* add changeset
* revert sources changes
* remove story id
* fix be test
* fix be test
* fix notebooks
* formatting
* fix test
* fix test again
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
* Fix changesets 2 (#6116 )
* fix changesets
* release major
* Fix changesets 2 (#6117 )
* fix changesets
* release major
* asd
* fix version
* chore: update versions (beta) (#5973 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* v4
* Open source FRP server and allow `gradio` to connect to custom share servers (#6091 )
* add param
* add support for custom address
* add changeset
* share guide
* guide
* add params
* add changeset
* fix launch
* add test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Gradio custom component publish (#6098 )
* Add code
* add changeset
* F-string
* Add pwd
* Add source to space
* Add template
* Twine import
* add changeset
* ignore
* restore
* add changeset
* Address feedback
* Update gradio/cli/commands/components/publish.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix static issues with Lite on v4 (#6124 )
* fix missing props
* fix path to types
* add changeset
* fix path to i18n
* fix audio tests
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abid <aabid94@gmail.com>
* Refactor `Blocks.load()` so that it is in the same style as the other listeners (#6126 )
* restore decorator
* remove
* refactor load
* remove restriction
* add changeset
* add pyi
* add test
* add test
* fix tests
* metaclass
* future
* reduce'
* docstring
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Small change to make `api_open=False` by default (#6138 )
* set api_open to False by default
* add changeset
* tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Image v4 (#6094 )
* simplify image interface
* changes
* asd
* asd
* more
* add code (#6095 )
* more
* fix tests
* add changeset
* fix client build
* fix linting
* fix test
* lint
* Fix tests + lint
* asd
* finish
* webcam selection
* fix backend
* address comments
* fix static checks
* fix everything
* add changeset
* Apply suggestions from code review
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fix examples
* fix tests
* fix tests
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix fallback demo app template code (#6129 )
* Add test
* add changeset
* Add JSON note
* Fix test
* Update gradio/cli/commands/components/_create_utils.py
* Update test/test_gradio_component_cli.py
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fix video path
* Revert "fix video path"
This reverts commit 5916b3dc8a
.
* Fix selectable prop in the backend (#6135 )
* Add to init
* Fix events
* add changeset
* Add code
* add changeset
* Fix typo
* Add code
* Fix highlighted text typo
* remove from docs
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix video (#6140 )
* fix video
* add changeset
* fixes
* fixes
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* fix some tests on mac
* fix circular dependency with client + upload (#6143 )
* fix circular dependency
* add changeset
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix image double change bug (#6146 )
* fix test
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* make lite private (#6147 )
* make lite private
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* fix dropdown arrow size (#6148 )
* fix dropdown arrow size
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* swap `mode` on the frontned to `interactive` to match the backend (#6149 )
* JS READMEs and Storybook on Docs (#6142 )
* changes
* changes
* working
* remove storybook path
* add changeset
* pin code
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Don't serve files in working directory by default (#6128 )
* don't serve files in working directory by default
* add changeset
* handle examples
* remove dotfiles
* guide
* guide
* fix tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix issues with website deploy (#6151 )
* fixes
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Swap websockets for SSE (#6069 )
* changes
* changes
* changes
* changes
* changes
* merge
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* add changeset
* changes
* changes
* changes
* add changeset
* changes
* changes
* changes
* add changeset
* changes
* changes
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* add changeset
* Fix client tests sse branch (#6150 )
* Switch spaces
* Fix tests
* Add code
* changes
* changes
---------
Co-authored-by: Ali Abid <aabid94@gmail.com>
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
* Remove duplicate `elem_ids` from components (#6152 )
* remove elem_ids from components
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Moves `gradio_cached_folder` inside the gradio temp direcotry (#6155 )
* cache -> temp
* restore
* add changeset
* add exception for cached examples
* security policy
* join
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Remove `show_edit_button` param in Audio (#6153 )
* remove `show_edit_button` param
* add changeset
* hide overflow
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Remove interpretation for good (#6154 )
* interpretation
* notebooks
* add changeset
* removed from readme
* lint
* fix demo
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Make output components not editable if they are being updated (#6157 )
* make outputs not editable
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* JS Component Documentation (#6136 )
* Simple template
* More changes
* Properly handle change event video
* add changeset
* Add code'
* Fix play/pause bugs
* add changeset
* atoms doc
* Chatbot
* add changeset
* Some more components
* Add code
* add changeset
* Lint
* add changeset
* Simple template
* More changes
* Properly handle change event video
* add changeset
* Add code'
* Fix play/pause bugs
* add changeset
* atoms doc
* Chatbot
* add changeset
* Some more components
* Add code
* add changeset
* Lint
* Merge in latest changes
* Fix typo
* Fix build
* Lockfile
* Fix
* Fix interactive
* correct the title
* add versions to readme
* only document public
* add changeset
* Remove simplevideo and audio
* add changeset
* changes to readmes
* add changeset
* remove tootils and theme
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Improve Video Component (#6118 )
* change source to sources + add length logic
* add changeset
* add min/max logic
* tweak tests
* change sources
* formatting
* fix test_components.py test
* add trimming
* add changeset
* add keyboard events to trimming timeline
* UX improvements
* Add fix
* add loading status
* flip if webcam is only source
* generate notebooks
* remove scroll
* add file extension
* trim (#6156 )
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* add loading indicator to video
* ensure correct file ext is used
* tweak
* change where ffmpeg is loaded
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* chore: update versions (beta) (#6122 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* V4 fixes (#6161 )
* changes
* changes
* Pin 8.9 (#6162 )
* Pending outputs fix (#6160 )
* fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Clean root url (#6159 )
* clean
* cleanup
* formatting
* add changeset
* fe
* add changeset
* selectable
* block
* fix
* fixes
* fix update
* gradio/events
* configs
* remove
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4 fixes (#6167 )
* changes
* changes
* Fixes remaining backend tests (#6165 )
* fix backend tests
* add changeset
* changes
* fix strings
* lint
* lint
* fixes
* delete test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-10-31 04:46:02 +00:00
Freddy Boulton
6a64b2d281
Add test ( #5985 )
2023-10-18 13:18:42 -07:00
Abubakar Abid
fee3d527e8
Adds column_widths
to gr.Dataframe
and hide overflowing text when wrap=False
( #5894 )
...
* changes
* added prop
* add changeset
* table
* null case
* fix tests
* add story
* format
* lint
* add changeset
* Update js/dataframe/shared/Table.svelte
Co-authored-by: aliabid94 <aabid94@gmail.com>
* add support for ints
* added test
* docstring
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabid94 <aabid94@gmail.com>
2023-10-16 16:14:11 -07:00
Abubakar Abid
c4ba832b31
Remove deprecation warning from gr.update
and clean up associated code ( #5890 )
...
* update
* add changeset
* remove
* add changeset
* test
* update
* changes
* revert
* fix tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-10-15 17:58:06 -07:00
Abubakar Abid
a55b809423
Add styling (e.g. font colors and background colors) support to gr.DataFrame
through the pd.Styler
object ( #5877 )
...
* colors
* add changeset
* revert
* revert
* colors
* move box shadow
* done
* lint
* lint
* fixes
* lint
* added focused false
* revert focus
* revert focus
* revert focus
* revert focus
* revert focus
* apply style to td instead
* dataframe
* lint
* test
* Update js/dataframe/shared/Table.svelte
Co-authored-by: aliabid94 <aabid94@gmail.com>
* notebooks
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabid94 <aabid94@gmail.com>
2023-10-12 15:45:55 -07:00
D V
5f1cbc4363
Add support for gr.Request to gr.ChatInterface ( #5819 )
...
* Add support for gr.Request to gr.ChatInterface
* add changeset
* gr.ChatInterface: loose check for gr.Request
* add request test
* update test and chat_interface
* chat interface
* fix test
* formatting
* fixes
* fix examples and add test
* remove .update usage
* revert interface changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-10-10 13:48:20 -07:00
Hari Om Bhardwaj
1d5b15a2d2
Assert refactor in external.py ( #5811 )
...
* Refactored assert statements to if statements
* format-addons
* format
* add changeset
* Update gradio/external.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* refactored video.py
* refactored all the assert statements with response
* add changeset
* add changeset
* Apply suggestions from code review
* Refactored documentation.py and few more files
* avoid circular
* Replaced all assert statements
* lint
* notebooks
* fix
* minor changes
* final changes according to tests
* Lint
* last fix
* fix
* fix utils test
* fix serialization error
* fix serialization error
---------
Co-authored-by: harry-urek <hariombhardwaj038@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-10-06 18:14:14 -07:00
Yuichiro Tachibana (Tsuchiya)
7b63db2716
Convert async methods in the Examples class into normal sync methods ( #5822 )
...
* Convert async methods in the Examples class into normal sync methods
* add changeset
* Fix test/test_chat_interface.py
* Fix test/test_helpers.py
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-10-06 11:05:11 -07:00
Abubakar Abid
a0d3cc45c6
Fix gr.SelectData
so that the target attribute is correctly attached, and the filedata is included in the data attribute with gr.Gallery
( #5798 )
...
* fix select
* add changeset
* add changeset
* restore
* refactor
* add pytest
* typo
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-10-05 12:53:52 -07:00
Srijan Sahay Srivastava
37e70842d5
added try except block in state.py
( #5790 )
...
* added try except block in `state.py`
added try except block in `state.py` which will raise a "ValueError"
* add changeset
* updated `state.py` and added test for deepcopy
updated `state.py` and added test for deepcopy named test_initial_value_deepcopy in `test/test_components.py`
* lint
* test fix
* explain test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-10-05 12:33:15 -07:00
Freddy Boulton
c0fef44541
Revert replica proxy logic and instead implement using the root
variable ( #5776 )
...
* Revert "Fix for deepcopy errors when running the replica-related logic on Spaces (#5722 )"
This reverts commit dba651904c
.
* Revert "Fully resolve generated filepaths when running on Hugging Face Spaces with multiple replicas (#5668 )"
This reverts commit d626c21e91
.
* add changeset
* Trigger local
* add changeset
* add to root
* add changeset
* strip url
* resolve root
* changes
* fix
* format
* logs
* format
* add changeset
* reverse order
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-10-05 11:17:16 -07:00
aliabid94
e4a307ed6c
Add component <-> server direct communication support, as well as a "file explorer" component ( #5672 )
...
* changes
* changes
* add changeset
* add changeset
* Server fns ext (#5760 )
* start changes
* changes
* changes
* fix arrows
* add changeset
* rename demo
* fix some ci
* add changeset
* add changeset
* fix
* remove configs
* fix
* fix
* add changeset
* fixes
* linting
* Update gradio/components/file_explorer.py
* notebook
* typing
* tweaks
* fixed class method problem
* fix test
* file explorer
* gr.load
* format
* tweaks
* fix
* fix
* fix
* fix
* final tweaks + changelog
* changelog
* changelog
* changelog
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-10-05 14:20:01 +01:00
Dawood Khan
e842a561af
Fix new line issue in chatbot ( #5755 )
...
* fix new line
* add changeset
* line breaks param
* add changeset
* fix test
* Update gradio/components/chatbot.py
* Update gradio/components/dataframe.py
* Update gradio/components/markdown.py
* add changeset
* fix static markdown
* lint
* line breaks
* fixes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-10-02 20:44:58 -07:00
Abubakar Abid
2a5b9e03b1
Added support for pandas Styler
object to gr.DataFrame
(initially just sets the display_value
) ( #5569 )
...
* adding precision to df
* add changeset
* docstring
* precision
* add changeset
* fix
* fixes
* add changeset
* add visual test
* lint
* fixes
* lint
* format
* add changeset
* ts changes
* analytics
* dataframe typing
* typing
* demo
* fix
* lint
* interactive dataframe
* dataframe
* fix typing
* add test
* upgrade pandas version
* fix pandas version
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-10-02 14:02:03 -07:00
Abubakar Abid
caf6d9c0e1
Set share=True for all Gradio apps in Colab by default ( #5767 )
...
* Set share=True for all Gradio apps in Colab by default
* add changeset
* fix tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-10-02 12:51:56 -07:00
Hannah
8f0fed857d
Improve chatbot accessibility and UX ( #5699 )
...
* add a11y changes and css tweaks
* add a11y changes and css tweaks
* change like/dislike/copy buttons ux
* cleanup
* add laout param
* tweak
* add changeset
* fill icon on click
* text alignment tweak
* format + test
* fix browser test
* avatar tweaks
* add stories
* tweak
* tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-10-02 19:29:20 +02:00
Abubakar Abid
dba651904c
Fix for deepcopy errors when running the replica-related logic on Spaces ( #5722 )
...
* fix changelogs
* pass
* add changeset
* test
* config
* change
* fixes
* route utils
* add changeset
* add changeset
* add lock
* print
* route url
* replicas
* replicas
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-28 10:59:31 -07:00
Abubakar Abid
d626c21e91
Fully resolve generated filepaths when running on Hugging Face Spaces with multiple replicas ( #5668 )
...
* print
* add changeset
* url
* routes
* routes
* test
* test
* add to / route
* comment
* root_url approach
* replica url
* print
* print
* test
* revert
* fixes
* changes
* replica url fix
* lint
* routes
* routes
* fix
* docstring
* add changeset
* add changeset
* add changeset
* modify in place
* add test
* unit tests
* fix copy
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-27 12:58:31 -07:00
Abubakar Abid
6b8c8afd98
Fix incorrect behavior of gr.load()
with gr.Examples
( #5690 )
...
* testing
* fixes
* chat fix
* lint
* add changeset
* fix
* simplify
* simplify
* spacing
* remove print
* docstring
* dataset
* lint
* add changeset
* fix test
* add test
* added test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-26 12:20:34 -07:00
aliabid94
e1874aff81
Add gr.on
listener method ( #5639 )
...
* changes
* changes
* changes
* changes
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-09-25 15:25:16 -07:00
Yuichiro Tachibana (Tsuchiya)
9f9af327c9
[Refactoring] Convert async functions that don't contain await
statements to normal functions ( #5677 )
...
* [Refactoring] Convert async functions that don't contain `await` statements to normal functions
* add changeset
* add changeset
* fix tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-09-25 13:58:01 -07:00
Abubakar Abid
7c34b434aa
Fix width and height issues that would cut off content in gr.DataFrame
( #5616 )
...
* fix dataframe height
* fix widths
* add changeset
* fixes
* format
* case
* add changeset
* dataframe docstring
* format
* fix ts
* test components
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-25 10:33:19 -07:00
Dawood Khan
faad01f8e1
Add render_markdown
parameter to chatbot ( #5604 )
...
* disable markdown
* add changeset
* pr fixes
* format
* add changeset
* new line
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-09-22 11:53:09 -07:00
aliabid94
21c7225bda
Improve plot rendering ( #5642 )
...
* changes
* add changeset
* changes
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-09-22 15:32:49 +00:00
Charles Bensimon
9ccc4794a7
Use ContextVar instead of threading.local() ( #5625 )
...
* Use ContextVar instead of threading.local()
* Test
* add changeset
* Revert "Use ContextVar instead of threading.local()"
This reverts commit 2a76eb46e3
.
* delete changeset
* Un-revert "Use ContextVar instead of threading.local()"
This reverts commit 1481ce027b
.
* add changeset
* Add Request in LocalContext
* Sync + Async test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-21 13:20:47 -07:00
Freddy Boulton
fb5964fb88
Fix bug in example cache loading event ( #5636 )
...
* Fix event setup in Examples
* Add code
* add changeset
* no same port
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-20 15:03:55 -04:00
Abubakar Abid
3414023379
Allow Gradio apps containing gr.Radio()
, gr.Checkboxgroup()
, or gr.Dropdown()
to be loaded with gr.load()
( #5633 )
...
* fix dataframe height
* fix
* lint
* add changeset
* restore
* add changeset
* added comments for clarity
* fix tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-20 11:54:19 -07:00
aliabid94
da05e59a53
Removing .update and get_config, attempt 2 ( #5240 )
...
* changes
* add changeset
* changes
* changes
* Update many-tips-create.md
* notebooks
* chanegs
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changew
* changes
* changes
* changes
* changes
* chanegs
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* Revert "changes"
This reverts commit 0868c25c56
.
* changes
* changes
* changes
* changes
* changes
* changes
* change
* changes
* chaneges
* changes
* chagnes
* changes
* changes
* changes
* changes
* changes
* fix typing
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2023-09-18 21:17:06 -07:00
Abubakar Abid
acdeff57ec
Allow multiple instances of Gradio with authentication to run on different ports ( #5588 )
...
* Allow gradio auth to work across different ports
* lint
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-18 12:25:47 -07:00
Abubakar Abid
ba64082ed8
Fix preprocess for components when type='index' ( #5563 )
...
* fix preprocess for components when type='index'
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-14 12:54:19 -07:00
Abubakar Abid
301c787821
allow gr.Image() examples to take urls ( #5537 )
...
* allow gr.Image() examples to take urls
* add changeset
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-13 21:30:58 -07:00
Abubakar Abid
81c9ca9a2e
Fix .update()
method in gr.Dropdown()
to handle choices
( #5529 )
...
* Fix .update() method in gr.Dropdown()
* add changeset
* oops docstring
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-13 11:25:37 -07:00
Hannah
d112e2611b
Allow interactive input in gr.HighlightedText
( #5400 )
...
* add preprocess param to highlighted_text.py
* add params
* static tweaks
* add interactive highlight container
* highlight selection logic
* allow editing label value and move shared funcs
* add changeset
* remove py code
* wait for input render
* remove redundant event listeners
* accessibility enhancements and remove label logic
* add keyboard navigation and interaction
* merge adjacent empty elements and split input element
* add interactive support for scores mode
* remove merge adjacent logic and move to frontend
* tweak
* add changeset
* format backend
* tweaks
* backend test tweaks
* set the interactive default to None
* BE tweak
* unit tests and stories
* be formatting
* fix label errors
* tweak
* fix tests
* fix tests
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-09-12 18:47:16 -07:00
Abubakar Abid
05715f5599
Adds a filterable
parameter to gr.Dropdown
that controls whether user can type to filter choices ( #5508 )
...
* dropdown
* changes
* add changeset
* refactor
* cleanup
* dropdown
* more refactoring
* fixes
* simplify, docstring
* restore active_index
* split into two files
* new files
* simplify
* single select dropdown working
* single select dropdown almost working
* dropdown
* multiselect
* multiselect wip
* multiselect
* multiselect
* multiselect
* interactive working
* dropdown
* lint
* add changeset
* type
* typing
* fix multiselect static
* dropdown
* stories and tests
* split stories
* lint
* add changeset
* revert
* add changeset
* fix x
* dropdown
* lint, test
* backend fixes
* lint
* fix tests
* lint
* fix final test
* clean
* review fixes
* dropdown
* lint
* lint
* changes
* typing
* fixes
* active index null bug
* adding filterable parameter to dropdown
* dropdown
* lint
* add changeset
* add changeset
* svelte
* fix test
* add changeset
* added warning
* lint
* fix tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-12 18:36:29 -07:00
Dawood Khan
8909e42a7c
Adds autoscroll
param to gr.Textbox()
( #5488 )
...
* autoscroll param
* add changeset
* fix
* test fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-12 18:25:03 -04:00
Abubakar Abid
afcf3c48e8
Do not expose existence of files outside of working directory ( #5510 )
...
* reorder for security
* add changeset
* routes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-12 12:29:09 -07:00
Abubakar Abid
82ec4d2622
Allow interface with components to be run inside blocks ( #5496 )
...
* allow interface to run inside blocks
* fix test
* change
* add changeset
* format
* fixes
* fixes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-12 12:25:46 -07:00
Abubakar Abid
ddc02268f7
Allows the gr.Dropdown
to have separate names and values, as well as enables allow_custom_value
for multiselect dropdown ( #5384 )
...
* dropdown
* changes
* add changeset
* refactor
* cleanup
* dropdown
* more refactoring
* fixes
* simplify, docstring
* restore active_index
* split into two files
* new files
* simplify
* single select dropdown working
* single select dropdown almost working
* dropdown
* multiselect
* multiselect wip
* multiselect
* multiselect
* multiselect
* interactive working
* dropdown
* lint
* add changeset
* type
* typing
* fix multiselect static
* dropdown
* stories and tests
* split stories
* lint
* add changeset
* revert
* add changeset
* fix x
* dropdown
* lint, test
* backend fixes
* lint
* fix tests
* lint
* fix final test
* clean
* review fixes
* dropdown
* lint
* lint
* changes
* typing
* fixes
* active index null bug
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-12 09:58:18 -07:00
Chaitanya Giri
aad7acd712
Add sort to bar plot ( #5427 )
...
* Add sort to bar plot
* remove reverse parameter from barplot class
* add changeset
* Rename sort_by to sort in BarPlot class
* Add test
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-07 15:54:32 -04:00
Freddy Boulton
7ab4b70f68
api_open does not take precedence over show_api ( #5436 )
...
* Fix bug
* Fix
* add changeset
* Add code
* Fix docstring
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-07 13:22:55 -04:00
Yuichiro Tachibana (Tsuchiya)
c77f05abb6
Fix the Queue to call API endpoints without internal HTTP routing ( #5165 )
...
* [WIP] Replace the HTTP call to /api/predict with a function call
* Extract shared logics into route_utils.*
* Fix Queue.call_prediction() to return the output dict and raise exceptions
* Remove run_predict()
* Create route_utils.call_process_api()
* Check Blocks.api_open and return 404 if it's false
* Refactoring on queueing.py
* Refactoring on queueing.py, renaming data to body
* Fix the if block of availability check in the predict() endpoint handler
* Put the code of clearning pending streams into route_utils.call_process_api
* Format gradio/routes.py
* Fix queueing.Queue.reset_iterators() not to call an HTTP endpoint
* Remove ququeing.Queue.queue_client, which is no longer used
* Fix with static type analysis
* Remove gradio.utils.AsyncRequest, which is no longer used
* add changeset
* Remove PEP604-syntax which is not supported by Python<3.10
* Fix gradio/queueing.py
* Remove AsyncRequest test cases
* Fix queueing and routes test cases
* Fix
* Replace Queue.server_url with .server_app and remove methods related to the old .server_url
* Revert `gradio_api_url` because building the document fails
* Add __future__.annotations to route_utils.py
* Update gradio/queueing.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Format
* Mark the `gradio_api_url` parameter of `mount_gradio_app()` deprecated
* Fix Queue.call_prediction to convert the output to a plain object
* Add a `except asyncio.CancelledError` handler to avoid printing stack trace for task cancellation
* Move the call of `route_utils.restore_session_state` into `route_utils.call_process_api`
* exception class
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-09-05 15:33:15 -07:00
Freddy Boulton
83cde9b9e3
Fix dataset demo ( #5390 )
...
* Fix as_example for ChecboxGroup
* add changeset
* add changeset
* Add code
* delete changeset
* Add ntoebook
* Exception
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-05 11:47:10 -04:00
Dawood Khan
abf1c57d7d
Like/Dislike Button for Chatbot ( #5391 )
2023-09-01 19:20:55 -04:00
Abubakar Abid
79d8f9d891
Adds height
and zoom_speed
parameters to Model3D
component, as well as a button to reset the camera position ( #5373 )
...
* add params in backend
* tweaks
* add changeset
* updates
* tweaks
* lint
* cleanup
* fix tests
* add reset button
* add changeset
* lint
* add changeset
* add changeset
* lint
* add changeset
* faster
* add changeset
* undo website
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-31 12:24:22 -07:00
Mehdi Bahri
4ccb9a86f1
Makes it possible to set the initial camera position for the Model3D
component as a tuple of (alpha, beta, radius) ( #5266 )
...
* Allow setting alpha
* Allow setting beta and radius
* Formatting
* Change to tuple of (alpha, beta, radius)
* Renamed parameter
* Formatting
* add changeset
* add to update
* Change to tuple of (alpha, beta, radius)
* Renamed parameter
* Formatting
* Docstring for Model3D
* rename parameter
* add changeset
* type
* 180
* dupe
* 180
* linting
* lint
* lint
* add test
* Formatting in docstring + added what unit the angles are
* Added babylon types to model3d's package.json
* pnpm lockfile
* Type narrowing of helperCamera + assumed not null
* refactor
* docstring
* lint
* type checking
* fix test
---------
Co-authored-by: Mehdi <mehdi.bahri@epicgames.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-29 17:02:05 -07:00
Freddy Boulton
119c834331
Faster reload mode ( #5267 )
...
* This works
* Add code
* Final touches
* Lint
* Fix bug in other dirs
* add changeset
* Reload
* lint + test
* Load from frontend
* add changeset
* Use key
* tweak frontend config generation
* tweak
* WIP ipython
* Fix robust
* fix
* Fix for jupyter notebook
* Add checks
* Lint frontend
* Undo demo changes
* add changeset
* Use is_in_or_equal
* python 3.11 changes and no if __name__
* Forward sys.argv + guide
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-29 17:29:15 -04:00
Dawood Khan
05892302fb
Adds kwarg to disable html sanitization in gr.Chatbot()
( #5304 )
...
* disable sanitize
* add changeset
* Fix devcontainer postCreateCommand (#5289 )
* add chmod commands to grant execute permissions to each script before running them
* increase the memory limit
* Increase memory requirement to 8
* Setting a minimum specification for codespace machines
* Rotate axes labels on LinePlot, BarPlot, and ScatterPlot (#5305 )
* add chmod commands to grant execute permissions to each script before running them
* increase the memory limit
* Increase memory requirement to 8
* Setting a minimum specification for codespace machines
* Added label_angle parameter to LinePlot
* add the x_label_angle and y_label_angle to the postprocess
* Add x_label_angle and y_label_angle to ScatterPlot
* Add x_label_angle and y_label_angle to BarPlot
* Remove postCreateCommand update from this PR, it is in its own PR
* Remove custumization on the devcontainer, it is on another PR
* Remove extra line on the devcontainer, it is on another PR
* add changeset
* update the parameter definition in the docstring
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* `make_waveform()` twitter video resolution fix (#5296 )
* waveform res fix
* add changeset
* add changeset
* Improve audio streaming (#5238 )
* changes
* changes
* add changeset
* add changeset
* chages
* Update silver-clowns-brush.md
* changes
* chagers
* changes
* Update silver-clowns-brush.md
* change
* change
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
* Tweaks to `icon` parameter in `gr.Button()` (#5285 )
* button
* add changeset
* fix
* add changeset
* add changeset
* types
* type fix
* formatting
* fix based on review
* fix unit tests
* stories
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* test
* test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabid94 <aabid94@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Allow caching examples with streamed output (#5295 )
* changes
* changes
* add changeset
* add changeset
* chages
* Update silver-clowns-brush.md
* changes
* chagers
* changes
* Update silver-clowns-brush.md
* change
* change
* change
* changes
* chages
* changes
* add changeset
* changes
* changes
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
* Create event listener table for components on docs (#5298 )
* changes
* changes
* remove languages from code docs
* fix img path in guide
* rework event listeners
* add changeset
* remove console log
* name it event arguments
* Update js/_website/src/lib/components/EventListeners.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update js/_website/src/lib/components/EventListeners.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* requested changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* merge
* fix (#5308 )
* only start listening for events after the components are mounted (#5312 )
* only start listening for events after the components are mounted
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Restores missing part of bottom border on file component (#5313 )
* removes missing part of bottom border on file component
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (#5177 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Test Blocks.svelte footer copy (#5307 )
* test test
* fix test
* tweak
* tweak test name
* ensure login form has correct styles (#5324 )
* fix changelog generation (#5328 )
* Add ignore scripts to pnpm i in pypi action (#5316 )
* add json generation to prepare
* add changeset
* remove pnpm prepare
* add changeset
* bring back prepare, add ignore scripts
* delete changeset
* add to right commadn
* add frozen lockfile to gh_action_pypi
* remove unused gh_action_pypi script
* remove unused scripts
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* ensure dropdown stays open when identical data is passed in (#5323 )
* ensure dropwdown stays open when new data is passed in
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix ci again again again (#5329 )
* fix changelog generation
* fix changelog generation
* fix
* chore: update versions (#5326 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix ci again again again (#5330 )
* fix changelog generation
* fix changelog generation
* fix
* fix script
* Fix ci again again again (#5331 )
* fix changelog generation
* fix changelog generation
* fix
* fix script
* fix script
* Fix ci again again again (#5332 )
* fix changelog generation
* fix changelog generation
* fix
* fix script
* fix script
* fix vars
* Fix ci again again again (#5333 )
* fix changelog generation
* fix changelog generation
* fix
* fix script
* fix script
* fix vars
* fix vars
* Fix Checkbox select dispatch (#5340 )
* Fix bug
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Minor bug fix sweep (#5284 )
* changes
* changes
* add changeset
* changes
* changes
* fix box changes on website
* add changeset
* changes
* changes
* Revert "changes"
This reverts commit 189b4e844a
.
* chanegs
* changes
* changes
* changes
* changes
* add changeset
* Update fancy-bats-deny.md
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix: wrap avatar-image in a div to clip its shape (#5319 )
* fix: wrap avatar-image in a div to clip its shape
and add data url support
* add changeset
* revert get file from data url
* add changeset
---------
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (#5341 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* add kwarg to markdown
* add changeset
* config
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Faiga Alawad <faiga.alawd91@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabid94 <aabid94@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: Keldos <Keldos.ljw@gmail.com>
2023-08-29 00:26:29 -04:00
Dawood Khan
c5bf91385a
Add chat bubble width param ( #5334 )
...
* chat width
* add changeset
* fixes
* fix
* test
* reformat
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-28 20:48:52 -04:00
pngwn
fe057300f0
delegate gradio events via a custom event dispatcher ( #5279 )
...
* delegate gradio events via a custom event dispatcher
* improve md perf + share code
* fix df markdown
* prevent model3d from rerending too frequently
* tweaks
* fix more event bugs with video
* add changeset
* optimise handle mount
* does this do anything
* fix
* remove old dispatches
* fix dropdown position
* oops
* fixes
* fix tests
* fix types
* format
* fix markdown code
* add changeset
* fix typecheck
* fix typecheck
* fix demos
* notebooks
* fix tests
* changer
* maybe this
* fixes
* add changeset
* fix chatbot alignment mobile
* fix chantbot
* add changeset
* changeset
* changeset
* storybook
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-23 21:48:10 +01:00
aliabid94
7b8fa8aa58
Allow caching examples with streamed output ( #5295 )
...
* changes
* changes
* add changeset
* add changeset
* chages
* Update silver-clowns-brush.md
* changes
* chagers
* changes
* Update silver-clowns-brush.md
* change
* change
* change
* changes
* chages
* changes
* add changeset
* changes
* changes
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-08-23 11:47:07 -07:00
Dawood Khan
a0f22626f2
make_waveform()
twitter video resolution fix (#5296 )
...
* waveform res fix
* add changeset
* add changeset
* Improve audio streaming (#5238 )
* changes
* changes
* add changeset
* add changeset
* chages
* Update silver-clowns-brush.md
* changes
* chagers
* changes
* Update silver-clowns-brush.md
* change
* change
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
* Tweaks to `icon` parameter in `gr.Button()` (#5285 )
* button
* add changeset
* fix
* add changeset
* add changeset
* types
* type fix
* formatting
* fix based on review
* fix unit tests
* stories
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* test
* test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabid94 <aabid94@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-23 14:45:49 -04:00
Abubakar Abid
a74605572d
Add height parameter and scrolling to gr.Dataframe
( #5283 )
...
* add height and scrolling to dataframe
* add changeset
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-22 14:42:02 -07:00
Dawood Khan
92282cea6a
Chatbot Avatar Images ( #5258 )
...
* avatar images
* images
* add changeset
* fixes
* format
* type fix
* test fix
* format
* fixes
* tuple
* change to tuple
* test fix
* remove index file
* fixes
* save
* test fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-21 17:15:59 -04:00
Abubakar Abid
f49028cfe3
Move markdown & latex processing to the frontend for the gr.Markdown and gr.DataFrame components ( #5268 )
...
* changes
* katex
* add changeset
* dataframe
* add changeset
* latex in dataframe
* add changeset
* lint
* lint
* stories and types
* stories
* type
* restore lock
* pnpm lock
* fix backend tests
* xray configs
* test files
* test utils
* fix utils
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-21 06:54:20 -07:00
Abubakar Abid
c39f06e16b
Fix .update()
for gr.Radio()
and gr.CheckboxGroup()
( #5254 )
...
* fix dynamic -> interactive
* fix checks
* add changeset
* add changeset
* fix changeset
* fix linting issues
* Fix update choices
* add test
* fix'
* revert
* revert
* Delete curly-hands-carry.md
* add changeset
* add changeset
---------
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-18 07:58:33 -07:00
Abubakar Abid
f344592aeb
Allows setting a height to gr.File
and improves the UI of the component ( #5221 )
...
* file
* file downlaod
* add changeset
* added story
* lint
* fix test
* add changeset
* margin
* fixes
* lint
* modify
* lint
* add changeset
* revert
* revert
* add changeset
* Delete Chatbot.stories.svelte
* revert
* revert
* add changeset
* redesign
* lint
* fixes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-17 18:43:12 -07:00
Abubakar Abid
c57d4c232a
gr.Radio
and gr.CheckboxGroup
can now accept different names and values (#5232 )
...
* radio
* radio checkboxgroup
* add changeset
* type
* fix tests
* types
* fix unit test
* Update gradio/components/radio.py
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Update gradio/components/checkboxgroup.py
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* fix review
* examples
* backend
* type fixes
* fix test
* fixed example
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2023-08-16 11:27:39 -07:00
Artem Kotov
1ecf88ac5f
fix #5229 ( #5235 )
...
* fix #5229
* add changeset
* add simple test for #5229 similar to default one
* Lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-08-16 10:36:45 -04:00
Abubakar Abid
87f1c2b4ac
Allow gr.Interface.from_pipeline()
and gr.load()
to work within gr.Blocks()
( #5231 )
...
* add test
* external
* fixed in external
* add changeset
* close demo
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-15 22:28:19 -07:00
Freddy Boulton
e8fd4e4ec6
Completely hide api page if show_api=False ( #5219 )
...
* Add code
* add changeset
* type check
* CHANGELOG
* Update dirty-snails-love.md
* Add test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-15 10:07:53 -04:00
Lucain
947d615db6
Sign in with Hugging Face (OAuth support) ( #4943 )
...
* first draft
* debug
* add print
* working oauth
* inject OAuth profile + enable OAuth when expected + some doc
* add changeset
* mypy
* opt
* open in a new tab only from iframe
* msg
* add changeset
* Apply suggestions from code review
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fix injection + gr.Error
* allow third party cookie when possible
* add button to sign in/sign out button
* feedback changes
* oauth as optional dependency
* disable login/logout buttons locally
* nothing
* a bit of documentation
* Add tests for Login/Logout buttons
* Apply suggestions from code review
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* mention required dependencies
* fix package
* fix tests
* fix windows tests as well
* Fake profile on local debug
* doc
* fix tets
* lint
* fix test
* test buttons
* login button fix
* lint
* fix final tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-08-10 15:12:40 -04:00
Jiri Puc
80be7a1ca4
chatbot conversation nodes can contain a copy button ( #5125 )
...
* chatbot conversation nodes can contain a copy button
* add changeset
* the newly added chatbot copy message button is now called show_copy_button
* chatbot's Copy component styling improved
* chatbot's Copy component - typing fix
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-10 10:11:26 -04:00
Hannah
144df459a3
Add show_edit_button
param to gr.Audio
( #5149 )
...
* add show_edit_button param
* add changeset
* formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-09 16:38:07 -04:00
Freddy Boulton
80727bbe2c
Fix dataset features and dataset preview for HuggingFaceDatasetSaver ( #5135 )
...
* Add tests
* Use hf token
* lint
* add changeset
* Add empty string for None
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-09 14:14:12 -04:00
Abubakar Abid
0dc49b4c51
Add support for async functions and async generators to gr.ChatInterface
( #5116 )
...
* add support for async functions and iterators to ChatInterface
* fix api
* added support to examples
* add tests
* chat
* add changeset
* typing
* chat interface
* anyio
* anyio generator
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-08 15:57:55 -04:00
Charles Bensimon
56b02279ce
Set env with MonkeyPatch ( #5134 )
2023-08-08 12:33:02 -04:00
Charles Bensimon
97d804c748
[Spaces] ZeroGPU Queue fix ( #5129 )
...
* Properly set max_size and concurrency_count for ZeroGPU
* ZeroGPU concurrency_count warning
* Test
* add changeset
* Lint
* Sure, typing_extensions is a third-party ..
* Fix and refactor
* Black
* Empty commit
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-08 12:18:45 -04:00
sweep-ai[bot]
34f6b22efb
Strip leading and trailing spaces from username in login route ( #5104 )
...
* Update gradio/routes.py
* Update test/test_routes.py
* consolidate test
* add changeset
* update sweep yaml
---------
Co-authored-by: sweep-ai[bot] <128439645+sweep-ai[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-04 17:37:34 -04:00
Yuichiro Tachibana (Tsuchiya)
3b9494f5c5
Lite: Fix the analytics module to use asyncio to work in the Wasm env ( #5045 )
...
* Fix the analytics module to use asyncio to work in the Wasm env
* add changeset
* add changeset
* Add changeset
* Revert "Add changeset"
This reverts commit 052f2bd737
.
* Add the `is_wasm` field to the analytics telemetry
* Restore the initialization code in Blocks.launch() in the Wasm env
* Remove a call of analytics.version_check() in Blocks.launch() in the Wasm mode
* Add a `type: ignore` directive to the line of importing the `pyodide` module
* Fix a test case
* Refactor _do_wasm_analytics_request() and add a unit test for it
* Get the IP address for analytics in the Wasm mode
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-04 09:18:14 -04:00
pngwn
1419538ea7
Refactor component directories ( #5074 )
...
* asd
* changes
* fix everything
* cleanup
* add changeset
* fix casing
* lockfile
* fix casing
* fix ci, enable linting
* fix test
* add changeset
* add changeset
* delete changeset
* fix dirs
* fix casing
* fix notebooks
* fix casing
* fix casing
* fix casing
* fix casing
* fix casing
* fix casing
* fix casing
* fix casing
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-03 23:01:18 +01:00
Hannah
883ac364f6
Add step
param to Number
( #5047 )
...
* add step param to number component
* add changeset
* fix test
* fix BE test
* fix test again
* update number.py
* fix test
* test fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-01 12:44:33 +01:00
rajeunoia
f6c491b079
highlightedtext throws an error basing on model ( #5030 )
...
* highlightedtext throws an error basing on model
* add changeset
* add test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-07-29 01:23:27 +03:00
aliabid94
44ac8ad08d
Allow setting sketch color default ( #4979 )
...
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-07-25 11:39:51 -07:00
Abubakar Abid
b74f845303
Adds additional_inputs
to gr.ChatInterface
( #4985 )
...
* adding additional inputs
* add param
* guide
* add is_rendered
* add demo
* fixing examples
* add test
* guide
* add changeset
* Fix typos
* Remove label
* Revert "Remove label"
This reverts commit 1004285615
.
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-07-24 11:55:47 -04:00
Abubakar Abid
dc07a9f947
Revert "Revert "Add download button for audio"" ( #4993 )
...
* Revert "Revert "Add download button for audio (#4977 )" (#4992 )"
This reverts commit ad99df4fdd
.
* removed changelog updates
* add changeset
* credit leuryr
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-07-22 03:20:29 +03:00
Abubakar Abid
ad99df4fdd
Revert "Add download button for audio ( #4977 )" ( #4992 )
...
This reverts commit c58ea4780f
.
2023-07-21 08:00:33 +03:00
Leury Rodriguez
c58ea4780f
Add download button for audio ( #4977 )
...
* Add download button for audio
* Add summary to CHANGELOG
* Add bool param to gr.Audio for button visibility
* Update CHANGELOG
* formatting
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-21 07:43:15 +03:00
Abubakar Abid
683bdf7623
Release 3.38 ( #4991 )
...
* release
* changelog
* changelog
* changelog
* chatbot
* remove test
* Add code
* add min width to submit button
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-07-21 00:57:35 +03:00
Abubakar Abid
f8e5bfa2d4
Converts "Submit" button to "Stop" button in ChatInterface while streaming ( #4971 )
...
* initial work
* changes
* changes
* undo routes
* cancel fix
* cancel fix
* remove unnecessary test
* formatting
* changelog
* remove extraneous test
* simplify
* remove no streaming
* changelog
* no progress on textbox
* show progress revert
* clog
* lint
* fixes based on review
* updated textbox props
* fix
* format
* test fix
2023-07-20 15:01:53 -04:00
aliabid94
b68aeea412
Improve gr.ChatInterface
UI, add autofocus to textbox ( #4978 )
...
* changes
* changes
* lint
* fix tests
* fix
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-20 14:44:52 +03:00
Freddy Boulton
3dc9a65815
Use state in ChatInterface ( #4976 )
...
* Use state in chatinterface
* Changelog
* Fix tests
* use chatbot_state for everything
* lint
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-20 14:08:50 +03:00
Hannah
a0efc1180d
Add show_download_button
to gr.Image() ( #4959 )
...
* add show_download_button param
* add static image story
* chlog
* fix test
* typo
* add default value
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fix test
* fix another test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-19 19:00:02 +01:00
Charles Bensimon
a0b87cb6b3
Filter-out special args when setting Interface component labels ( #4956 )
...
* Filter-out special args when setting Interface component labels
* CHANGELOG
* Regression test
* Revert "Filter-out special args when setting Interface component labels"
This reverts commit f82e9ba2f2
.
* Unrevert
This reverts commit 3361321eaa
.
* Empty commit
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-19 17:54:39 +03:00
Abubakar Abid
5a511f02af
A high-level ChatInterface
abstraction ( #4869 )
...
* push
* chat interface
* remove video artifact
* changes
* restore
* changes
* more functions
* clean
* chat interface
* chat interface
* Update gradio/chat_interface.py
* nit
* changes
* api fix
* chat interface
* guide
* guide
* changes
* fixes
* Added ChatInterface Examples for Langchain, OpenAI Streaming, and HF's Text Generation Inference (StarChat)
* docstring
* tests
* tests
* tests
* tests
* rename
* guide
* chatbot
* conclusion
* demo notebooks
* clog
* test
* chat interface
* fixes
* functional test
* test
* notebook
* guides
* typing
* docstring
* script
* upgrade pyright
* upgrade pyright
* Update CHANGELOG.md
* revert pyright upgrade
* typing
* redirects
* Update CHANGELOG.md
* guide
* guide
* readme
* screenshot
* add to readme
* quickstart
* readme
* Added transformers open-source LLM example using ChatInterface
* Minor nits to guide
* Minor tweak to test - use connect fixture
* website fixes
* nav
* guide
* fix tests'
* fix
* type
* clear
* chat interface
* fix test
* fix guide
* handle edge case
* edge case
* typing
* fix example caching with streaming
* typing
---------
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Yuvraj Sharma <48665385+yvrjsharma@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-07-17 13:22:47 -04:00
Abubakar Abid
b16732ffb2
Add RTL support to Textbox
, Markdown
, Chatbot
( #4933 )
...
* add rtl support
* redo
* remove param
* clog
* fix backend tests; add textbox story
* add textbox story
* fix textbox story
* fixed textbox story, markdown
* markdown story
* format
* fixes'
* Update CHANGELOG.md
* update docstrings
* fix tests
* fix static checks
* fix tests
2023-07-17 12:53:23 -04:00
Abubakar Abid
e90ad010ad
Allow caching generators and async generators ( #4927 )
...
* helpers
* helpers
* async and tests
* docstring
* changelog
* type
* typing
* helpers
2023-07-14 19:38:22 -04:00
aliabid94
9137f1caa0
Speed up gradio.launch, especially when there's no internet ( #4905 )
...
* changes
* changes
* changes
* Revert "changes"
This reverts commit cbebf39157
.
* lint
* fix tests
* an
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-14 15:45:52 -04:00
Freddy Boulton
431140b903
Fix bug related to preprocessing URLs for video ( #4904 )
...
* Support urls
* Add unit test
* CHANGELOG
* Bump client version
* use url_like
2023-07-12 21:46:54 -04:00
Abubakar Abid
9f072796a5
Pinning dependencies in requirements.txt ( #4885 )
...
* requirements
* pins
* clogs
* python multipart
* python multipart
* clogs
* clog
2023-07-12 21:03:53 -04:00
Freddy Boulton
9787d0284a
Use tempdir for all python unit tests tests ( #4882 )
...
* Use tempdir for all tests
* Disable telemetry automaticall for client
* Use configuration
* Push js
* Final comments
* Undo change
2023-07-12 11:19:39 -04:00
Abubakar Abid
a82eee5733
Quick fixes to video test ( #4870 )
...
* push
* test components
* remove test file
* added monkeypatch
2023-07-11 10:29:14 -04:00
Freddy Boulton
6436e4ea5b
Refactor some python tests ( #4834 )
...
* Refactor
* Remove tests
* Fix image file
* trigger ci
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-10 13:40:46 -04:00
Freddy Boulton
0f8e25cd65
Fix gr.Warning/gr.Info when using generators + interface ( #4823 )
...
* Fix bug
* Fix notebook
* Add test
* Lint backend
2023-07-06 19:37:20 -05:00
Aarni Koskela
87e14e38b5
decode_base64_to_image: don't crash if EXIF data is broken ( #4764 )
...
* decode_base64_to_image: don't crash when if EXIF data is broken
* Simplify EXIF transposition to not read the EXIF data twice
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-06 10:35:08 -05:00
aliabid94
b8eb481473
Share button ( #4651 )
...
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* restore
* merge
* del image'
* update pnpm lock
* changes
* changes
* changes
* changes
* changes
* Update CHANGELOG.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* fix
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* chagnes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2023-07-05 19:50:17 -05:00
aliabid94
6c5427230e
Create Warning, Info modals ( #4518 )
...
* changes
* changes
* changes
* changes
* changes
* Styling for error, warning and info toasts (#4603 )
* create abstract toast component for info/warning/error
* add icons
* add light mode theming
* add theme mode check and dark mode styles
* update theme_mode on update
* clean up render of toast content
* replace dynamic css vars with toast type css selectors
* tweak colours
* change error pill border colour to align with toasts
* formatting
* fix failed test
* rename icon files and clean up css
* changes
* changes
* changes
* changes
* changes
* changes
* chanegs
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-07-03 16:28:39 -05:00