2
0
mirror of https://github.com/gradio-app/gradio.git synced 2025-01-12 10:34:32 +08:00
Commit Graph

7012 Commits

Author SHA1 Message Date
Julien Chaumond
9f0fe392c9
small fixes () 2024-09-13 10:07:15 -04:00
Gradio PR Bot
81a1132d30
chore: update versions ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-10 14:38:52 -07:00
Freddy Boulton
8f8e1c6a0b
Fix multiple trigger bug when function has js ()
* add code

* add changeset

* lint

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-09-10 13:18:31 -07:00
aliabid94
ac2c015bd8
Fileformat whitelist ()
* changes

* add changeset

* Update routes.py

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-09-10 18:55:12 +00:00
Freddy Boulton
ecf9137762
Add root_url to components created by gr.render ()
* Fix bug

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-09-10 11:24:40 -04:00
Freddy Boulton
fb5845c353
Separate starlette.Request from PredictBody. Only set in new PredictBodyInternal object ()
* use custom pydantic type annotatio

* add changeset

* Add code

* add changeset

* rework

* dont use arbitrary_types_allowed

* add changeset

* fix test

* revert path change

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-09-10 11:07:35 -04:00
aliabid94
8362a10a7e
Fix scrollbars everywhere ()
* changes

* add changeset

* scroll fix

* remove .json css, adjust scroll height to account for label

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-09-09 23:23:59 -07:00
Tayfun Sen
278af1995b
Update docs to use new Image init () 2024-09-09 22:45:12 -07:00
Ikko Eltociear Ashimine
bcb3a2b9a0
chore: update error.svx ()
* chore: update error.svx

occured -> occurred

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-09-09 11:26:30 -04:00
Gradio PR Bot
b635a31714
chore: update versions ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-06 09:10:25 +08:00
Abubakar Abid
d9c4c8606a
Pin fastapi<0.113.0 in requirements.txt ()
* fastapi requirement

* add changeset

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-09-06 00:12:01 +00:00
Smirking Kitsune
d0e93d70e8
Fix for create_or_modify_pyi read_text Windows Issue in component_meta.py ()
* Fix for create_or_modify_pyi read_text in component_meta.py

In some environments the `read_text()` call in `create_or_modify_pyi` will not use expected encoding when reading the `source_file`. In Unix environments (and presumably MacOS though I have not tested), this will default to use the 'utf-8' encoding, which is what the `source_file` are encoded in. In Windows, it seems to default to a different encoding when 'utf-8' should be selected.

* 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-09-02 17:00:47 +00:00
pngwn
3817d82f09
disable cache ()
* disable cache

* disable cache
2024-09-01 23:58:47 +08:00
pngwn
5bf00b7524
make all component SSR compatible ()
* asd

* fixes

* make all components ssr compatible

* remove files

* add changeset

* add changeset

* review

* format

* clean

* address comments

* tweaks utils

* add changeset

* fix plot and audio

* format

* fix nativeplot

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-31 06:19:51 +00:00
SK
5f2e047c2c
Add a 'None' option to the gradio.Image component to disable image_m… ()
* Add a 'None' option to the gradio.Image component to disable image_mode conversion behavior

* Set None option to None Keyword

* add changeset

* changes

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-08-30 21:54:11 +00:00
Ali Abdalla
284fafb215
Fix pr previews cloudflare ()
* tet

* add changeset

* fix branch to preview

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-29 02:22:45 +00:00
Ali Abdalla
5878fb189c
correct path () 2024-08-29 01:42:26 +00:00
Ali Abdalla
bdbcf7b0e3
Cloudflare migration ()
* cloudflare packages

* cloudflare github action

* remove comment

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-28 18:07:38 -07:00
WH-Yoshi
2daf3d10f5
Adding maxlength attribute handling of textarea and input HTML element for the gr.TextBox() component via a max_length parameter ()
* Testing - NOT SURE

* changed max_length name

* Finished adding max_length handling

* Changed Readme

* add changeset

