pngwn
0d9a08bf64
ensure css loads before mounting app ( #3573 )
...
* ensure css loads before mounting app
* changelog
* fix tests
* change?
* changelog
2023-03-27 15:52:07 +01:00
pngwn
4c00103dea
fix wc error in dev mode ( #3572 )
...
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-24 16:35:51 -04:00
Freddy Boulton
9d3f58b898
Translate "or" for i18n ( #3599 )
...
* Translate or for i18n
* CHANGELOG
2023-03-24 11:02:05 -04:00
Freddy Boulton
f2fb69ec29
Trigger event when Slider number input is released ( #3589 )
...
* Add event
* Add unit test
* CHANGELOG
2023-03-23 17:59:56 -04:00
pngwn
7856382de6
ignore app ( #3587 )
2023-03-22 22:41:06 +00:00
pngwn
76c45999bb
update gradio/client readme ( #3584 )
2023-03-22 18:07:17 +00:00
pngwn
57a0aa194f
fix npm publish ( #3582 )
...
* fix npm publish
* correct repo name
2023-03-22 17:53:35 +00:00
pngwn
2d22d4f028
change ( #3577 )
...
* change
* formatting
2023-03-22 14:27:14 +00:00
pngwn
e553558a47
3404 publish js client ( #3574 )
...
* publish ci setup
* publish ci setup
2023-03-22 13:46:23 +00:00
Freddy Boulton
7140903dd6
Fix darkmode text color for altair plots ( #3555 )
...
* dont apply formatting for non-native plots
* CHANGELOG
* Remove unused diff
2023-03-21 19:32:33 -04:00
aliabid94
ea54486350
Dropdown issues ( #3549 )
...
* changes
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-20 22:57:49 -07:00
aliabid94
ce20f1ba20
fix login ( #3529 )
...
* fixes
* changes
* changes
2023-03-20 21:59:19 -07:00
aliabid94
8114202697
Use soft theme instead of glass theme in demo ( #3503 )
...
* changes
* changes
* changes
* changes
* changes
* Update gradio/themes/base.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/themes/base.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* changes
* changes
* changes
* changes
* undo merge break
* changes
* changes
* changes
* fix
* theme_to_soft
* changes
* formatting
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-18 13:07:23 -07:00
aliabid94
5089fff3a6
More theme updates ( #3497 )
...
* changes
* changes
* changes
* changes
* changes
* Update gradio/themes/base.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/themes/base.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* changes
* changes
* changes
* changes
* undo merge break
* changes
* changes
* changes
* fix
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-17 17:20:55 -07:00
Abubakar Abid
de3254fd08
Theme+release ( #3494 )
...
* changes
* changes
* changes
* changes
* changes
* Update gradio/themes/base.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/themes/base.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/03_building-with-blocks/06_theming-guide
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* changes
* changes
* save file
* update changelog
---------
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-03-17 07:41:53 -07:00
Freddy Boulton
79a369cc68
Fix loading css and api when mounted in subpath ( #3482 )
...
* Implementation
* Lint + CHANGELOG
* Remove log + / typo
* Fix embedding
* Minor fix
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-16 17:33:40 -04:00
Abubakar Abid
eb101c428f
Adds copy button to textbox via .style()
( #3452 )
...
* add copy to textbox
* changelog
* formatting, docstring
* changes
* formatting
* demo
* cleanup
* copy button
2023-03-15 16:45:45 -07:00
aliabid94
373c8dd716
Add elem classes ( #3466 )
...
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-15 14:01:53 -07:00
Abubakar Abid
318e90c0ed
Fix File.upload()
event ( #3462 )
...
* fix .upload event
* changelog
* cleanup
2023-03-15 07:22:34 -07:00
aliabid94
3d772b6aea
Fix Mic display ( #3456 )
...
* changes
* fix
2023-03-13 18:02:53 -07:00
aliabid94
95bf08b2e2
Adding the .select event listener ( #3399 )
...
* changes
* changes
* changes
* changes
* changes
* changes
* changs
* changes
* changes
* changes
* changes
* changes
* changes
* preview
* fix notebook
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* Add type hints (#3403 )
Co-authored-by: aliabid94 <aabid94@gmail.com>
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* change
* changes
* changes
* changes
* changes
* changes
* changes
* Update gradio/helpers.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* doc update
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-03-13 17:12:41 -07:00
Abubakar Abid
175dd160ec
Adds accepts
parameter to Code
component to control filepath/string ( #3450 )
...
* test
* wording
* remove show label
* show label
* adding example
* add examples
* make change
* Code
2023-03-13 13:59:23 -07:00
Abubakar Abid
c4734fff8b
Makes a few fixes to the JSON component ( #3451 )
...
* small fixes
* changelog, formatting
* static checks
2023-03-13 10:29:26 -07:00
Dawood Khan
f8159aa5f4
Making the chatbot even more multimodal ( #3413 )
...
* multimodal chatbot
* notebook
* fix tests
* Update demo/chatbot_multimodal/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fix notebook
* changelog
* Update CHANGELOG.md
* Update gradio/components.py
* Update gradio/components.py
* Update gradio/components.py
* fixing security issue
* updating demo
* formatting
* demo notebooks
* changes
* typing
* changes
* changes
* changes
* add test
* fixes
* renaming demos
* fixed demo
* fixes
* fix demos
* chatbot
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-03-13 07:21:03 -07:00
aliabid94
092b7448e6
consecutive triggers with .then
( #3430 )
...
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* Update guides/03_building-with-blocks/01_blocks-and-event-listeners.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/blocks.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update demo/chatbot_simple_demo/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update demo/chatbot_simple_demo/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* allow nest
* changes
* changes
* changes
* changes
* changes
* events
* formatting
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-11 20:38:22 -08:00
pngwn
11bb732f5d
add code component ( #3421 )
...
* add code component
* changes
* changes
* code
* add code to all_demos
* change remove prefix
* changes
* notebooks
* fix pythong types
* changelog
* cleanup
* Apply suggestions from code review
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* add interactive kwarg
* fix focus
* changelog
* fix demo
* tests
* cleanup
* Update gradio/components.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* change padding to compute from block label styles
* use neutral colours for sucess animation
* cleanup
* update document
* add changelog for fix
* fix documentation
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-10 17:52:17 +00:00
aliabid94
c22f84343b
Event listener cleanup ( #3420 )
...
* changes
* changes
* trim out then
* chagnes
* CHANGES
* changes
* changes
* changes
* restore ui
* changes
* changes
* changes
* changes
* changes
* changes
* Update gradio/documentation.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changres
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-09 12:58:41 -08:00
pngwn
fddf376784
JS client take 2 ( #3388 )
...
* start
* change api
* integrate into gradio
* log
* try this
* format
* changes
* format
* fix css
* fix file
2023-03-07 16:36:25 +00:00
aliabid94
608d3b6250
Python backend to theming ( #2931 )
...
* add theme + theme atoms
* audio
* buttons
* chatbot
* forms
* start file
* complete file
* fixup workbench
* gallery
* highlighted text
* label
* json
* upload
* 3d model
* atoms
* chart
* md + html
* image
* plot + build
* table
* tabs
* tooltip
* upload
* tweaks
* tweaks + more tooling
* tweaks to padding/ lineheight
* app components _ start api docs
* format, more api docs
* finish api docs
* interpretation
* todos
* tweaks + cleanup
* tweaks + cleanup
* revert range tweaks
* fix notebooks
* fix test
* remove tw
* cleanup + login
* fix gitignore
* fix types
* run css script
* fix progress + tweaks
* update demos
* add css build to static check workflow
* tweak ci
* fix tests
* tweak markdown
* tweak chatbot + file
* fix tabs
* tweak tabs
* cleanup
* fix api docs
* fix example gallery
* add gradient to toast
* fix min height for interfaces
* revert tab changes
* update notebooks
* changes
* changes
* change
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* change
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* fix
* changes
* changes
* changes
* changes
* changes
* changes
* undo radius
* undo radius
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* change
* undo
* Add absolute imports
* mock theme in tests
* clean
* changes
* changes
---------
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-06 12:52:31 -08:00
Dawood Khan
a2076441e2
Chatbot height kwarg ( #3369 )
...
* height
* height
* changelog
* fixes
* merge
* Fix File updating (#3375 )
* Fix
* Remove line
* Add unit test
* CHANGELOG
* Remove comment
* fixes
* Release 3.20.0 (#3374 )
* release-3.20.0
* update changelog
* New Version Docs (#3376 )
* [create-pull-request] automated change
* empty commit
* [create-pull-request] automated change
* empty commit
---------
Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
* notebook
* changelog
* changelog
* format
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-03-06 10:12:39 -08:00
pngwn
fc39cbdd9b
ensure image is always drawn ( #3386 )
...
* ensure image is always drawn
* fix demo
* notebooks
* clean
2023-03-06 16:04:42 +00:00
aliabid94
02fb8f5a1f
Updated chat ui ( #3370 )
...
* test
* changes
* chagnes
* changes
* changes
* changes
* changes
* Update CHANGELOG.md
* changes
* Update demo/chatbot_multimodal/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update demo/chatbot_simple_demo/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-03 18:17:48 -08:00
Freddy Boulton
99945c951b
Fix File updating ( #3375 )
...
* Fix
* Remove line
* Add unit test
* CHANGELOG
* Remove comment
2023-03-03 15:14:56 -05:00
Jialei
be4ca360ca
Fix error when using backen_fn and custom js at the same time ( #3358 )
...
* Fix error when using backen_fn and custom js at the same time
* generate notebooks
* update changelog
* changes
---------
Co-authored-by: Ali Abid <aabid94@gmail.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-03-03 14:37:05 -05:00
pngwn
6c9c41b15d
support domains ( #3367 )
...
* support domains
* changelog
* format
* handle invalid source/host/space
* format
* version
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-03 16:52:38 +00:00
Freddy Boulton
d8023d455f
Add event that's triggered when slider is released ( #3353 )
...
* Add code
* Add unit test
* CHANGELOG + notebook format
* Clean up
* Remove comment
2023-03-02 21:29:49 -05:00
pngwn
5c01a029ce
resize image when shape is passed ( #3351 )
...
* resize image when shape is passed
* changelog
* cleanup
* handle square images + refactor
* leftover
2023-03-01 23:47:15 +00:00
pngwn
ce0bbdab89
dropdown ( #3338 )
...
* fix
* fixes
* format
* changelog
* Update gradio/components.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fix clear case
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-28 18:18:33 +00:00
Freddy Boulton
9fbe7a06fb
Add option to display gallery in preview mode ( #3345 )
...
* Add code + api
* CHANGELOG
2023-02-28 12:41:24 -05:00
Freddy Boulton
ba6e4accb6
Apply height in Gallery.style ( #3343 )
...
* Apply height
* Remove log
* Add CHANGELOG
* Remove unused let
* Add missing type hint
2023-02-28 12:13:49 -05:00
pngwn
d39c62a7f4
fix markdown css ( #3341 )
...
* fix markdown css
* changelog
* cleanup
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-28 10:26:00 +00:00
pngwn
126694b70d
fix flex layout ( #3336 )
...
* fix flex layout
* changelog
2023-02-27 17:55:53 +00:00
Freddy Boulton
53e4733f2a
Add types field to dependency config ( #3315 )
...
* Add to config
* CHANGELOG
* Safe pop
* Fix test
2023-02-24 20:07:31 -05:00
Ali Abdalla
e54042b43b
API Docs Fixes ( #3287 )
...
* fix audio api docs
* fix type and desc for every component
* fix indentation
* fix chatbot example
* fix checkbox example
* fix types in run and code snippets
* fix dataframe dataset file video
* some syntax highlighting
* changelog
* formatting
* type fixes
* clarify wording for audio, video, file
* better indentation
* show actual url in description
* add copy buttons
* formatting and types
2023-02-24 13:13:13 -08:00
Dawood Khan
f36211050c
Dropdown Component Updates ( #3211 )
...
* dropdown
* more dropdown updates
* dropdown styling + option visibility
* changelog
* notebook
* fix test
* Allow more image formats (#3225 )
* add wildcard to image input
* simplify mime types
* changelog
* regen noteboks
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
* fix webcam mirroring (#3245 )
* fix webcam
* changelog
* fix changelog
* fix changelog
* fix changelog
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Add `interactive=False` mode to `gr.Button` (#3266 )
* add interactive=False to button
* add interactive=True by default
* changelog
* fix frontend
* fix backend test
* formatting
* review changes
* LaTeX height fix (#3258 )
* latex height fix
* changelog
* formatting
* em
* em
* accidentally added script (#3273 )
* Adding a script to benchmark the queue (#3272 )
* added benchmark queue script
* changelg
* fix instructions
* Fix matplotlib image size (#3274 )
* Fix matplotlib css
* CHANGELOG
* Undo lockfile
* Add timeouts to queue messages (#3196 )
* Fix + test
* Remove print statements + fix import for 3.7
* CHANGELOG
* Remove more print statements
* Add 60 second timeout for uploading data
* Fix test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* icons
* separate options into component
* formatting
* changelog
* changelog
* fix ui tests
* formatting again...
* backend test fix
* format
* doc fixes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: fienestar <fienestar@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-02-23 16:32:18 -05:00
Freddy Boulton
ed33e8f1a8
Add download button for output images ( #3297 )
...
* Add download button
* CHANGELOG
* Add gif to changelog
* newline
2023-02-23 15:56:37 -05:00
pngwn
4e772fda24
new logo, remove initial_height after loading ( #3292 )
...
* new logo, remove initial_height after loading
* tweak
* changelog
* cleanup
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-23 20:07:27 +00:00
Freddy Boulton
7b2f9cf2ea
3290 fix dropdown infinite loop ( #3295 )
...
* Fix infinite loop
* lint
* CHANGELOG
2023-02-23 10:55:43 -05:00
pngwn
372a3cca2f
3248 image ( #3277 )
2023-02-23 08:46:44 +00:00
aliabid94
9c811ed892
Add info= parameter to form type inputs to provide more context for users ( #3291 )
...
* changes
* changes
* changes
* changes
* changes
* changes
2023-02-22 15:16:15 -08:00