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

6362 Commits

Author SHA1 Message Date
Dawood Khan
8181695e70
image upload fix ()
* image upload fix

* remove

* add changeset

* valid mimetype fix

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-06 09:00:49 -08:00
pngwn
3d270d43f9
chore: update versions ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@gradio/annotatedimage@0.5.4 @gradio/app@1.26.0 @gradio/audio@0.9.4 @gradio/button@0.2.23 @gradio/chatbot@0.7.4 @gradio/client@0.12.2 @gradio/code@0.5.4 @gradio/dataframe@0.6.5 @gradio/dataset@0.1.23 @gradio/downloadbutton@0.1.0 @gradio/dropdown@0.6.3 @gradio/file@0.5.4 @gradio/fileexplorer@0.3.24 @gradio/gallery@0.8.0 @gradio/image@0.9.4 @gradio/imageeditor@0.4.4 @gradio/lite@4.14.2 @gradio/model3d@0.8.3 @gradio/preview@0.7.1 @gradio/simpleimage@0.3.4 @gradio/tootils@0.2.4 @gradio/upload@0.7.5 @gradio/uploadbutton@0.5.0 @gradio/video@0.6.4 @gradio/wasm@0.7.0 gradio@4.20.0 gradio_client@0.11.0 website@0.24.0
2024-03-05 16:54:36 -08:00
Abubakar Abid
45316dafd4
fix flaky python tests ()
* fix flaky python tests

* fix
2024-03-05 16:34:24 -08:00
Abubakar Abid
355ed666d9
Fix the root_url logic for streaming files ()
* fix

* add changeset

* ignore

* add changeset

* changes

* changes

* linting

* demo

* changes

* blocks

* add changeset

* diff

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-05 15:21:45 -08:00
Dawood Khan
e340894b1c
Quick fix: custom dropdown value ()
* fix

* add changeset

* fix

* revert

* add test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-05 15:21:30 -08:00
Dawood Khan
26356a623c
Fixes: Invalid file_type breaks drag and drop ()
* file type fix

* add changeset

* pdf test

* format

* test fixes

* file test fix

* file path fix

* new test

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-03-05 16:52:22 -05:00
Abubakar Abid
4d5789e905
Allow mounted Gradio apps to work with external / arbitrary authentication providers ()
* add parameter

* format

* add changeset

* docstrings

* changes

* changes

* docs

* mark flaky

* test

* docs

* docs

* push

* docs

* Update guides/01_getting-started/03_sharing-your-app.md

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

* fix typecheck

* error

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-03-05 12:41:39 -08:00
Hannah
f26aba00a7
Prevent audio speeding up when trimming ()
* fix trim region background colour and change showRedo -> show_redo

* tweak audio sampling logic

* add changeset

* add trim_region_color to py docs

* formatting

* use trim_region_color for trim border

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-05 20:10:10 +00:00
Ali Abdalla
82263ed365
add client wheel () 2024-03-05 11:00:18 -08:00
Yuichiro Tachibana (Tsuchiya)
9c6de6d850
Upgrade Pyodide to 0.25.0 ()
* Upgrade Pyodide to 0.25.0

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-05 10:33:56 -08:00
renovate[bot]
0eea27a984
chore(deps): update dependency stylus to ^0.63.0 ()
* chore(deps): update dependency stylus to ^0.63.0

* add changeset

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-05 10:25:31 -08:00
Abubakar Abid
d3384cb926
Prevent additional paths that can trigger credential leakage on Windows ()
* format

* add changeset

* docstring

* fix

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-05 10:23:33 -08:00
aliabid94
375bfd28d2
Support simplified event api for event only updates ()
* changes

* add changeset

* changes

* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* chanegs

* 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-03-05 09:06:53 +00:00
Freddy Boulton
a57e34ef87
Add delete_cache parameter to gr.Blocks to delete files created by app on shutdown ()
* Add code

* add changeset

* Add code

* trigger ci

* Add schedule

* Fix implementation

* Fix test

* Address comments

* add changeset

* handle examples

* Update guides/01_getting-started/03_sharing-your-app.md

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

* Fix code

* Fix code

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-03-05 01:51:02 +00:00
MMP0
3645da5f1e
Fix incorrect relative mouse coordinates for Gallery preview overlay ()
* Fix incorrect relative mouse coordinates for `Gallery` preview overlay

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-04 23:48:22 +00:00
Abubakar Abid
fc4c2dbd99
Allow Python Client to upload/download files when connecting to Gradio apps with auth enabled ()
* client

* fix auth client

* add changeset

* fix test

* fix test

* fixes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-04 08:07:33 -08:00
Abubakar Abid
1c22123268
Fixes method to resolve the root URLs ()
* fix

* fix

* add changeset

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-04 07:52:49 -08:00
renovate[bot]
3940490fc0
chore(deps): update dependency svelte-hmr to ^0.16.0 ()
* chore(deps): update dependency svelte-hmr to ^0.16.0

