Commit Graph

6182 Commits

Author SHA1 Message Date
Freddy Boulton
d92c819419
Add concurrency_limit to ChatInterface, add IDE support for concurrency_limit (#6653)
* concurrency limit chat interface

* add changeset

* Update gradio/chat_interface.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>
2023-12-04 17:19:53 -05:00
renovate[bot]
19c9d26522
chore(deps): update chromaui/action action to v10 (#6618)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-04 14:04:19 -08:00
renovate[bot]
687a7ff6ea
chore(deps): update dependency chromatic to v10 (#6619)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-04 14:03:35 -08:00
Hannah
8fc562a8ab
Add show_recording_waveform to Audio (#6551)
* add show_recording_waveform

* add changeset

* add animation

* Refactor audio component and waveform options

* formatting

* add margin before audio controls

* amend default values

* expose gr.WaveformOptions

* Tweak waveform options types and handle none

* add waveform_options to reverse_audio

* tweak bool typing

* notebook

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-12-04 14:00:51 -08:00
Hannah
d548202d2b
Improve video trimming and error handling (#6566)
* amend trimming logic and return original file when error occurs

* add interactive story test

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-04 13:38:55 -08:00
Dawood Khan
b639e04074
Quick Image + Text Component Fixes (#6635)
* fixes

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-04 13:03:32 -08:00
Lihao Lei
4396f3f8f0
Fix encoding issue #6364 of reload mode (#6622)
* fix: configure default encoding as utf-8

* apply doc change for the fix

* apply cn doc change for the fix

* add changeset

* Lint

---------

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-04 15:37:05 -05:00
Ali Abdalla
1751f14c1b
Remove 2 slider demos from docs (#6624)
* remove 2 slider demos

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-02 14:34:59 +00:00
v-chabaux
13ace035ed
Update file_explorer.py - Fixing error if nothing selected in file_count=single mode (return None rather) (#6607)
* Update file_explorer.py

Fixing error if nothing selected in file_count=single mode (return None rather)

* add changeset

* added unit tests

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-30 08:33:10 +00:00
Abubakar Abid
b8034a1e72
Fix: Gradio Client work with private Spaces (#6602)
* client with private space

* add changeset

* lint

* add test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-30 07:21:59 +00:00
yanlin
4f040c752b
Update zh-CN.json (#6512)
* Update zh-CN.json

* add changeset

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-11-29 03:51:51 +00:00
renovate[bot]
6270884756
chore(deps): update dependency jsdom to v23 (#6582)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-11-29 03:43:17 +00:00
renovate[bot]
1ec1b549ad
chore(deps): update all non-major dependencies (#6593)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-29 03:21:04 +00:00
Yuichiro Tachibana (Tsuchiya)
9919b8ab43
Fix the docstring decoration (#5885)
* Fix the docstring of the `Slider` class

* add changeset

* Update the JSON file generator to output a new field .styled_description to render the inline code syntax in the description field

* add changeset

* Update style_types() to deal with backticks and single asterisks

* Update the inline style converter to use regex for the curly bracket syntax as well

* Revert `style_types()` not to touch the `description` field and update the frontend code to apply styling to such formatted texts on Svelte's side

* Apply the inline styler to other `.description` field appearances

* Apply the inline styler to `.preprocessing`, `.postprocessing`, `.examples-format`, `.events`, and `*.parameters.doc`

* Stop applying HTML styles to the JSON data, instaed apply HTML escaping

* Escape HTML tokens in .parameters[]["doc"] too

* fixes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2023-11-28 06:03:20 -05:00
Dody Suria Wijaya
9bf1ad43ea
Fix uploaded file wasn't moved to custom temp dir at different disks (#6565)
* Fix uploaded file wasn't moved to custom temp dir at different disks

* add changeset

* Update routes.py

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-11-28 05:58:55 -05:00
Freddy Boulton
315659817e
Make FileExplorer work on python 3.8 and 3.9. Also make it update on changes to root, glob, or glob_dir (#6550)
* Add code

* add changeset

* add changeset

* Add test

* fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-28 05:27:45 -05:00
Xiang Liao
9bcb1da189
Feat: make UploadButton accept icon (#6584)
* feat: make UploadButton accept icon

* add changeset

* add proxy url prop

* add stories

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-27 09:31:21 +00:00
Simon Duerr
5ae415e87d
Fix typo envrion -> environ (#6585) 2023-11-27 01:29:00 +00:00
Hannah
206af31d7c
Improve like/dislike functionality (#6572)
* amend like/dislike logic

* add like/dislike to chatbot demo and add e2e test

* add changeset

* e2e test changes

* revert chatbot_component changes

* tweak

* generate notebooks

* tweak

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-24 19:03:18 +01:00
Hannah
2b625ad940
Ensure Chatbot messages are properly aligned when rtl is true (#6574)
* fix text alignment when rtl is true

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-24 18:15:32 +01:00
Abubakar Abid
8bcdc83181
Fix version in other changelog (#6561)
* Fix version in other changelog

why do we have 2?

* remove changeset
2023-11-23 00:41:57 -08:00
Abubakar Abid
e3459f195a
Hotfix: version on changelog (#6559)
* clog version

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-23 00:26:52 -08:00
Dawood Khan
d4efd03fb5
Update package.json (#6557) 2023-11-23 01:37:09 -05:00
pngwn
da6814d226
chore: update versions (#6554)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-22 22:11:41 -05:00
Dawood Khan
58fa928a01
fix (#6553) 2023-11-22 21:57:28 -05:00
Ali Abdalla
3e60c13b91
Add 3.x docs to the website! (#6549)
* add 3.x version to docs

* support for 3.x

* fix guide links in docs

* changes

* changes

* working

* working

* fix

* add changeset

* formatting

* fix 3.50.2

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-22 16:26:33 -08:00
pngwn
2c39174343
chore: update versions (#6514)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-22 18:43:10 -05:00
Dawood Khan
13ef0f0caa
Quick fix: Make component interactive when it is in focus (#6530)
* fi

* add changeset

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-11-22 18:12:28 -05:00
renovate[bot]
6d3fecfa42
chore(deps): update all non-major dependencies (#6537)
* chore(deps): update all non-major dependencies

* add changeset

* fix

---------

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: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Dawood <dawoodkhan82@gmail.com>
2023-11-22 18:04:27 -05:00
Abubakar Abid
147926196a
Some tweaks to ImageEditor (#6538)
* fixes

* changelog

* add changeset

* changes

* ie fixes

* details

* templates

* Update CHANGELOG.md

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-22 13:56:35 -08:00
Hannah
a424fdbb23
Ensure audio waveform autoplay updates (#6546)
* prevent autoplay when autoplay is false

* tweak

* tweak

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-22 20:52:10 +01:00
Hannah
1bbd6cab3f
Fix undefined data TypeError in Blocks (#6536)
* add undefined check

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-22 11:39:56 +01:00
Freddy Boulton
f53b01cbfb
Fix Theme Dropdown in deployed theme space (#6528)
* theme dropdown

* lint

* add changeset

* fix app

* Lint

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-21 19:55:47 -05:00
Hannah
830b6c0e6e
Process and convert .svg files in Image (#6500)
* process and convert svg files with cariosvg

* add changeset

* remove svg2png and keep svg format

* add svg image test

* formatting

* revert typing format

* update docstrings

* Remove postprocessing change

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>
2023-11-22 00:50:40 +01:00
Ali Abdalla
e2810fcfc8
Fix redirected paths on website (#6533)
* prerender redirects

* add changeset

* formatting

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-21 14:06:17 -08:00
pngwn
96290d304a
tweak deps (#6532)
* tweak deps

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-21 16:12:17 -05:00
Zain
67a9286727
Fix broken link in gradio_client README (#6529) 2023-11-21 11:41:07 -08:00
Abubakar Abid
d4e3a51890
Allows setting parameters of gr.ChatInterface's Accordion (#6518)
* Chat Interface Accordion

* add changeset

* typing

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-21 10:58:53 -08:00
Abubakar Abid
901f3eebda
Allow reselecting the original option in gr.Dropdown after value has changed programmatically (#6517)
* fix

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-21 10:58:07 -08:00
Omar Sanseviero
c59b87d7b5
Update client.py (#6524) 2023-11-21 12:20:05 -05:00
Yuichiro Tachibana (Tsuchiya)
228d9d9f43
Remove gr.TimeSeries() from demo/dataset/run.py (#6521)
* Remove gr.TimeSeries() from demo/dataset/run.py

* Run generate_notebooks.py
2023-11-21 12:03:01 -05:00
Yuichiro Tachibana (Tsuchiya)
f94db6b731
File table style with accessible file name texts (#6520)
* File table style with accessible file name texts

* Fix for lint

* add changeset

* Remove unnecessary style

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-22 00:46:37 +09:00
Ikko Eltociear Ashimine
63f4668821
Fix typo in base.py (#6523)
* Fix typo in base.py

overriden -> overridden

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-21 16:18:47 +01:00
Yuichiro Tachibana (Tsuchiya)
71f1a1f993
Mark FileData.orig_name optional on the frontend aligning the type definition on the Python side (#6511)
* Mark `FileData.orig_name` optional on the frontend aligning the type definition on the Python side

* Replace `var` with `const` and rename a variable

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-11-21 00:07:24 -08:00
renovate[bot]
46f13f4968
chore(deps): update all non-major dependencies (#6296)
* chore(deps): update all non-major dependencies

* 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: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-11-21 00:06:02 -08:00
renovate[bot]
7c1baf954f
Update actions/setup-node action to v4 (#6269)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-11-20 23:48:36 -08:00
pngwn
c5ea13bdf7
chore: update versions (#6481)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-20 13:45:52 -08:00
Yuichiro Tachibana (Tsuchiya)
1baed201b1
Fix SourceFileReloader to watch the module with a qualified name to avoid importing a module with the same name from a different path (#6497)
* Fix SourceFileReloader to watch the module with a qualified name to avoid importing a module with the same name from a different path

* Fix the unit tests

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-20 13:54:26 -05:00
pngwn
070f71c933
Ensure image editor crop and draw cursor works as expected when the scroll position changes (#6502) 2023-11-20 15:13:04 +00:00
pngwn
2780d067f9
fix changeset (#6482) 2023-11-19 00:14:50 +00:00