2
0
mirror of https://github.com/gradio-app/gradio.git synced 2025-03-31 12:20:26 +08:00

6315 Commits

Author SHA1 Message Date
Davi Rodrigues
98a2719bfb
Fix z-index layer of orange generating border ()
* fix z-index layer of generating border

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-21 13:59:39 -08:00
renovate[bot]
09de02a9b2
chore(deps): update dependency globals to v14 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2024-02-20 19:01:41 -08:00
Abubakar Abid
ddd4d3e4d3
Reverts the revert that dropped changes from 2 PRs ()
* Revert "Revert "changes""

This reverts commit 032435368d8d8db7439da5ffa966987f80c58db3.

* patch
2024-02-20 18:36:10 -08:00
Ali Abid
254c7dc9c3 Revert "changes"
This reverts commit 96ab4e5314561411b4580ba55b4cfa5473ae03be.
2024-02-20 16:21:47 -06:00
Ali Abid
2de756c69d Revert "changes"
This reverts commit 6a936330543c1b989ac1c957b2572dcd44e9ab7f.
2024-02-20 16:21:39 -06:00
Ali Abid
032435368d Revert "changes"
This reverts commit 19dd2218dcacfb55cf55979d06f4c9880c15e856, reversing
changes made to 6a936330543c1b989ac1c957b2572dcd44e9ab7f.
2024-02-20 16:21:27 -06:00
Ali Abid
19dd2218dc changes 2024-02-20 15:54:15 -06:00
Ali Abid
6a93633054 changes 2024-02-20 15:53:56 -06:00
Ali Abid
96ab4e5314 changes 2024-02-20 15:52:57 -06:00
pngwn
ef85f336cf
ensure Dataframe headers are aligned with content when scrolling () 2024-02-19 21:59:56 +00:00
Aarni Koskela
17b6840887
Enable Ruff S101 ()
* Update to Ruff 0.2.2

* Enable Ruff S101; don't use asserts in runtime code, or AssertionErrors for flow control
2024-02-19 13:29:20 -08:00
Garry Dolley
54ec29ad1e
Fixed typo in example: client -> app ()
I was trying to run this example, but it failed.  predict() is a method of the app object, not client.  Fixed!
2024-02-18 23:11:49 +00:00
Ikko Eltociear Ashimine
1dbaa53109
Update ci.md ()
targetting -> targeting
2024-02-17 09:35:29 -08:00
Abubakar Abid
b7a97f29b8
Update httpx to httpx>=0.24.1 in requirements.txt ()
* update httpx requirement

* add changeset

* add to client

* add changeset

* fix version

* reorder

* test

* try force reinstall

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-16 15:43:01 -08:00
Abubakar Abid
06b30ce277
More CI stuff: remove force install ()
* update httpx requirement

* add changeset

* add to client

* add changeset

* fix version

* reorder

* test

* try force reinstall

* change

* reorder action

* remove force

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-16 15:33:20 -08:00
Abubakar Abid
a4c307bc2c
Reorder action ()
* update httpx requirement

* add changeset

* add to client

* add changeset

* fix version

* reorder

* test

* try force reinstall

* change

* reorder action

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-16 15:27:33 -08:00
Abubakar Abid
b5bee49969
fix requirements () 2024-02-16 13:09:29 -08:00
pngwn
1e5e787999
chore: update versions ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@gradio/accordion@0.3.3 @gradio/annotatedimage@0.5.2 @gradio/app@1.25.1 @gradio/atoms@0.5.3 @gradio/audio@0.9.2 @gradio/box@0.1.10 @gradio/button@0.2.22 @gradio/chatbot@0.7.2 @gradio/checkbox@0.2.10 @gradio/checkboxgroup@0.4.4 @gradio/code@0.5.2 @gradio/colorpicker@0.2.10 @gradio/dataframe@0.6.3 @gradio/dataset@0.1.22 @gradio/dropdown@0.6.1 @gradio/fallback@0.2.10 @gradio/file@0.5.2 @gradio/fileexplorer@0.3.22 @gradio/form@0.1.10 @gradio/gallery@0.7.2 @gradio/highlightedtext@0.4.10 @gradio/html@0.1.10 @gradio/icons@0.3.3 @gradio/image@0.9.2 @gradio/imageeditor@0.4.2 @gradio/json@0.1.10 @gradio/label@0.2.10 @gradio/markdown@0.6.4 @gradio/model3d@0.8.1 @gradio/number@0.3.10 @gradio/paramviewer@0.4.3 @gradio/plot@0.3.2 @gradio/radio@0.4.4 @gradio/simpledropdown@0.1.10 @gradio/simpleimage@0.3.2 @gradio/simpletextbox@0.1.10 @gradio/slider@0.2.10 @gradio/statustracker@0.4.7 @gradio/textbox@0.4.11 @gradio/tootils@0.2.2 @gradio/upload@0.7.4 @gradio/uploadbutton@0.4.7 @gradio/video@0.6.2 gradio@4.19.1 gradio_test@0.3.7 website@0.23.3
2024-02-16 12:28:13 -08:00
Abubakar Abid
f16d03dfba fix patch 2024-02-16 11:26:43 -08:00
Hannah
f191786791
Improve responsiveness of gr.Audio() controls ()
* improve audio container in mobile

