Commit Graph

5582 Commits

Author SHA1 Message Date
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
1dc797adcb
chore: update versions (#5341)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-25 12:07:20 -07:00
Keldos
3341148c10
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>
2023-08-25 14:37:45 -04:00
aliabid94
5f25eb6836
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>
2023-08-25 11:31:18 -07:00
Freddy Boulton
df090e89f7
Fix Checkbox select dispatch (#5340)
* Fix bug

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-25 11:42:46 -04:00
pngwn
67a8e97805
Fix ci again again again (#5333)
* fix changelog generation

* fix changelog generation

* fix

* fix script

* fix script

* fix vars

* fix vars
2023-08-24 20:25:41 +01:00
pngwn
f6e387d4fb
Fix ci again again again (#5332)
* fix changelog generation

* fix changelog generation

* fix

* fix script

* fix script

* fix vars
2023-08-24 20:03:06 +01:00
pngwn
0b018c43a5
Fix ci again again again (#5331)
* fix changelog generation

* fix changelog generation

* fix

* fix script

* fix script
2023-08-24 19:47:17 +01:00
pngwn
0b8908230e
Fix ci again again again (#5330)
* fix changelog generation

* fix changelog generation

* fix

* fix script
2023-08-24 19:33:20 +01:00
pngwn
632e4d8378
chore: update versions (#5326)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-24 18:47:07 +01:00
pngwn
1e90a2ef2d
Fix ci again again again (#5329)
* fix changelog generation

* fix changelog generation

* fix
2023-08-24 18:36:36 +01:00
pngwn
e32b0928d2
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>
2023-08-24 18:22:41 +01:00
Ali Abdalla
2fd1f3e977
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>
2023-08-24 18:22:28 +01:00
pngwn
d44708e243
fix changelog generation (#5328) 2023-08-24 18:09:37 +01:00
pngwn
31996c991d
ensure login form has correct styles (#5324) 2023-08-24 16:42:28 +01:00
Hannah
2592d4e380
Test Blocks.svelte footer copy (#5307)
* test test

* fix test

* tweak

* tweak test name
2023-08-24 12:12:27 +02:00
pngwn
ba4c6d9e65
chore: update versions (#5177)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-23 15:41:08 -07:00
Abubakar Abid
54bcb72417
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>
2023-08-23 15:26:09 -07:00
pngwn
f769cb6714
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>
2023-08-23 23:07:58 +01:00
pngwn
29a3a75a61
fix (#5308) 2023-08-23 21:58:15 +01: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
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