Commit Graph

1313 Commits

Author SHA1 Message Date
David Berenstein
1a9d7297c1
Catch OSErrors in HuggingFaceDatasetSaver._deserialize_components (#9078)
* Update flagging.py

* add changeset

---------

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-12 12:56:59 -04:00
Hannah
5350f1feb2
Add copy all messages button to chatbot (#9013)
* add copy all button to chatbot

* tweaks

* lint

* use value.url for media

* remove import

* add changeset

---------

Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-12 14:08:12 +00:00
Ali Abdalla
3258968371
Add warning to guides and change styling of tip (#9075)
* add warning and styling

* add changeset

* forward every trailing slash that vercel lets through

* fix weird tw thing

* fix error

* better fix for css trailing slash issue

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-09 17:20:12 -07:00
Col0ring
7b288cf677
Fix unexpected rendering of Dataset (#8987)
* Fix unexpected rendering of Dataset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2024-08-09 09:06:56 -07:00
pngwn
54da6da115
chore: update versions (#8960)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-08 11:20:08 +01:00
Abubakar Abid
981731acb7
Fix flaky tests and tests on Windows (#9059)
* fixes

* fix external tests

* lint

* add changeset

* comment

* fix client

* add changeset

* run on pull request label changes

* lint

* file explorer

* format

* format

* fix windows

* changes

* test

* format backend

* fix

* fix test

* fix tests

* fix

* rate limit

* fix

* trigger

* fix flakiness

* test

* reruns

* reqs

* fix functional tests

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-08 01:41:16 -07:00
Freddy Boulton
9fa635a8fd
Fix multimodal chatinterface api bug (#9054)
* fix

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-08 01:36:14 -07:00
Ali Abdalla
f29aef4528
Fix trailing slash link on docs (#9067)
* explicit trailing slash never

* add changeset

* add changeset

* fix link

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-07 23:25:21 -07:00
Ali Abdalla
890bae3942
Filter out type ignore comments from demos on website (#9043)
* hide type ignore comments

* add changeset

* replace #type

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-08-07 22:14:48 -07:00
aliabid94
4ba7b238e2
Improve plot guide, add double clicking to plots (#9064)
* changes

* add changeset

* chages

* changes

* changes

* changes

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-07 19:17:14 -07:00
Abubakar Abid
8b33393586
Fix show_progress in gr.Interface (#9053)
* fix progress

* test

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-07 10:12:04 -07:00
aliabid94
360350cfc4
Minor fixes (#9021)
* changes

* changes

* changes

* changes

* changes

* add changeset

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-07 09:20:51 -07:00
Abubakar Abid
0978de8104
Passes gr.Request if type hint is Request | None (#9011)
* changes

* fix for python 3.8, 3.9

* fix

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-07 08:33:22 -07:00
Abubakar Abid
38b3682c3a
Improvements to FRP client download and usage (#8968)
* wip

* add changeset

* sha256

* add changeset

* hash

* tunneling

* add changeset

* validate ip address

* format

* vendor in hash func

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-07 00:55:38 +00:00
Freddy Boulton
08b5159016
Some tweaks to is_in_or_equal (#9020)
* Add code

* file_explorer test

* dont use fastapi

* Add code

* Update requirements.txt

* Ci security tweaks (#9010)

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* Ci security tweaks (#9012)

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* :[

* add cursor styling (#9003)

* Add min/max-imize button to gr.Image and gr.Gallery (#8964)

* add max/min-imize and zoom in and out to image preview

* add full screen icon to gallery

* add stories

* add changeset

* use native full screen api

* remove zoom in/out

* add changeset

* tweaks

* remove zoom prop

* fix ui test

* add annotated image btns

* add changeset

* format

* ruff format

* fix test

* remove

* tweak

* fix test

* format

* amend bool check

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>

* Ci security tweaks (#9014)

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* :[

* asd

* asd (#9015)

* Ci security tweaks take seventy three (#9016)

* asd

* asd

* asd

* Ci security tweaks take seventy three (#9017)

* asd

* asd

* asd

* asd

* Ci security tweaks take seventy three (#9018)

* asd

* asd

* asd

* asd

* adsa

* asd

* Ci security tweaks take seventy three (#9019)

* asd

* asd

* asd

* asd

* adsa

* asd

* asd

* Website fixes for mobile  (#8857)

* better header for mobile

* add changeset

* nicer border

* style header

* better search overlay

* responsive changes

* more mobile responsiveness

* docs and guides mobile responsive

* formatting

* fix get started button

* fix header

* test without lite

* formatting

* secondary menu docs

* fix type overflow in paramtable

* playground header

* playground on mobile

* small changes

* formatting

* formatting

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* Ci security tweaks take seventy three (#9025)

* asd

* asd

* asd

* asd

* adsa

* asd

* asd

* asd

* Ci security tweaks take seventy three (#9026)

* asd

* asd

* asd

* asd

* adsa

* asd

* asd

* asd

* fix

* asd (#9027)

* fix (#9028)

* Ci statuses (#9030)

* fix

* asd

* Update tests

* add changeset

* Add code

* add changeset

* Comments

---------

Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-08-06 18:53:10 -04:00
Ali Abdalla
6584aace98
Website fixes for mobile (#8857)
* better header for mobile

* add changeset

* nicer border

* style header

* better search overlay

* responsive changes

* more mobile responsiveness

* docs and guides mobile responsive

* formatting

* fix get started button

* fix header

* test without lite

* formatting

* secondary menu docs

* fix type overflow in paramtable

* playground header

* playground on mobile

* small changes

* formatting

* formatting

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-05 21:20:24 -07:00
Hannah
bf6bbd971a
Add min/max-imize button to gr.Image and gr.Gallery (#8964)
* add max/min-imize and zoom in and out to image preview

* add full screen icon to gallery

* add stories

* add changeset

* use native full screen api

* remove zoom in/out

* add changeset

* tweaks

* remove zoom prop

* fix ui test

* add annotated image btns

* add changeset

* format

* ruff format

* fix test

* remove

* tweak

* fix test

* format

* amend bool check

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-08-05 23:45:14 +01:00
Freddy Boulton
4d8a473632
Refactor Chatinterface to use Chatbot instead of gr.State variables (#8847)
* add code

* add changeset

* fix

* fix multimodal case

* e2e test fix

* fix: wrong named param check for js client (#8820)

* fix: wrong named param check for js client

* rearrange type imports

* add changeset

* fix: workaround for undefined endpoint_info

---------

Co-authored-by: Hannah <hannahblair@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>

* trigger ci

* Add code

* Fix

* Add code

* code

* code'

* Add code

* Wait for upload

* fix tests

* trigger ci

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: JacobLinCool <jacoblincool@gmail.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-08-05 15:13:32 -04:00
Hannah
3feea64a65
Prevent overflow in Model3D (#8975)
* add overflow and radius css properties

* add changeset

* add changeset

* add changes to input

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-05 17:48:42 +01:00
pngwn
d30432e9c6
harden CI (#8965)
* test pr

* conditional

* conditional

* conditional

* conditional

* conditional

* changes

* changes

* add changeset

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-05 15:27:26 +01:00
St. HeMeow
d4c503a471
Type hint Correction (#8972)
* Type hint Correction

* add changeset

* typecheck

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2024-08-02 18:52:48 +00:00
aliabid94
2f89877ac1
Set content_disposition_type and media_type on downloaded files (#8967)
* changes

* add changeset

* changes

* add changeset

* add changeset

* changes

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-01 18:37:34 -07:00
Remigiusz Samborski
c68eefba6c
fix: httpx timeouts cause gradio to fail during launch (#8962)
* fix: httpx timeouts cause gradio to fail during launch

This has been fixed in https://github.com/gradio-app/gradio/pull/7707, but it seems it has been reintroduced during some other code changes/refactoring.

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-01 14:47:19 +00:00
Abubakar Abid
4ff91a3e65
Fixes some docstrings, particularly for the show_progress parameter (#8958)
* s

* add changeset

* fixes

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-31 20:08:18 -07:00
pngwn
008d84b042
chore: update versions (#8883)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-31 13:27:38 -07:00
evanscho
f7fbd2c237
Bumped websockets version limit (#8948)
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-31 20:07:21 +00:00
Lucain
7e997a85bb
Fix running local app with fake OAuth (#8950)
* Fix running local app with fake OAuth

* add changeset

* lint

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-31 13:02:21 -07:00
Hannah
1e16f67ba2
Fix check icon in gr.JSON and gr.Code (#8949)
* fix check icon

* fix check in gr.Code

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-31 12:53:12 -07:00
Hannah
5010e9579e
Add overflow: wrap to JSON to catch overflow in xs device widths (#8954)
* add overflow

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-31 12:52:11 -07:00
Hannah
600c97c807
Allow viewing JSON as list or dict with show_indices param (#8932)
* add line numbers and collapse + expand logic

* add story test and style tweaks

* add changeset

* allow expanding via preview

* story tweaks

* remove mobile/desktop story tests

* remove unused thing

* add mode param to view json as list

* add story

* add changeset

* add open param

* amend test

* * add cm-like theme colors
* prevent copy + pasting line numbers and toggle
* a11y tweaks

* remove mode as param and default to list view

* Revert "remove mode as param and default to list view"

This reverts commit 9051f15c5f.

* Update gradio/components/json_component.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* add changeset

* tweak

* fix nit

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-30 23:43:22 +00:00
Abubakar Abid
5f9b8d093a
Fix lazy caching (#8933)
* fix lazy

* add changeset

* fix

* changes

* hello

* fix test

* add new test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-30 16:14:15 -07:00
aliabid94
96d36d70ad
Restore plot label angles (#8947)
* changes

* add changeset

* Update gradio/components/native_plot.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Update gradio/components/native_plot.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Update gradio/components/native_plot.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-30 16:00:58 -07:00
Hannah
3539787ebb
Add line numbering and collapse/expand logic to gr.JSON (#8929)
* add line numbers and collapse + expand logic

* add story test and style tweaks

* add changeset

* allow expanding via preview

* story tweaks

* remove mobile/desktop story tests

* remove unused thing

* add open param

* amend test

* * add cm-like theme colors
* prevent copy + pasting line numbers and toggle
* a11y tweaks

* update lines on rerender

* fix test

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-30 23:58:03 +01:00
Freddy Boulton
8204425bfa
Fix Json component serialization bug (#8934)
* Add code

* add code

* add changeset

* Add code

* trigger ci

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-30 15:49:14 -04:00
aliabid94
9b42ba8f10
Update guides esp plots (#8907)
* changes

* changes

* revert changes

* changes

* add changeset

* notebooks script

* changes

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-07-29 22:08:51 -07:00
meg
de997e67c9
Adds ability to watermark videos via a watermark parameter in Video component (#8900)
* First pass at adding watermark to Video component

* add changeset

* Update video.py

Space.

* Adding demo files

* linting

* Automatically generated notebook generator

* lint

* Changing parentheses in check on whether conversion is needed

* Unimportant comment/spacing changes

* video

* Update gradio/components/video.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Update gradio/components/video.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Update video.py

Adding more details on watermark_file.

* Update gradio/components/video.py

Change in and/or statement.

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Updating handling of WASM.

* Add paren.

* Minor lint change: if instead of elif

* lint change: spacing

* tweaks

* fixes

* demo

* demos

* notebooks

* notebooks

* remove comments

* video

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-29 21:09:38 +00:00
Hannah
4b14ea860d
Allow use of file extensions in gr.File in iOS (#8905)
* process file extensions in ios

* tweak

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-29 19:24:36 +01:00
Hannah
4c2d37db84
Add background to gr.Code line numbers (#8931)
* fix background colour in gr.code

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-29 19:16:38 +01:00
Andrin Benz
223688b70a
Fix Could not resolve "virtual:component-loader" in gradio/utils package (#8927)
* add catch clause to fix not being able to use newest npm package versions

* format

* add changeset

* add changeset

---------

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-29 18:07:52 +01:00
pngwn
69f1e36f7d
fix typescript issue with custom components (#8926)
* fix ts issue with cc

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-29 17:25:36 +01:00
Dawood Khan
20444f9b56
Fix Chatbot Multimodal Examples (#8899)
* fix media

* add changeset

* fix image sizing

* fix sizes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-29 10:27:18 -04:00
Ali Abdalla
7c9fc9ebcc
Add docs for Rust client to website (#8908)
* add third party client docs

* formatting

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-26 12:58:57 -07:00
cswamy
70a0c56200
Added support for TokenClassificationPipeline (#8888)
* fix for 8628

* formatting update

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-24 13:08:15 -07:00
Abubakar Abid
f8ccb5e663
Make update_root_in_config atomic (#8867)
* root

* format

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-24 12:51:28 -07:00
Hannah
67c08bfb9e
Fix file uploading in iOS (#8879)
* use * for file/* in ios

* add changeset

* add changeset

* tweak

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-24 16:28:21 +01:00
valgai
ac132e3cbc
Support the use of custom authentication mechanism, timeouts, and other httpx parameters in Python Client (#8862)
* gradio Client now supports the use of custom authentication mechanism with httpx

* Fix formatting issues

* Replace specific parameter `httpx_auth` by a more general parameter `httpx_kwargs`.

* add changeset

* typing

* future

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-23 21:44:00 +00:00
Ali Abdalla
7f1a78c49e
Add confirmation dialogue if leaving playground (#8871)
* add dialogue

* remove

* add changeset

* add changeset

* share button logic

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-23 21:35:44 +00:00
pngwn
70b45f4587
chore: update versions (#8777)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-22 13:28:00 -07:00
pngwn
76c1759350
add space header (#8846)
* add space header

* format

* add changeset

* test

* fix

* fix

* fixy

* fixy

* fix demons

* silly me

* format

* format + fix

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-22 19:47:14 +00:00
JacobLinCool
5050b36221
fix: wrong named param check for js client (#8820)
* fix: wrong named param check for js client

* rearrange type imports

* add changeset

* fix: workaround for undefined endpoint_info

---------

Co-authored-by: Hannah <hannahblair@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>
2024-07-22 19:57:22 +01:00
Dawood Khan
2f630abf53
Chatbot Examples Scroll Fix (#8865)
* fix

* add changeset

* fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-22 11:27:24 -07:00
Hannah
16b820038d
Fix gr.Image height inconsistencies (#8852)
* * prevent source selection cut off
* add height:100% to image-container
* ensure elements are centered

* add changeset

* add changeset

* change cover to contain

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-22 11:27:06 -07:00
aliabid94
a238af4d68
Refactor plots to drop altair and use vega.js directly (#8807)
* changes

* add changeset

* changes

* changes

* changes

* add changeset

* changes

* add changeset

* changes

* add changeset

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* changes

* changes

* Update gradio/components/native_plot.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Update gradio/components/native_plot.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Update gradio/blocks.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* changes

* changes

* changes

* Update gradio/components/native_plot.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Update gradio/components/native_plot.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* changes

* changes

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-22 09:52:48 -07:00
Hannah
914b1935de
Add copy button to gr.Markdown (#8851)
* add copy button

* add changeset

* add changeset

* lint

* value tweak

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-22 12:39:20 +01:00
Abubakar Abid
5622331da7
Extend pyright to cover tests as well (#8856)
* add type to test

* ignore certain demos

* notebooks

* type test_video

* more typing

* more typing

* more typing

* add changeset

* more typing

* more

* more

* files

* ds

* ds

* plots

* audio
push

* annotated

* utils

* routes

* iface

* server

* restore

* external

* dep

* components

* chat interface

* fixes

* blocks

* blocks

* blocks

* blocks

* fixes

* fixes

* format

* fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-21 19:55:18 -07:00
Abubakar Abid
d1f044145a
Use covariant container types across the codebase and add typing to our demos (#8854)
* more typing

* add changeset

* tweaks

* more changes

* more fixes

* more changes

* more fixes

* more fixes

* delete

* add changeset

* notebooks

* restore

* restore

* format

* add changeset

* more typing fixes

* fixes

* change

* fixes

* fix

* format

* more fixes

* fixes

* fixes for python3.9

* demo

* fix

* fixes

* fix typo

* type

* formatting

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2024-07-19 18:34:34 -07:00
Ali Abdalla
38c2ad425a
Add website to contributing readme (#8842)
* remove empty readme

* add contributing

* add changeset

* add pnpm i

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-19 21:58:59 +00:00
Hannah
9ee6839f94
Change optionality of the data param in submit + predict (#8816)
* add initialiser to data

* tweak submit

* add changeset

* type fixes

* ruff lint

* fix test

* Revert "fix test"

This reverts commit 5d01b5c95b.

* Revert "ruff lint"

This reverts commit 2c8e518a75.

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-19 15:47:31 +01:00
Abubakar Abid
0d76169e46
upgrade pyright==1.1.372 (#8837)
* upgrade typing

* more fixes

* add stubs folder

* add changeset

* fix docstring

* docstring

* type

* fix tests

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-19 00:21:51 -07:00
Abubakar Abid
7e8c829aad
Add .input() events to gr.Audio and gr.Image (#8836)
* add input

* format

* add changeset

* add changeset

* add audio browser tests

* add browser tests

* notebooks

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-18 23:17:13 -07:00
Dawood Khan
3a81fb2578
Latex Rendering Fix (#8822)
* latex

* add changeset

* delimiters fix

* change

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-18 21:15:43 -04:00
pngwn
e75f2ca2da
Fix build for pre-release (#8832)
* Update vite.config.ts

* add changeset

* fix thing

* Fix website pre (#8833)

* fix website

* fix website pre

* cleanup condition

* cleanup condition again

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-18 11:25:50 +00:00
Ali Abdalla
b45d37f366
Fix param table rendering (#8825)
* fix

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-17 23:36:59 -07:00
Yuichiro Tachibana (Tsuchiya)
61bb5883a2
Remove Pydantic v2 patch from Lite (#8799)
* Remove Pydantic v2 patch as it's now natively provided by Pyodide>=0.26.1 (ref: https://github.com/pyodide/pyodide/pull/4500)

* add changeset

* add changeset

* Fix

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-18 10:39:40 +09:00
Michael
2cc813a287
Fix OS detection for cross-browser compatibility (#8784)
* chore: add .python-version to .gitignore

* fix(get_os): ensure compatibility across all browsers

* format

* chore: add ts ignore comment again

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-07-17 15:51:36 -07:00
Hannah
6073736651
Document FileData class in docs (#8757)
* expose class + add docs

* add filedata section

* add changeset

* * add example usage
* expose FileData in Python client

* add changeset

* format

* tweaks

* tweaks

* fix test

* lint

* ruff lint

* lint again

* revert test

* remove desc from schema

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-17 12:23:19 -07:00
Yuichiro Tachibana (Tsuchiya)
e36bab77e5
Refactoring loadPyodide typing (#8775)
* Refactoring loadPyodide typing

* add changeset

* Fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-17 12:18:47 -07:00
Yuichiro Tachibana (Tsuchiya)
2de9a97ae9
Refactoring <gradio-lite /> component making the code simpler and fixing a Playground mode bug (#8693) (#8818)
* Create <LiteIndex /> component that contains the initialization logic and manages <Index /> and <Playground />

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-17 12:17:11 -07:00
Ali Abdalla
7b049e0357
Fix DateTime docs (#8823)
* fix

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-17 19:15:45 +00:00
Ali Abdalla
cea3bf9900
Fix dependency loop with statustracker and markdown (#8821)
* fix loop

* add changeset

* add changeset

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-17 18:55:45 +00:00
pngwn
e1a404093c
Ensure all upload components have consistent upload regions. (#8803) 2024-07-17 17:37:25 +01:00
Abubakar Abid
34510db468
Allow HTML in alert modals (#8817)
* success

* add changeset

* add changeset

* link styling

* sanitize

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-17 08:33:14 -07:00
Abubakar Abid
7f41567e9c
Use constant-time comparison when checking user provided analytics key (#8809)
* constant-time comparison when comparing hashes

* add changeset

* add changeset

* use route utils

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-17 12:21:29 +00:00
Abubakar Abid
a3d23b43e7
Add loop parameters to gr.Audio and gr.Video (#8806)
* add loop

* changes

* add changeset

* audio player

* fix tests

* test audio

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-16 22:05:59 -07:00
Yuichiro Tachibana (Tsuchiya)
1d09925469
Fix Lite's <Playground /> (#8804)
* Fix Playground.svelte to use BaseCode instead of Code

* Remove unnecessary <div>s

* Fix typing error_display

* Make <Code>'s readonly prop reactive and fix <Playground /> to use it

* Fix to attach the event listener to a specific DOM element in the <Playground \> component

* Remove unused line

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-17 10:18:09 +09:00
Abubakar Abid
aa4b7a7192
Improve styling of parameter tables in the docs (#8618)
* param table

* add changeset

* add changeset

* format

* add changeset

* styling changes

* rename initialization to parameters

* event listener styling

* remove

* add changeset

* fixes

* format

* changes

* changes

* revert svx

* add changeset

* revert svx

* revert

* changes

* changes

* functiondoc

* undo

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-16 15:53:04 -07:00
pngwn
7b19474cb2
Ensure ImageEditor brush color can be updated with gr.update (#8802)
* fix brush

* add changeset

* fix brush

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-16 19:43:29 +01:00
Ali Abdalla
0b9e870f9c
Hide embedded components while loading (#8773)
* styling

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-15 19:12:34 +00:00
Abubakar Abid
4030f28af6
Allows updating the dataset of a gr.Examples (#8745)
* helpers

* add changeset

* changes

* add changeset

* changes

* tweak

* format

* example to docs

* add changeset

* fixes

* add tuple

* add changeset

* print

* format

* clean'

* clean

* format

* format backend

* fix backend tests

* format

* notebooks

* comment

* delete demo

* add changeset

* docstring

* docstring

* changes

* add changeset

* components

* changes

* changes

* format

* add test

* fix python test

* use deep_equal

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-15 09:19:52 -07:00
Yuichiro Tachibana (Tsuchiya)
2d179f647b
Set the default format of gr.Plot as png for Wasm mode (#8774)
* Set the default format of gr.Plot as png for Wasm mode

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-14 18:33:03 +09:00
pngwn
d51dd2ce17
chore: update versions (#8767)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-12 12:48:12 -07:00
pngwn
2b4636e75c
Fix width of assistant's chatbot bubble (#8766)
* fix width

* add changeset

* format

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-12 19:38:26 +00:00
pngwn
1b74e214b9
chore: update versions (#8663)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-12 11:54:28 -07:00
pngwn
26cdd0ffe0
Revert chatbot styling (#8758)
* fix

* fix

* add changeset

* add changeset

* tests

* Fix button panel (#8762)

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2024-07-12 18:35:08 +01:00
pngwn
078663a3a4
Fix issue with virtual module in custom components (#8761)
* fix bug

* add changeset

* fix really

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-12 18:34:41 +01:00
pngwn
c1ecfde50e
8394 df hidden items (#8763)
* fix bug

* fix

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-12 18:19:43 +01:00
Freddy Boulton
5e36144232
Add guides for msg format and llm agents (#8750)
* Add guides

* add changeset

* Add code

* Add code

* Add notebook

* rename msg_format to type

* Fix docs

* notebooks

* missing link

* Update guides

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-12 11:53:28 +00:00
Dawood Khan
d21d8ee0cf
Fixes Plotly is rendered smaller in a hidden gr.Tab (#8740)
* resize

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-11 19:11:03 -07:00
Yuichiro Tachibana (Tsuchiya)
077743c456
Refactoring <gradio-lite /> component making the code simpler and fixing a Playground mode bug (#8693)
* Create <LiteIndex /> component that contains the initialization logic and manages <Index /> and <Playground />

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-11 19:00:01 -07:00
aliabid94
1500b89e13
Allow app to fill width (#8651)
* changes

* add changeset

* changes

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-11 12:53:36 -07:00
Hannah
31a876d027
Fix Share to community button for images (#8737) 2024-07-11 18:15:53 +01:00
Dawood Khan
0482453fd5
Chatbot LaTeX Crash Fix (#8658)
* latex fix

* format

* add changeset

* fix demo (#8696)

* Better spacing for codeblocks on docs (#8686)

* styling for codeblocks

* add changeset

* formatting

* add changeset

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Add search to website (#8624)

* Update action.yml (#8702)

* Model3D point cloud and wireframe display modes (#8687)

* display modes

* add changeset

* test fixes

* lint

* Update gradio/components/model3d.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* solid

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Fix playground to display errors (#8689)

* Fix the Playground on the website to trigger run_code() and install() with debounce and to display errors

* Remove an unused function, make_full_screen()

* Format demo/hello_world/run.py

* Update notebook

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* GRADIO_ALLOWED_PATHS & GRADIO_BLOCKED_PATHS comma separated environme… (#8705)

* GRADIO_ALLOWED_PATHS & GRADIO_BLOCKED_PATHS comma separated environment variables

* GRADIO_ALLOWED_PATHS & GRADIO_BLOCKED_PATHS comma separated environment variables

* add changeset

* Document GRADIO_ALLOWED_PATHS and GRADIO_BLOCKED_PATHS

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Ensure JS client `status_callback` functionality works and improve status messages (#8699)

* * bind handle_space_success
* ensure status callbacks work correctly

* add changeset

* test fixes + refactor

* tweak

* test

* Revert "test"

This reverts commit db1afc40b4.

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* Documents auth in the guides, in the view API page, and also types the Blocks.config object  (#8720)

* auth docs

* changes

* add changeset

* add changeset

* add changeset

* type

* changes

* snippets

* import

* add changeset

* changes

* fix typing

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* remove on mount

* merge

* remove onmount

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
Co-authored-by: cocktailpeanut <121128867+cocktailpeanut@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-07-11 12:28:27 -04:00
Yuichiro Tachibana (Tsuchiya)
3a6142fa48
Lite load perf ci (#8222)
* Update Lite E2E test setup to measure the performance of the initial app loading

* [TMP] Run test-functional on this branch

* Update CI to read the perf result

* add changeset

* Comment the performance result

* [TMP] hardcode the PR number to test posting the comment

* Revert "[TMP] hardcode the PR number to test posting the comment"

This reverts commit 4270dac77c.

* Revert "Comment the performance result"

This reverts commit df4c29fcda.

* Add debug echo

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-11 08:30:05 -07:00
Hannah
1b5b5b0b43
Bind fetch and stream in JS client (#8714)
* bind `fetch` and `stream`

* add changeset

* add tests

* tweak

* fix test

* test

* tweak .close() logic

* add changeset

* format

* change fake word

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-11 14:35:56 +00:00
Abubakar Abid
ee497d5c3c
Perform CORS validation when the request has a cookie (#8743)
* Perform CORS validation when the request has a cookie

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-11 06:57:48 -07:00
Freddy Boulton
a9307c6452
Chatbot generating scroll and click fix (#8748) 2024-07-11 15:10:55 +02:00
pngwn
e834d302e4
ensure @gradio/client always returns the correct data (#8716)
* ensure data is alwat returned as expected

* add changeset

* update test data

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-11 13:15:10 +01:00
pngwn
a6b3c6ce4e
Ensure @gradio/client's submit iterator releases as expected (#8715)
* close the iterator when the prediction stream completes

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-11 12:01:08 +01:00
Freddy Boulton
740364e5ce
Add guide on best practices for ZeroGPU limits with the python client (#8656)
* Add guide

* typos

* add changeset

* add changeset

* styling and fix bad id

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2024-07-11 10:58:05 +02:00
aliabid94
e3c7079e38
gr.DateTime component (#8713)
* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* Update gradio/components/datetime.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* changes

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-10 20:55:45 -07:00
Abubakar Abid
b736c8db34
Refactor gr.ParamViewer to use HTML <details> and other tweaks (#8744)
* changes

* changes

* revert demo change

* add changeset

* changes

* format

* fixes

* param viewer

* update demo

* add changeset

* docstrings

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-10 17:58:28 -07:00
Abubakar Abid
fb0daf3730
Improvements to gr.Examples: adds events as attributes and documents, them, adds sample_labels, and visible properties (#8733)
* events

* examples

* add changeset

* format

* add changeset

* add changeset

* format

* changes

* Update gradio/components/dataset.py

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>

* Update gradio/helpers.py

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>

* add test

* Update test/test_helpers.py

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>

* changes

* format

* add to interface as well

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-07-10 16:35:36 -07:00
Freddy Boulton
d15ada9a1c
Fix multimodal textbox custom components (#8719)
* Add code

* add changeset

* Add code

* Update comment

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-10 13:09:08 +02:00
Freddy Boulton
4221290d84
Support Message API for chatbot and chatinterface (#8422)
* first commit

* Add code

* Tests + code

* lint

* Add code

* notebook

* add changeset

* type

* Add client test

* type

* Add code

* Chatbot type

* Add code

* test chatbot

* fix e2e test

* js tests

* Consolidate Error and Tool message. Allow Messages in postprocess

* Rename to messages

* fix tests

* notebook clean

* More tests and messages

* add changeset

* notebook

* client test

* Fix issues

* Chatbot docs

* add changeset

* Add image

* Add img tag

* Address comments

* Add code

* Revert chatinterface streaming change. Use title in metadata. Address pngwn comments

* Add code

* changelog highlight

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-10 11:08:06 +00:00
Abubakar Abid
936c7137a9
Documents auth in the guides, in the view API page, and also types the Blocks.config object (#8720)
* auth docs

* changes

* add changeset

* add changeset

* add changeset

* type

* changes

* snippets

* import

* add changeset

* changes

* fix typing

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-08 18:58:07 -07:00
Hannah
012da05287
Ensure JS client status_callback functionality works and improve status messages (#8699)
* * bind handle_space_success
* ensure status callbacks work correctly

* add changeset

* test fixes + refactor

* tweak

* test

* Revert "test"

This reverts commit db1afc40b4.

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-08 12:01:18 +01:00
cocktailpeanut
280a3f4afe
GRADIO_ALLOWED_PATHS & GRADIO_BLOCKED_PATHS comma separated environme… (#8705)
* GRADIO_ALLOWED_PATHS & GRADIO_BLOCKED_PATHS comma separated environment variables

* GRADIO_ALLOWED_PATHS & GRADIO_BLOCKED_PATHS comma separated environment variables

* add changeset

* Document GRADIO_ALLOWED_PATHS and GRADIO_BLOCKED_PATHS

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-05 21:55:11 +00:00
Yuichiro Tachibana (Tsuchiya)
edcd5748f6
Fix playground to display errors (#8689)
* Fix the Playground on the website to trigger run_code() and install() with debounce and to display errors

* Remove an unused function, make_full_screen()

* Format demo/hello_world/run.py

* Update notebook

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-05 16:37:27 +09:00
Dawood Khan
bc1d45d874
Model3D point cloud and wireframe display modes (#8687)
* display modes

* add changeset

* test fixes

* lint

* Update gradio/components/model3d.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* solid

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-04 14:06:41 -07:00
Ali Abdalla
ba59bb824f
Add search to website (#8624) 2024-07-03 21:57:11 -07:00
Ali Abdalla
64ac05b111
Better spacing for codeblocks on docs (#8686)
* styling for codeblocks

* add changeset

* formatting

* add changeset

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-03 16:46:23 -07:00
Paillat
a92c3e8015
Warn against Falsy credentials (#8683)
* fix(auth): Disallow Falsy credentials

Allowing Falsy auth credentials will cause problems later, for example in `hmac.compare_digest(input_password.encode(), correct_password.encode())` as NoneType has no `encode` method. Moreover, allowing empty passwords would make no sense from a security point of view.

* fix(auth): Produce warning instead of raising an error

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-02 14:46:38 -04:00
Abubakar Abid
c946c6f31a
Allow supplying custom gr.Chatbot with events to gr.ChatInterface (#8677)
* allow chatbot.like

* changes

* add changeset

* add to docs

* add to docs

* fix

* fix

* add changeset

* add changeset

* move to chatinterface docs

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-02 14:13:33 -04:00
Gina Wu
3b8238c2e2
Add c/cpp code support (#8665)
* Add c/cpp code support

* lint

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-01 11:44:50 +00:00
aliabid94
2943d6d688
Add Timer component (#8505)
* chagnes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* change

* add docs

* add changeset

* remove demo

* add changeset

* add changeset

* changes

* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* Update gradio/components/timer.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* changes

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-06-28 16:53:44 -07:00
pngwn
12f81fcaed
chore: update versions (#8622)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-28 12:39:54 -04:00
Dawood Khan
c34839293f
Multimodal textbox buttons alignment (#8637)
* button spacing

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-28 12:04:27 -04:00
Hannah
9b8840ab5f
Ensure chatbot messages are visible to screenreaders (#8631)
* fix aria label for message.type

* add changeset

* tweak

* improve aria-label for files

* copy tweak

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-28 12:03:44 -04:00
Hannah
4b6c8b1c00
ensure File objects are handled in JS client handle_file (#8649)
* amend `File` datatype logic

* add changeset

* amend test

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-28 16:41:44 +01:00
pngwn
3896398480
Ensure copy button on chatbot shows when appropriate (#8655)
* fix copy button

* add changeset

* fix boolean logic

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-28 12:26:37 +00:00
magical-l
9933e538c9
Update file_explorer.py for str type height (#8645)
* Update file_explorer.py for str type `height`

`height` can be str

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-27 05:40:23 +00:00
Abubakar Abid
ea6482cc89
remove chatbot_multimodal demo from gr.Chatbot documentation page (#8632)
* remove demo

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-26 12:17:55 -04:00
Freddy Boulton
c12f82a36d
Bugfix: Allow multiple files to be uploaded via multimodal textbox (#8608)
* Add code

* Add file_count parameter to MultimodalTextbox

* add changeset

* Update fresh-years-feel.md

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-26 12:14:25 -04:00
Ali Abdalla
4c6e4e0ba9
Fix CORS issues with Lite Component Demos (#8623)
* fix erros

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-25 22:36:58 -07:00
Abubakar Abid
b6fa6b543f
Add docs for .on(), .then(), and .success(), as well as the subclasses of gr.EventData (#8604)
* more helpers

* add changeset

* add changeset

* lint

* trigger list

* add example

* docstring

* dependency

* add changeset

* events

* document subclasses

* fix syntax

* event data svx

* add changeset

* selectdata

* lint

* key up data

* 2 more

* on

* other placeholders

* lint

* address reviews

* tweak

* Update js/_website/src/lib/templates/gradio/04_helpers/01_eventdata.svx

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-06-26 03:14:07 +00:00
pngwn
8d425ee777
chore: update versions (#8613)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-25 12:18:25 -04:00
pngwn
4cfb6eebf6
chore: update versions (#8523)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-25 11:54:46 -04:00
Freddy Boulton
9204d86ed4
Add guide on cleaning up state and file resources (#8610)
* WIP

* Add guide

* add changeset

* notebook

* No log in

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-25 11:52:35 -04:00
aliabid94
affce4cbd9
Fix resizer on altair (#8603)
* changes

* add changeset

* add changeset

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-25 11:09:38 -04:00
Deva Kumar Gajulamandyam
36b2af9a31
Changed gradio version check from print statement to warning (#8609)
* changed print statement to warning

* Updated warnings in single line

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-25 14:31:08 +00:00
pngwn
c7cd0a0e9a
Ensure chatbot background is consistent with other components (#8607) 2024-06-25 11:37:23 +01:00
Ali Abdalla
fe83e6445a
Small fix to guide styling (#8605) 2024-06-25 02:52:12 -07:00
Freddy Boulton
ca125b728a
Fix reload mode for jupyter notebook and stateful demos (#8599)
* Remove deprecated method

* add changeset

* Fix bug

* Update test

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-25 00:36:36 -04:00
aliabid94
65afffd34b
Fix multimodal chat look (#8590)
* changes

* add changeset

* changes

* changes

* changes

* changes

* add changeset

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-24 16:43:25 -07:00
Josh Wong
7289c4b036
Add credentials: include and Cookie header to prevent 401 error (#8600)
* Add credentials: include and Cookie header to prevent 401 error

* FIx formatting

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-24 23:42:03 +01:00
pngwn
530f8a0b05
chatbot component tweaks (#8594) 2024-06-24 21:41:06 +00:00
Abubakar Abid
d35c290aad
Adding more docs for using components in chatbot (#8593)
* adding more docs for components in chatbot

* add changeset

* add changeset

* add simple demo

* simple demo

* notebook

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-21 18:04:27 +00:00
pngwn
7fc7455553
support html in chatbot (#8555) 2024-06-21 09:17:25 +01:00
pngwn
900cf25256
Ensure frontend functions work when they don't return a value (#8521) 2024-06-21 09:17:10 +01:00
Abubakar Abid
34430b934d
Handle GIFs correct in gr.Image preprocessing (#8589)
* handle gifs correct in image preprocessing

* add changeset

* fix

* add test

* add test

* docstring

* add docs

* image

* revert

* change

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-20 23:25:42 +00:00
aliabid94
797621b81a
Improved plot rendering (#8580)
* changes

* add changeset

* add changeset

* add changeset

* changes

* changes

* restore altair

* changes

* changes

* changes

* changes

* changes

* changes

* Update twenty-jokes-argue.md

* changes

* chanegs

* changes

* changes

* changes

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-20 23:09:04 +00:00
Abubakar Abid
1e61644624
move deploy_space_action.yaml to correct location (#8588)
* move file to right location

* move file

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-20 16:34:38 -04:00
Abubakar Abid
bc5fccfeee
Allow gr.load to work inside gr.Blocks automatically (#8579)
* load-in-blocks

* allow gr.load inside gr.Blocks

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-20 12:39:58 -04:00
baojianting
a77877f62d
First time loading performance optimization (#8571)
* performance: add gradio_api_info

* format code

* fix ts check

* fix ts check

* add changeset

* add changeset

* format globals.d.ts

---------

Co-authored-by: jianting.bjt <jianting.bjt@alibaba-inc.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-06-20 09:38:40 +01:00
Abubakar Abid
a1c21cb69a
fix dataset update (#8581)
* fix dataset update

* revert'

* add changeset

* add test

* add changeset

* changes

* add template

* add changeset

* fix docstring

* test postprocessing

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-19 23:00:57 +00:00
Shruti Agarwal
2b0c1577b2
Added an optional height and overflow scrollbar for the Markdown Component (#8528)
* scrollable-markdown-changes-added

* made suggested changes

* added a new story in Storybook

* add changeset

* add changeset

* tweaks

* changes

* changes

* revert example change

* tweaks

* demo changes

* more tweaks

* formatting

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-19 14:07:21 -04:00
Sadra Barikbin
fd5aab10be
Remove duplicated code in routes.py (#8565)
* Update routes.py

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-19 15:39:10 +00:00
Shruti Agarwal
56af40f5e3
Fixes the favicon_path working error (#8573)
* fixes  error

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-19 11:29:59 -04:00
Ali Abdalla
ed82a6237e
Bring back embedded demos on component docs (#8557)
* add component demos

* formatting

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-18 23:59:43 -07:00
Yuichiro Tachibana (Tsuchiya)
6f99a028ed
Upgrade pyodide 0.26 (#8569)
* Update Pyodide to 0.26.0

* Update Pyodide to 0.26.1

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-18 15:38:00 +09:00