* check for denied device access

* add changeset

* add changeset

* tweak controls placements

* add changeset

* add viewport modes to test

* add changeset

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-02-16 10:57:12 -08:00
Abubakar Abid
3e4e680a52
Fixes to the .key_up() method to make it usable for a dynamic dropdown autocomplete ()
* fixes

* changes

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-02-16 10:21:32 -08:00
Abubakar Abid
ba747adb87
Make fix in (Block /file= filepaths that could expose credentials on Windows) more general ()
* test routes

* chagne

* add changeset

* add changeset

* type fixes

* fix typing issues

* typed dict

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-16 18:09:31 +00:00
aliabid94
f52cab634b
Dispatch change event for file explorer ()
* changes

* add changeset

* changes

* changes

* fix test reqs in functional tests

* fix notebooks

* fix notebooks

* fix test flake

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-02-16 12:03:10 -06:00
pngwn
805a5136a1
fix test reqs in functional tests () 2024-02-16 17:27:07 +00:00
pngwn
b8f534ed02
fix () 2024-02-16 15:45:32 +00:00
pngwn
612fa6325c
document CI ()
* document CI

* update documentation note about immortality of non-main documentation in S3

* Apply suggestions from code review

Co-authored-by: Aarni Koskela <akx@iki.fi>

* technical stuff

* add more stuff

* fix

* Update testing-guidelines/ci.md

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

* Apply suggestions from code review

Co-authored-by: Aarni Koskela <akx@iki.fi>

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: Aarni Koskela <akx@iki.fi>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-16 15:24:38 +00:00
Abubakar Abid
4faf8a7e86
Block /file= filepaths that could expose credentials on Windows ()
* fix for windowss

* path

* add changeset

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-15 15:48:06 -08:00
Freddy Boulton
c88290d90a
WIP: Optimize /file route ()
* Improve File route

* file route fix

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-15 21:50:13 +00:00
renovate[bot]
a6371bbcae
chore(deps): update dorny/paths-filter action to v3 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-15 16:04:27 -05:00
Abubakar Abid
e329f1fd38
Prevent timing attacks to guess Gradio passwords ()
* secure timing

* add changeset

* format

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-15 12:59:08 -08:00
Hannah
6b8a7e5d36
Ensure gr.Dropdown can have an empty initial value ()
* ensure dropdown can have empty value

* add changeset

* add changeset

* Add story

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-15 18:24:02 +01:00
Danil
89450c6a8b
Updated translation for Russian () 2024-02-15 07:22:46 -08:00
Ari Roffe
aa0d98cdc7
Update 02_controlling-layout.md () 2024-02-15 15:50:42 +01:00
Freddy Boulton
fb1f6befad
Run pre/post processing in threadpool ()
* Add code

* Add code

* Add code

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-14 19:51:58 -05:00
pngwn
7b84bc4f05
chore: update versions ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@gradio/accordion@0.3.2 @gradio/annotatedimage@0.5.1 @gradio/app@1.25.0 @gradio/atoms@0.5.2 @gradio/audio@0.9.1 @gradio/box@0.1.9 @gradio/button@0.2.21 @gradio/chatbot@0.7.1 @gradio/checkbox@0.2.9 @gradio/checkboxgroup@0.4.3 @gradio/client@0.12.1 @gradio/code@0.5.1 @gradio/colorpicker@0.2.9 @gradio/dataframe@0.6.2 @gradio/dataset@0.1.21 @gradio/dropdown@0.6.0 @gradio/fallback@0.2.9 @gradio/file@0.5.1 @gradio/fileexplorer@0.3.21 @gradio/form@0.1.9 @gradio/gallery@0.7.1 @gradio/highlightedtext@0.4.9 @gradio/html@0.1.9 @gradio/image@0.9.1 @gradio/imageeditor@0.4.1 @gradio/json@0.1.9 @gradio/label@0.2.9 @gradio/markdown@0.6.3 @gradio/model3d@0.8.0 @gradio/number@0.3.9 @gradio/paramviewer@0.4.2 @gradio/plot@0.3.1 @gradio/radio@0.4.3 @gradio/simpledropdown@0.1.9 @gradio/simpleimage@0.3.1 @gradio/simpletextbox@0.1.9 @gradio/slider@0.2.9 @gradio/statustracker@0.4.6 @gradio/tabitem@0.2.3 @gradio/tabs@0.2.3 @gradio/textbox@0.4.10 @gradio/tootils@0.2.1 @gradio/upload@0.7.3 @gradio/uploadbutton@0.4.6 @gradio/utils@0.3.0 @gradio/video@0.6.1 gradio@4.19.0 gradio_test@0.3.6 website@0.23.2
2024-02-14 14:17:50 -08:00
aliabid94
314ccfa781
Fix File Explorer interactivity ()
* changes