* add changeset

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-03-04 15:11:12 +00:00
pngwn
ea984dea51
ensure lite build doesn't wipe out core build () 2024-03-04 15:01:37 +00:00
pngwn
fc04eed704
fix () 2024-03-04 14:31:47 +00:00
pngwn
b52997635a
fix ci () 2024-03-04 14:20:30 +00:00
renovate[bot]
4b0d589330
chore(deps): update all non-major dependencies ()
* chore(deps): update all non-major dependencies

* add changeset

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-03-04 14:04:14 +00:00
pngwn
561579d9b7
fix-tests ()
* fix-tests

* [tmp] Comment-out

* Fix the URL constructor calls in `resolve_wasm_src()`, `should_proxy_wasm_src()`, and `<DownloadLink />` to handle relative URLs

* Remove a circular dependency between lite/index.ts and lite/custom-element/index.ts to solve a bug that the dev app is mounted twice sometimes

* Fix js/app/test/image_component_events.spec.ts

* Set the `testIgnore` in `.config/playwright.config.js`

* Fix the Lite dev mode only to create an app and expose the controller for Playwright, without editors etc.

* add changeset

* Set the mocked ruff version as 0.2.2

* Extend timeout

* Fix to use the built lite files instead of the dev server

* add changeset

* comment out failed tests

* Revert "comment out failed tests"

This reverts commit 3580d7988714f49a21e221fe230b26ee86b66a68.

* Fix the Gellery component to work in Wasm

* Fix js/app/test/file_explorer_component_events.spec.ts to run on Wasm

* Ignore queue_full_e2e_test.spec.ts

* Revert "[tmp] Comment-out"

This reverts commit c775c0cc298ac7e1f49545042e1dc7b6615d179d.

* Revert "Extend timeout"

This reverts commit 742d1e1e83fc99bd0ac6107a589b75905b7ed593.

* Remove a commented out line

* Refactor file_explorer_component_events.spec.ts

* Revert "fix-tests", restoring the original test-functional.yml content

This reverts commit 9ff2a7ddc5b00e1f41b4d7e9c4a64223934cf268.

* Set CI step names

* [tmp] Revert "Revert "fix-tests", restoring the original test-functional.yml content"

This reverts commit de2dbe33173de39304294e6b46151ef1e07f6806.

* Revert "[tmp] Revert "Revert "fix-tests", restoring the original test-functional.yml content""

This reverts commit 32154f3bb18d83bad5bce14e254d635dfbe847af.

* [tmp] Revert "Revert "[tmp] Revert "Revert "fix-tests", restoring the original test-functional.yml content"""

This reverts commit 204075e190eb755a99d2bb449fc339b1f1b5c29b.

* Fix vite.config.js removing unnecessary code

* Revert "Set the `testIgnore` in `.config/playwright.config.js`"

This reverts commit 98dccc5be94ea9c77e69a58f50db577922fe2d67.

* Add gallery_component_events.spec.ts

* Revert js/app/test

* tweak

* tweak

* revert workflow changes

* 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-03-04 14:03:46 +00:00
Yanis Lukes
2de329d8cf
Update client.py: Docs typo () 2024-03-03 14:24:46 -08:00
André Pedersen
24626ea362
Fixed redirects and reformatted code in creating-a-fast-chatbot guide ()
* Minor code styling fix in example to be more consistent

* Fix broken redirect

* Fixed two more redirects

* Fixed more redirects

* Revert faulty redirect updates
2024-02-28 14:56:29 -08:00
Abubakar Abid
bd2c695328
Adds a gr.DownloadButton component ()
* py

* path

* barebones js

* add changeset

* add changeset

* downloadbutton

* add changeset

* changes

* clog

* commit

* revert'

* fix

* js

* add changeset

* cleanup

* download

* notebooks

* stories

* change

* fix

* format

* download

