Ali Abdalla
cf167cd1dd
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>
2023-08-23 12:38:42 -07: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
Faiga Alawad
15075241fa
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>
2023-08-23 13:47:02 -04:00
Faiga Alawad
beca04fd29
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
2023-08-23 07:35:43 -07:00
Abubakar Abid
cdfd42174a
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>
2023-08-22 15:05:22 -07:00
aliabid94
de23e9f7d6
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>
2023-08-22 15:01:34 -07: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
Hannah
804fcc058e
Add render
function to <gradio-app>
( #5158 )
...
* add function on_load to gradio-app web element
* typo
* fix test
* add ready event
* add custom events and use onMount
* add changeset
* add changeset
* move event logic
* add changeset
* clean up whitespace
* add onloadcomplete to guide
* add changeset
* add changeset
* add highlight
* change event name to render and ensure it runs after DOM mounting is complete
* update docs
* rename var
* tweak
* renaming
* tweak
* tweaks
* mount statustracker nodes
* typo
* tweaks
* copy tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-22 12:11:19 +02: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
Freddy Boulton
390624d8ad
Enable streaming audio in python client ( #5248 )
...
* Add code
* Remove file
* add changeset
* add changeset
* Update chilly-fans-make.md
* lint
* Lint
* Add ffmpeg
* Lint
* Cleaner way to handle stream change
* Fix windows test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-21 12:15:36 -07:00
Abubakar Abid
a2f42e28bd
Allow updating the label of gr.UpdateButton
( #5280 )
...
* upload button label
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-21 11:18:23 -07:00
Hannah
502f1015bf
Ensure Blocks
translation copy renders correctly ( #5276 )
...
* fix copy render in blocks
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-21 06:54:42 -07: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
Hannah
46a2b600a7
ensure translations for audio work correctly ( #5264 )
...
* fix audio import
* set i18n locale
* add changeset
* tweak
* add changeset
* add curly brackets
* add changeset
* changes
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-18 17:37:19 +01:00
Abubakar Abid
06982212df
Removes scrollbar from File preview when not needed ( #5265 )
...
* fix scrollbar when not needed
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-18 09:13:52 -07:00
pngwn
96e4f5b922
remove index files and update test paths ( #5262 )
2023-08-18 16:33:07 +01:00
pngwn
807fb883d3
Support lists in fix + feat changelog entries ( #5261 )
2023-08-18 16:32:25 +01:00
Abubakar Abid
933db53e93
Better handling of empty dataframe in gr.DataFrame
( #5256 )
...
* better handling of empty dataframe
* add changeset
* hide comments
* add changeset
* remove
* lint
* null case
* add stories
* stories
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-18 08:20:02 -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
aliabid94
a773eaf750
Stop passing inputs and preprocessing on iterators ( #5260 )
...
* changes
* add changeset
* changes
* add changeset
* Update blocks.py
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-18 10:54:58 -04:00
renovate[bot]
1cefee7fc0
chore(deps): update dependency marked to v7 ( #5112 )
...
* chore(deps): update dependency marked to v7
* add changeset
* fix types
* add changeset
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-08-18 13:14:14 +01:00
Hannah
4b58ea6d98
Update i18n tokens and locale files ( #5216 )
...
* tokenize en strings in components and refactor en.json
* add changeset
* refactor more translation files
* more translation files
* tweak
* fix test
* fix other test
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-18 12:36:52 +01: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
pngwn
ddac7e4d0f
Ensure File component uploads files to the server. ( #5253 )
...
* fix dynamic -> interactive
* fix checks
* add changeset
* add changeset
* fix changeset
* fix linting issues
* fix typing issue
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-17 12:20:19 -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
Freddy Boulton
b3e50db92f
Remove aiohttp dependency ( #5244 )
...
* Remove aiohttp
* add changeset
* Add requirements file to filter
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-16 12:03:46 -04: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
Hannah
2b397791fe
Fix message text overflow onto copy button in gr.Chatbot
( #5242 )
...
* increase message padding before copy button
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-16 15:06:34 +01: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
Tom Aarsen
b2f49cfa36
typo: addion -> addition ( #5234 )
2023-08-15 15:43:11 -04:00
pngwn
fbdad78af4
Lazy load interactive or static variants of a component individually, rather than loading both variants regardless. This change will improve performance for many applications. ( #5215 )
...
* lazy load compoennts more granularly
* add changeset
* format
* add changeset
* fix casing
* fix casing
* fix casing
* revert changelog formatting
* add changeset
* revert changelog formatting
* add changeset
* make interactive updates work
* revert changelog stuff
* fix order
* fix static dataframe
* revert demo change
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-15 19:21:41 +01:00
Dawood Khan
3b8053469a
Allows code block in chatbot to scroll horizontally ( #5122 )
...
* wrap
* scroll
* add changeset
* fix copy button position
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-15 10:26:54 -04: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
pngwn
640397075d
add gradio as a devdep of @gradio/lite ( #5226 )
...
* add gradio as a devdep of @gradio/lite
* add gradio as a devdep of @gradio/lite
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-15 10:36:33 +01:00
pngwn
2e61a6612a
pin local dependencies when auto-bumping ( #5222 )
...
* pin local dependencies when auto-bumping
* better jsdoc
2023-08-14 21:13:38 +01:00
jonmatthis
ae58f8985c
update to remove deprecation
warnings ( #5200 )
2023-08-14 14:51:10 +01:00
Ray Tri
730f0c1d54
Ensure gradio client works as expected for functions that return nothing. ( #5173 )
...
* fixed issue with the js client expecting optional api_info from python gradio runner
* 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-14 14:50:32 +01:00
pngwn
43f3d3d77c
test ( #5195 )
...
* test
* add changeset
* ci tweaks
* ci tweaks
* fix
* fix
* delete changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-14 14:39:20 +01:00
renovate[bot]
4844303e8d
chore(deps): update dependency @testing-library/jest-dom to v6 ( #5201 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-14 14:36:37 +01:00
Freddy Boulton
24b66e1cff
homepage demo update ( #5186 )
...
* homepage demo update
* add changeset
* Fix spacing
* Switch demo order
* asd (#5191 )
* asd (#5192 )
* homepage demo update
* Fix spacing
* add changeset
* Switch demo order
* remove endocardiogram
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-08-11 19:04:49 -04:00
pngwn
7334a4b182
Debug ci ( #5194 )
...
* ci tweaks
* ci tweaks
* ci tweaks
* ci tweaks
2023-08-11 22:29:59 +01:00
pngwn
2b8846f395
ci debug ( #5193 )
...
* ci tweaks
* ci tweaks
2023-08-11 22:00:32 +01:00
pngwn
5adc2fd703
asd ( #5192 )
2023-08-11 20:24:20 +01:00
pngwn
7d884a98ad
asd ( #5191 )
2023-08-11 19:41:12 +01:00
pngwn
4d41f8d3d9
Ci fixes asd ( #5190 )
...
* tweaks
* tweaks
* asd
* asd
2023-08-11 19:21:39 +01:00
pngwn
0b4642321a
tweaks ( #5189 )
...
* tweaks
* tweaks
2023-08-11 18:51:34 +01:00
aliabid94
6fb92b48a9
Fixes audio streaming issues ( #5179 )
...
* changes
* changes
* version bump
* version bump
* version
* add changeset
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-11 13:16:30 -04:00
renovate[bot]
f440e7c3bb
chore(deps): update actions/download-artifact action to v3 ( #5184 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-11 13:10:59 -04:00
renovate[bot]
96c5bfd44b
chore(deps): update actions/upload-artifact action to v3 ( #5185 )
...
* chore(deps): update actions/upload-artifact action to v3
* fix
* fix
* fix
* fix
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-11 13:09:34 -04:00