Commit Graph

5994 Commits

Author SHA1 Message Date
Abubakar Abid
5d5ab8c73c
perf guide (#6673) 2023-12-06 09:18:09 -08:00
Freddy Boulton
1086542f17
Render each app in the PR's spaces preview in a separate page (#6657)
* Use template response

* minor fix

* Return type hint

* add changeset

* Remove return types

* response_class=None

* Use relative path

* SPA

* remove pydantic pin

* Revert

* delete changeset

* Overflow hidden on body

* text gray

* Collapsible sidebar

* max-height

* Use search params

* document.location.search

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-06 10:53:16 -05:00
aisensiy
30c9fbb5c7
Set gradio api server from env (#6666)
* Use GRADIO_API_SERVER env

* Format the code

* add changeset

* Use env GRADIO_SHARE_SERVER_ADDRESS as default share_server_address

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-12-05 18:09:42 -08:00
Abubakar Abid
51b54b3411
Tweak to our bug issue template (#6677)
* template

* add timeouts

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-05 18:05:52 -08:00
Ali Abdalla
abe9785c50
Remove Discourse Forum Link from Website (#6679)
* remove forum link

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-06 01:52:05 +00:00
cswamy
7cbf96e0bd
Issue 5245: consolidate usage of requests and httpx (#6598)
* issue 5245 commit 1

* formatted

* add changeset

* fixes

* fixes

* make changes in client too

* remove requests from client

* add changeset

* add changeset

* Fixes to test_utils.py in client

* fixes in client utils.py and test_utils.py

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-12-05 14:18:09 -08:00
Abubakar Abid
1234c3732b
use gr.Error for audio length errors (#6672)
* use gr.Error for audio length errors

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-05 13:15:16 -08:00
Abubakar Abid
299f5e238b
Update HF token used in CI tests (#6671)
* fix tests

* format

* fixes

* add changeset

* fixes

* fix

* fix

* update

* update

* test client

* format

* hf token 2

* add changeset

* add env

* add envs

* tests

* env

* fixes

* test external

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-05 12:49:48 -08:00
Freddy Boulton
523805360b
Fix reload mode warning about not being able to find the app (#6660)
* Fix warning

* add changeset

* Use *

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-05 13:25:40 -05:00
pngwn
fce80ac804
chore: update versions (#6575)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-04 16:14:12 -08:00
Ali Abdalla
d59ceec99d
Removes smooth scrolling from website (#6650)
* smooth scrolling with css

* add changeset

* formatting

* remove smooth scrolling

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-04 23:43:52 +00:00
Abubakar Abid
98b15c24a5
format (#6658) 2023-12-04 14:37:04 -08:00
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