Freddy Boulton
5dba3b2217
Run pyright on components directory ( #4948 )
...
* apply pyright components
* Add code
* CHANGELOG
* format
* Add configuration
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-18 13:31:53 -04:00
Abubakar Abid
1f5c090cb5
Release 3.37 ( #4947 )
...
* version
* ltr
2023-07-17 14:52:39 -04: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
Freddy Boulton
7b18891aae
Client: Support endpoints that return layout components ( #4871 )
...
* Add code
* CHANGELOG
* Add code
* Use set
* Modify _setup_serializers instead
* Push up code
* Remove from serializing
* Add gradio_client changes
* Update requirements.txt
2023-07-17 13:21:54 -04:00
aliabid94
f2fd37ee59
Fix gr.Group, container=False ( #4916 )
...
* changes
* changes
* changes
* changes
* changes
* fix
* changes
* changes
* Deploy group demo
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-07-17 10:05:46 -07:00
Charles Bensimon
c409cd5c73
Queue max_size
defaults to Block's max_threads
on ZeroGPU Spaces ( #4937 )
...
* Queue max_size defaults to Block's max_threads on ZeroGPU Spaces
* More readable ?
* CHANGELOG
2023-07-17 12:57:14 -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
Hannah
7f6d0e19ad
Fix images being cut off within a gr.Row()'s children ( #4896 )
...
* apply missing flex to Row component
* remove redundant !important
* changelog
* add (sort of a) row test
* remove import
2023-07-17 17:08:17 +01:00
Hyoung-Kyu Song
e6cf145fc9
Fix the expired image link used in theme builder ( #4944 )
...
* fix the expired image link
* update CHANGELOG.md
* Update gradio/themes/app.py
change the image link same as the original one
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/themes/app.py
change the image link same as the original one
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* apply lint
* equalize the default image link with app.py
* equalize default image links in building theme
* equalize default image links in demo notebook
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-17 11:51:01 -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
aliabid94
3474122cb3
Fix API page code snippets in safari ( #4924 )
...
* changes
* changes
2023-07-14 09:53:42 -07: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
Abubakar Abid
abd0ced3db
Fixes .change()
in Video
, Audio
, Image
( #4793 )
2023-07-11 16:56:46 +01:00
Freddy Boulton
34d5053076
Fire File change event when updated programmatically ( #4811 )
...
* Change
* Add code
* remove comments
* Add changelog
* remove test
* Fix typo
2023-07-10 11:29:34 -04:00
Dawood Khan
504c9d9d06
Add hyperlinks to download files in chatbot ( #4848 )
...
* add file links
* changelog
2023-07-10 10:34:01 -04:00
Freddy Boulton
1c9ebdea5b
Pydantic V2 hotfix and patch release ( #4835 )
...
* Update models
* CHANGELOG
* Bump changelog
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-07 16:13:09 -04:00
aliabid94
280b5697eb
Mobile queue fixes ( #4742 )
...
* 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
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-07-07 14:39:06 -05:00
Abubakar Abid
1b3e6ab2a5
v3.36.0 ( #4815 )
...
Co-authored-by: aliabid94 <aabid94@gmail.com>
2023-07-06 21:16:11 -05:00
aliabid94
5dc445b08f
Prevent broken scroll_to_output in Spaces ( #4822 )
...
* changes
* c
* change
* changes
2023-07-06 19:25:38 -05:00
Hannah
530e4ef164
Add border to selected image in gr.Gallery ( #4790 )
...
* add border to selected image and restore outline prop
* changelog
* amend borders for consistency in light + dark
2023-07-06 19:50:38 +01: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
Freddy Boulton
bc97b7ba96
Fix login page styling ( #4797 )
...
* Fix login
* Add storybook
* Fix import
* fix import
* Add support inline
* Fix changelog
* Fix test
2023-07-06 11:21:55 -04:00
pngwn
726115785b
place toast message at the top of the screen on mobile ( #4796 )
2023-07-06 09:12:46 +01: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
Abubakar Abid
f76348de02
Better message when share link is not created ( #4773 )
...
* better message when share link is not created
* remove comment
* changelog
* changes
* delete share
2023-07-05 11:06:30 -05:00
Ali Abdalla
67ce44dee1
fix changelog issues ( #4787 )
2023-07-04 20:12:41 +03:00
Dawood Khan
f04c7a8c5f
Fixes column width for textbox in gr.Examples based on the content ( #4700 )
...
* fix
* changelog
* Update CHANGELOG.md
* changes
* changes
* tweaks
* fix
* fix
* fix
* fix types
* fix notebooks
* Update CHANGELOG.md
---------
Co-authored-by: pngwn <hello@pngwn.io>
2023-07-04 12:21:23 -04:00
Ali Abdalla
cd693708cf
Converting the website into sveltekit ( #3437 )
...
* index page
* demos page
* guides gallery page
* guides
* some docs work
* changes
* changes
* docs work
* refactor some to ssr
* more refactoring
* add metatags
* add special docs pages and improve nav
* fix prev next in combining
* add changelog
* Site slugs for new website (#3431 )
* safe slugs for docs
* add slugs to guides
* changes
* add flagging
---------
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
* make anchor tags visible on hover
* add anchor tags to docs
* fix @html in codeblocks
* fix demos in guides
* syntax highlighting code in example usage
* fix @html in changelog
* fix contributing lin
* fix assets in guides
* fix broken assets on build
* error page
* fix meta tags updating
* move guides to be /guides/[guide] instead of /[guide]
* add headers to sections and make them linkable - freddy feedback
* add guides section to docs
* tighten width and add second nav bar
* styling second nav bar
* smooth scrolling in docs and guides
* make components clickable in event listener graph
* load latest gradio.js
* menu bar on docs mobile
* scrolling highlight menu and remove base docs page
* vercel
* refactor guides
* fix slugs in docs
* fix < and code formatting in guides
* added search
* redirect all old links
* fix bad merge
* fix paths
* Fix css issue with spaces logo
* add status page link to footer
* add themes to docs
* fix new documentation.py path
* add python client docs
* make docs faster
* add clients ot docs
* colors
* convert to adapter static
* prerender
* fix broken paths in guides
* fix broken slugs
* Aliabd/website sveltekit test (#4572 )
* fixes to paths
* fixes
* typechecking
* fix
* fix
* fix
* types lib
* more type fixes
* extends fix
* typing fix
* typing fix
* json typing fix
* add jsons
* rollup
* tweak
* fix lockfile
* fix maybe
* fix maybe
* changes
* ui functional fix
* oops
* pnpm version
* fix app
---------
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-04 16:33:22 +03: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
Abubakar Abid
56da69619c
Fix for analytics error ( #4738 )
...
* added exception
* fix
* changelog
* format
* blocks
* format
* Update gradio/exceptions.py
Co-authored-by: Aarni Koskela <akx@iki.fi>
* review fixes
* formatting
---------
Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-06-30 16:16:55 -05:00
Sunil Kumar Dash
e38496ec1e
Support path objs in components ( #4581 )
...
* Added support for Path objs in components(Video, Geallery, chatbot)
* added tests for pathlib.Path objs in Video, chatbot, Gallery
* added changes to docstrings and type annotations
* changelog
* formatting
* video
* fixing video docstring
* update
* Update test/test_components.py
* Update test/test_components.py
* formatting
* remaining components
* add pathlib to tests
* fix test
* formatting
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-29 16:54:35 -05:00
pngwn
b6f02bdd87
scroll to top when api clicked in spaces ( #4714 )
...
* scroll to top when api clicked in spaces
* changelog
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-29 20:59:40 +01:00
Abubakar Abid
409593e9cc
Updates to the API endpoints / docs, and fixing the Theme builder ( #4683 )
...
* view API fixes
* code snippet js
* changelog
* api name false
* examples
* client trigger tests
* fix typecheck
* black
* type
* typing
* typing
* update gif
* type ignore
* added tests
* format
* added test
* test
* fix guides
* snippet
* tests
* fix tests
* add test
* fix typing
* fix test
* remove comments
2023-06-29 14:05:25 -05:00
Freddy Boulton
acc72cddee
Fix show_label for Label component ( #4713 )
...
* Add code
* Add tests
* Add CHANGELOG
2023-06-29 11:42:26 -04:00
Jeb
d85fddf677
Updated components with 'info' attribute to update when update() is called on them. ( #4715 )
...
* updated components with 'info' attribute to update when update() is called on them.
* added change to CHANGELOG.md
* updated CHANGELOG.md with correct format ending
* fix test
* changelog
---------
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-29 11:09:55 +01:00
Mickey
dc733f47ee
fix(Image): Image mod is mask or color-sketch bug; ( #4692 )
...
* fix(Image): Image mod is mask or color-sketch bug;
click undo -> the shadow line not real time change
* fix(Image): write the CHANGELOG
* changelog
* cleanup
---------
Co-authored-by: yanghao <yanghao@dragonest.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-28 23:08:25 +01:00
pngwn
2dcc0845e6
fix hidden error toast ( #4712 )
...
* fix hidden error toast
* fix
* try this
* try this
* fix ts
* cleanup
2023-06-28 22:52:12 +01:00
pngwn
085ff0394d
update deps + fix tests ( #4675 )
...
* update deps + fix tests
* tweak
* fixes
* changes
* fix everything
* fix checks
* fix
* log
* remove logs
* try this
2023-06-28 22:40:53 +01:00
Abubakar Abid
dd97ee9940
Dropdown cutoff fix ( #4691 )
...
* form
* changelog
* overflow y
* changes
* changes
* changes
* Update js/form/src/DropdownOptions.svelte
Co-authored-by: Aarni Koskela <akx@iki.fi>
* Update js/form/src/DropdownOptions.svelte
Co-authored-by: Aarni Koskela <akx@iki.fi>
* changes
---------
Co-authored-by: Ali Abid <aabid94@gmail.com>
Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-06-28 16:00:27 -05:00
Freddy Boulton
2baf33c33f
Fix Wrong Deprecation Warning message for type/plot parameter ( #4709 )
...
* Add code
* CHANGELOG
* Fix
* Add to changelog
2023-06-28 15:02:01 -04:00
pngwn
1650e1d383
4549 autoplay ( #4705 )
...
* changes
* tests
* revert demo
* changelog
* cleanup audio
* more tests
* handle video
* cleanup
* fix notebooks
* cleanup
* reinstate files
* fix notebooks
* fixes
* fix tests
2023-06-28 19:37:21 +01:00
Aarni Koskela
9c551c316c
More proper deprecation warnings ( #4694 )
...
* Add GradioDeprecationWarning subclass
* Add and use find_user_stack_level(); add warn_deprecation()
* Deduplicate `.style()` deprecation warning
* Deduplicate inputs deprecation warnings
* Deduplicate outputs deprecation warnings
* Use warn_deprecation for deprecation warnings
* Changelog
* formatting
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-27 13:07:40 -05:00
Freddy Boulton
86e3eec311
Remove cleared_value ( #4685 )
...
* Remove cleared_value
* CHANGELOG
2023-06-26 17:19:07 -04:00
Ilya Trushkin
b5121a96b2
Forward tqdm
constructor arguments to Progress
component ( #4475 )
...
* Forward tqdm constructor arguments to Progress component
Signed-off-by: Ilya Trushkin <ilya.trushkin@intel.com>
* lint
* reorder args
* added tests
---------
Signed-off-by: Ilya Trushkin <ilya.trushkin@intel.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-26 09:26:28 -05:00
aliabid94
7b8fbb17c8
fix upload file delay ( #4661 )
...
* fix
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-26 08:14:00 -05:00
Freddy Boulton
c7081e5747
Fix AnnotatedImage styling + add demo ( #4628 )
...
* Fix css + add demo
* CHANGELOG
* Add image_segmentation
* Add notebook
* Fix demo
* Fix demos
2023-06-23 12:49:26 -04:00
Abubakar Abid
86dc064e9e
Getting the CI to pass consistently on Windows (hopefully) ( #4624 )
...
* run windows jobs
* run windows jobs
* windows jobs
* remove interpretation
* restore
* fixes to checking port
* linting
* remove server name testing
* add timeout
* remove saveto
* remove saveto
* exception
* fixes
* fixes
* fixes
* backend
* cleanup
* changelog
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-06-22 15:23:48 -04:00
Dawood Khan
62701f8dce
Remove unnecessary mock json files ( #4625 )
...
* remove mock json files
* changelog
* Update CHANGELOG.md
2023-06-22 10:32:48 -04:00