* add changeset

* Update gradio/components/file_explorer.py

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

* revert file

* add changeset

---------

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-02-14 14:44:16 -06:00
Dylan Ebert
3e886d8f0a
Model3D Gaussian Splatting ()
* add gsplat dependency

add gsplat implementation

run formatting

move example .splat and .ply to url

add changeset

dispose of renderer on unmount

notebook

* dynamically load canvas components
2024-02-14 19:10:52 +00:00
Abubakar Abid
4ab399f40a
Allow config to include non-pickle-able values ()
* fixes

* lint

* add changeset

* route utils

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-14 17:43:41 +00:00
pngwn
c2dfc592a4
remove static while pending behaviour ()
* remove static while pending behaviour

* add changeset

* fix notebooks

* add changeset

* cleanup unused code + fix test

* fix notebooks

* oops

* re-add check

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-14 16:15:16 +00:00
Abubakar Abid
32b317f24e
Set root correctly for Gradio apps that are deployed behind reverse proxies ()
* testing

* add changeset

* test

* backend

* fix

* add unit tests

* testing

* remove check

* add changeset

* trying something

* add changeset

* override

* add changeset

* fix

* fix

* clean

* lint

* route utils

* add changeset

* changes

* add changeset

* test

* revert testing

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-14 16:14:02 +00:00
Abubakar Abid
065c5b163c
Add .key_up event listener to gr.Dropdown() ()
* dropdown choice bug

* add changeset

* add changeset

* changes

* add changeset

* format

* key down:

* change

* change

* format

* add KeyDownData

* changes

* add demo

* notebook

* add changeset

* key up

* notebook

* changes

* Delete .changeset/shaggy-hairs-peel.md

* Delete .changeset/tasty-spies-spend.md

* revert changeset deletion

* change

* fix unit test

* type disable

* fix

* cset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-13 17:14:07 -08:00
aliabid94
65437ce832
Improve File Explorer performance ()
* changes

* add changeset

* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* Update gradio/components/file_explorer.py

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

* Update gradio/components/file_explorer.py

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

* Update demo/file_explorer_component_events/run.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-02-13 16:51:47 -06:00
Abubakar Abid
547517b74e
Small PR to move generate_notebooks.py to scripts folder ()
* move generate_notebooks.py to scripts folder

* generate notebooks

* final? fix
2024-02-13 09:05:19 -08:00
Abubakar Abid
dff410955e
Retain dropdown value if choices have been changed ()
* dropdown choice bug

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-12 15:52:54 -08:00
Hannah
46b45683e1
Allow applying @media, @keyframes and @import in custom CSS ()
* allow @media and @keyframes in custom CSS

* add changeset

* demo tweak

* formatting

* fix

* tweak

* add .dark test

* formatting

* add font-face test

* support @import statements

* add changeset

* tweak

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-13 00:39:30 +01:00
Abubakar Abid
fa8225d24d
Use updated component in postprocess() ()
* component update

* add changeset

* add test

* lint

* refactor

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-12 22:05:31 +00:00
renovate[bot]
5b1ab3727c
chore(deps): update typescript-eslint monorepo to v7 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-12 13:47:02 -08:00
YuryYakhno
b5c74ffadb
Fix HTTPX package crash for some values of "article" parameter in the interface () 2024-02-12 13:44:08 -08:00
Ari Roffe
10951105b8
Upgrade from numpy's Legacy Random Generator to Random Generator ()
* Update run.py

* replace all np.random.random with new generator code

* notebooks

---------

Co-authored-by: aroffe99 <ari.roffe@morningstar.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-12 10:20:46 -08:00
Ari Roffe
0dccf825c4
Add step parameter to slider ()
* Add step parameter to slider

* fix demos

* changes

* tweaks to demo

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-12 10:06:46 -08:00