* Update test_textbox.py

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-08-27 23:42:05 +00:00
Freddy Boulton
ab142ee13d
Fix serialization error in curl api ()
* Fix code

* add changeset

* Fix code

* fix

* add another test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-08-27 18:49:36 -04:00
pngwn
4a85559219
Fic install deps again ()
* always install pnpm

* clean upo
2024-08-22 20:10:09 +01:00
pngwn
28136bbda7
fix install () 2024-08-22 19:03:36 +01:00
pngwn
2b6cbf2590
Fix published package exports ()
* rename

* save patch

* fix everything

* format

* rm file

* fix stuff

* tweaks

* tweaks

* tweaks

* tweaks

* tweaks

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* fix

* Fix scripts/run_lite.sh and scripts/build_lite.sh ()

* fixes

* fixes

* asd

* asd

* asd

* review comments

* fiux types

* fiux types

* make fileexpolorer public

* format

* lint

* lint

---------

Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
2024-08-22 16:38:45 +00:00
pngwn
c725c04b4e
add command to fe install deps ()
* add command to fe install deps

* tweak
2024-08-22 12:43:22 +01:00
Ali Abdalla
8f5a8950c9
Fix native plot lite demos ()
* add demos

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-21 18:40:46 -07:00
Gradio PR Bot
fac5a7fafe
chore: update versions ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-21 11:35:46 -07:00
Dawood Khan
173c7b8624
Chatbot Image size and list fixes ()
* fixes

* add changeset

* stor

* radius

* max height

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-21 13:43:56 -04:00
Hannah
ba6322ec2b
Fix image height content fit ()
* fix image height content fit

* add changeset

* use `scale-down` instead of `contain`

* add changeset

* fix spacing

* apply image uploader styling to image preview

* Fix image/shared/ImagePreview style

* Fix

* Remove unnecessary styles from .image-frame

* Revert prev for the fullscreen mode

* Add stories

* fix python test

* move story files, fix python tests

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
2024-08-21 18:41:40 +01:00
pngwn
4375f2e28a
tweak () 2024-08-21 18:32:10 +01:00
Freddy Boulton
39ee02523a
Set python version in CI cache key ()
* Set python version in CI cache key

* restore key
2024-08-21 12:25:37 -04:00
Hannah
41d5ab987b
Add placeholder param to Image and ImageEditor to replace upload image text () 2024-08-21 01:22:17 +02:00
Abubakar Abid
747013bbac
Allow accessing the entire row of selected values in gr.DataFrame ()
* s

* changes

* docstring

* add changeset

* format

* typing

* revert

* add changeset

* changes

* add changeset

* add changeset

* js

* add changeset

* remove col value

* lint

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-20 21:08:29 +00:00
aliabid94
f1ef94a435
Open media type files in browser ()
* changes

* add changeset

* changes

* add changeset

* changes

* changes

* 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-20 11:31:13 -07:00
Freddy Boulton
675b50b2e5
Use python 3.10 () 2024-08-20 13:52:53 -04:00
pngwn
c41fc7021c
Update previews-build.yml () 2024-08-20 10:39:59 +01:00
Abubakar Abid
8715f10339
Allow gr.Request to work with ZeroGPU ()
* pickleable

* add test

* routes

* add changeset

* one mroe test

* format

* rename test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-19 15:02:28 -07:00
Hannah
04b7d327ec
Allow drag and replace image in gr.Image and Multimodal textbox ()
* 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 ()

* 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. ()
* 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 () 2024-08-19 00:10:58 +01:00
Lucain
6e7d9e5b84
Deal with OAuth too many redirects ()
* 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 ()
* add demos

* tweak demo
2024-08-15 20:49:41 +00:00
Freddy Boulton
30b5d6f2b7
Fix chatinterface multimodal bug ()
* 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 ()
* 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 ()
* 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 ()
* 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 ()
* fix asset locations

* fix changeset
2024-08-14 12:52:16 -04:00
pngwn
e1e7ad3add
fix version + pkg name ()
* 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 ()
* 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 ()
* 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 ()
* 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