6976 Commits

Author SHA1 Message Date
Hannah
04b7d327ec
Allow drag and replace image in gr.Image and Multimodal textbox (#9031)
* allow dragging image over current image value in imageeditor

* add changeset

* add drag to image

* add changeset

* type fixes

* tweak

* tweak

* add test

* add changeset

* revert image editor changes (i.e. give up)

* add changeset

* add changeset

* tweak

* Ensure drag and drop functionality works in Multimodal textbox (#9125)

* allow uploading files via drag

* wrap tweak

* * fix input
* improve a11y
* fix thumbnail scrolling

* tweak

* add changeset

* add changeset

---------

Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-08-19 15:46:54 +01:00
pngwn
de1f7a2b89
Create test app for components / SSR testing. (#9138)
* test app

* test app

* add changeset

* private

* title

* add changeset

* format

* asd

* asd

* asd

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-19 11:00:03 +01:00
pngwn
523bc29b2e
Update action.yml (#9142) 2024-08-19 00:10:58 +01:00
Lucain
6e7d9e5b84
Deal with OAuth too many redirects (#8951)
* Deal with OAuth too many redirects

* add changeset

* Redirect to non-iframe view in case of redirect

* add changeset

* apply suggestions

* use constant for MAX_REDIRECTS

* lint

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-08-15 21:07:08 +00:00
Abubakar Abid
8a3e1e289e
Add more demos to deploy scripts (#9127)
* add demos

* tweak demo
2024-08-15 20:49:41 +00:00
Freddy Boulton
30b5d6f2b7
Fix chatinterface multimodal bug (#9119)
* Add test

* add changeset

* comments

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-15 14:50:32 +00:00
pngwn
e1c404da11
setup npm-previews of all packages (#9118)
* add workflow

* fix pkg jsons

* workflow name

* add changeset

* fix

* add changeset

* fix build command

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-15 12:56:17 +01:00
Ali Abdalla
474102a8b4
Better text styling on docs (#9108)
* margin and size

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-14 11:51:50 -07:00
Freddy Boulton
bbbd1f5ebe
Be able to set optimizeDeps options in gradio.config.js (#9091)
* Add code

* add changeset

* build

* Remove unused import

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-14 18:15:28 +00:00
pngwn
13010fdfd7
fix dev (#9115)
* fix asset locations

* fix changeset
2024-08-14 12:52:16 -04:00
pngwn
e1e7ad3add
fix version + pkg name (#9110)
* fix version + pkg name

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-14 15:43:01 +01:00
Freddy Boulton
cf02f7d785
Fix chatinterface e2e test (#9104)
* Refactor test

* comment

* Fix image

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-14 10:42:34 -04:00
pngwn
efdc3231a7
Initial SSR refactor (#9102)
* changes

* asd

* fix tests

* fix lint

* fix ts

* fix ts

* cleanup

* cleanup

* fix

* Apply suggestions from code review

Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>

* fix

* add changeset

* fix gitignore

* fix changeset

* fix lockfile

* format

* fix

* add changeset

* githunore

* kit bopilerplate

* add changeset

* fix website

* add changeset

---------

Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-14 15:17:36 +01:00
Yuichiro Tachibana (Tsuchiya)
f6b2b97d47
Initialize the client with the fake host for Lite server (#8935)
* Initialize the client with the fake host for Lite server

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-08-14 15:50:16 +09:00
pngwn
15a690fa96
fix workflow (#9100) 2024-08-13 16:59:49 +00:00
Hannah
87e3537342
Add height param to gr.JSON (#9023)
* add height param and styles

* use lines instead of height

* replace height with lines

* add param and add description to gr.code

* add title attr

* remove styling

* format

* fix test

* add changeset

* revert to height

* remove lines logic

* add changeset

* code param tweak

* remove redundant code

* tweak test

* revert onDestroy removal

* fix test

* tweak

* docstring

* height fix

---------

Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-08-13 09:49:34 +00:00
Abubakar Abid
60650d84b2
Reset Dataset page to 0 when samples change (#9093)
* checkout

* format

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-12 15:12:55 -07:00
pngwn
6e641e2133
CI dependency hardening (#9092) 2024-08-12 23:09:07 +01:00
Freddy Boulton
96f8ffa5ee
Set non-zero exit codes for custom component build and install commands when failures occur (#9088)
* Exit codes

* add changeset

* Fix text

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-12 15:09:52 -04:00
Freddy Boulton
508ac84bc2
Set orig_name in downloadbutton postprocess (#9089)
* Set orig_name in downloadbutton postprocess

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-12 15:04:33 -04:00
JackismyShephard
d6dc3846fd
Add more typing to event listeners (#9079)
* add more typing to event listeners

Add more specific typing for auth callable

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-12 11:53:47 -07:00
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
62ed369efa
Fix production website deploy action to only deploy from main (#9082)
* add not starts with

* switch to contains

* switch to equals
2024-08-11 21:03:45 +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>
@gradio/uploadbutton@0.6.17 @gradio/json@0.3.1 @gradio/video@0.10.2 @gradio/upload@0.12.2 @gradio/tootils@0.6.3 @gradio/textbox@0.6.10 @gradio/statustracker@0.7.4 @gradio/slider@0.4.11 @gradio/simpletextbox@0.2.11 @gradio/simpleimage@0.6.5 @gradio/simpledropdown@0.2.11 @gradio/radio@0.5.11 @gradio/plot@0.6.3 @gradio/paramviewer@0.4.20 @gradio/number@0.4.11 @gradio/nativeplot@0.3.0 @gradio/multimodaltextbox@0.5.5 @gradio/model3d@0.12.0 @gradio/markdown@0.9.2 @gradio/lite@4.41.0 @gradio/label@0.3.11 @gradio/dataframe@0.9.2 @gradio/annotatedimage@0.7.0 @gradio/highlightedtext@0.7.5 @gradio/html@0.3.4 @gradio/icons@0.7.0 @gradio/image@0.14.0 @gradio/imageeditor@0.9.0 @gradio/form@0.1.23 @gradio/fileexplorer@0.4.17 @gradio/file@0.9.2 @gradio/fallback@0.3.11 @gradio/dropdown@0.7.11 @gradio/downloadbutton@0.1.26 @gradio/datetime@0.1.2 @gradio/dataset@0.2.3 @gradio/gallery@0.12.0 @gradio/colorpicker@0.3.11 @gradio/code@0.8.2 @gradio/client@1.5.0 @gradio/checkboxgroup@0.5.11 @gradio/checkbox@0.3.11 @gradio/chatbot@0.12.4 @gradio/button@0.2.49 @gradio/box@0.1.23 @gradio/audio@0.13.2 @gradio/atoms@0.7.9 @gradio/accordion@0.3.21 @gradio/app@1.39.2 gradio@4.41.0 gradio_client@1.3.0 website@0.37.0
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
pngwn
6778b8353d
Fix website again again (#9063)
* run the website workflows

* run the website workflows

* asd

* asd
2024-08-07 20:51:55 +01:00
pngwn
e5407ae82e
Fix website again again (#9062)
* run the website workflows

* run the website workflows

* asd
2024-08-07 20:38:15 +01:00
pngwn
ac6f4d9e8e
Fix website again again (#9061)
* run the website workflows

* run the website workflows
2024-08-07 20:20:04 +01:00
pngwn
3b50d69872
run the website workflows (#9060) 2024-08-07 20:00:05 +01:00
pngwn
7a1e223c34
Ci website (#9058)
* tweaks

* more fix

* changes

* changes

* storybook fix
2024-08-07 19:16:53 +01:00
pngwn
f4cb8cf51c
Ci website (#9057)
* tweaks

* more fix

* changes

* changes
2024-08-07 18:54:10 +01:00
pngwn
8971bfde53
Ci website (#9056)
* tweaks

* more fix

* changes
2024-08-07 18:41:54 +01:00
pngwn
a58b6ac1af
CI tweaks + further security hardening (#9055)
* tweaks

* more fix
2024-08-07 18:27:01 +01: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
Hannah
492d422df6
Amend show_label in gr.HTML to show optional label (#9024)
* amend show_label param and add label to component

* fix test

* fix test

* fix test
2024-08-07 09:19:56 -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
pngwn
252f03ad4e
Ci docs (#9047)
* update docs

* fix things and add cos

* asd

* asd

* asd

* asd

* tweaks

* tweaks
2024-08-07 10:50:18 +01:00
pngwn
6ace52fb16
Ci docs (#9046)
* update docs

* fix things and add cos

* asd

* asd

* asd

* asd

* tweaks
2024-08-07 10:39:55 +01: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
pngwn
c12f600a98
Ci docs (#9041)
* update docs

* fix things and add cos

* asd

* asd

* asd

* asd
2024-08-06 22:06:16 +01:00
pngwn
5403c58b61
Ci docs (#9040)
* update docs

* fix things and add cos

* asd

* asd

* asd
2024-08-06 21:57:00 +01:00