* Fix updating `icon` parameter (bug resulting from https://github.com/gradio-app/gradio/pull/7528) ()

* fetch 2

* fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-28 12:07:36 -08:00
Hannah
65f114a117
Add error handling for missing js/_website/version.json ()
* add error handling for version.json

* tweak error

* add changeset

* formatting

* tweak logic

* fix build

* tweak

* fix ENOENT error during build

* revert removal of 3.50.2 routes

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-02-28 19:05:48 +01:00
Abubakar Abid
1fa2e914ca
Fixes auth_message so that it correctly renders HTML ()
* quick fix

* add changeset

* story

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-27 16:16:52 -08:00
Abubakar Abid
98aa8082dd
Add /logout functionality for Gradio auth ()
* logout

* changes

* add changeset

* documentation

* add test

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-27 14:53:24 -08:00
Abubakar Abid
f84720cd76
Prevent paths beginning with // or \\ ()
* prevent smb paths on windows

* docstring

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-27 12:34:44 -08:00
Ari Roffe
7cda6ce06d
Update 03_sharing-your-app.md ()
* Update 03_sharing-your-app.md

* Update guides/01_getting-started/03_sharing-your-app.md

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-27 16:41:47 +00:00
Abubakar Abid
eda33b3763
Refactors get_fetchable_url_or_file() to remove it from the frontend ()
* fetch

* add changeset

* add changeset

* simplify

* add changeset

* changes

* format

* add changeset

* changes

* format

* fixes

* lint

* fix components

* fixes

* typing

* format frontend

* path

* fixes

* fix stories

* lint

* lint

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-26 13:01:00 -08:00
renovate[bot]
8c9c98a741
chore(deps): update dependency vega to v5.23.0 [security] ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-26 15:21:11 +00:00
renovate[bot]
0027f0c9d6
chore(deps): update dependency postcss to v8.4.31 [security] ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-26 15:06:15 +00:00
Jacob Dineen
6fc95d9ed0
fix typos in ci.md; labal -> label () 2024-02-26 15:05:56 +00:00
renovate[bot]
edb756802d
chore(deps): update dependency chromatic to v11 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-23 10:35:57 -08:00
renovate[bot]
ba1459afd9
chore(deps): update chromaui/action action to v11 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-23 10:35:31 -08:00
paragonnov
08c2d491ec
when adding custom head html, ensure there are no duplicate meta tags ()
* fix: remove old element to prevent duplication

remove old element before append new meta tag to prevent duplication

* fix: unexpected

* Update

* format

* unexpected

* unexpected

* add changeset

* improve

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-23 17:04:04 +00:00
pngwn
daf40b5ce3
fix tests? () 2024-02-23 16:29:11 +00:00
pngwn
bacbc70fa1
chore: update versions ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@gradio/accordion@0.3.4 @gradio/annotatedimage@0.5.3 @gradio/app@1.25.2 @gradio/audio@0.9.3 @gradio/chatbot@0.7.3 @gradio/checkbox@0.2.11 @gradio/checkboxgroup@0.4.5 @gradio/code@0.5.3 @gradio/colorpicker@0.2.11 @gradio/dataframe@0.6.4 @gradio/dropdown@0.6.2 @gradio/fallback@0.2.11 @gradio/file@0.5.3 @gradio/fileexplorer@0.3.23 @gradio/gallery@0.7.3 @gradio/highlightedtext@0.4.11 @gradio/html@0.1.11 @gradio/image@0.9.3 @gradio/imageeditor@0.4.3 @gradio/json@0.1.11 @gradio/label@0.2.11 @gradio/markdown@0.6.5 @gradio/model3d@0.8.2 @gradio/number@0.3.11 @gradio/paramviewer@0.4.4 @gradio/plot@0.3.3 @gradio/radio@0.4.5 @gradio/simpledropdown@0.1.11 @gradio/simpleimage@0.3.3 @gradio/simpletextbox@0.1.11 @gradio/slider@0.2.11 @gradio/statustracker@0.4.8 @gradio/tabitem@0.2.4 @gradio/tabs@0.2.4 @gradio/textbox@0.4.12 @gradio/tootils@0.2.3 @gradio/video@0.6.3 gradio@4.19.2 gradio_client@0.10.1 gradio_test@0.3.8 website@0.23.4
2024-02-22 13:29:11 -08:00
Abubakar Abid
84802ee6a4
Tighten CORS rules ()
* tighten cors rules

* add changeset

* cors policy

* cors

* add changeset

* lint

* changes

* changes

* changes

* logging

* add null

* changes

* changes

* options

* options

* safe changes

* let browser enforce cors

* clean

* route utils

* fix

* fix test

* fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-22 11:54:51 -08:00
MMP0
b186767744
Fix Gallery preview overlay and backdrop ()
* Restore `Gallery` translucent background

* Add `backdrop-filter` for Safari

* Fix overflowing `Gallery` preview overlay

* add changeset

* Older browser support

* add changeset

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
2024-02-22 11:33:03 -08:00
Dawood Khan
9c36572e32
Quick fix: File height overflow ()
* quick fix

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-22 11:11:26 -08:00
Akshunn Trivedi
8f050eedbc
Streaming example for the updated OpenAI API ()
* Changes for updated OpenAI api

* Update guides/04_chatbots/01_creating-a-chatbot-fast.md

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-22 16:08:29 +00:00
Yuichiro Tachibana (Tsuchiya)
33f68cb6c2
Fix Canvas3D/Canvas3DGS async imports ()
* Fix Model3D and Model3DUpload to handle async-imports and access the child component's exported method

* Refactoring: reorder the lines to put the related snippets together

* add changeset

* Refactoring

* Disable the undo buttons for Canvas3DGS

* add changeset

* Refactoring to use optional chaining

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-22 22:28:56 +09:00
aliabid94
16fbe9cd0c
Prevent components from working with non-uploaded files ()
* changes

* chanegs

* add changeset

* changes

* changes

* add changeset

* 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-02-21 20:21:20 -06:00
aliabid94
ba3ec1300e
Tab select fix ()
* changes

* add changeset

* changes

* changes

* changes

* Update js/tabs/shared/Tabs.svelte

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

* 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: Aarni Koskela <akx@iki.fi>
2024-02-21 17:27:58 -06:00
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