Mike Heavers
7f9b291922
Cast button value as string in postprocess ( #7733 )
...
* Cast button value as string.
If you don't do this, it causes a problem on gradio app load - see github issue #7690
(https://github.com/gradio-app/gradio/issues/7690#issuecomment-1997718185 )
* add changeset
* add test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-03-18 13:37:45 -07:00
Abubakar Abid
c5d20483b7
Revert "Replace httpx with requests library in save_url_to_cache to make it w…" ( #7729 )
...
This reverts commit 181f4d05d49b54c972af4ba4486d2875f9821c12.
Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
2024-03-18 08:03:02 -07:00
Yuichiro Tachibana (Tsuchiya)
7d3c868d0a
Detailed error message for wasm_utils.get_registered_app() ( #7572 )
...
* Detailed error message for wasm_utils.get_registered_app()
* 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-03-18 07:35:24 -07:00
Yuichiro Tachibana (Tsuchiya)
f67759dcee
Fix wasm_proxied_mount_css to not reuse an existing style element ( #7709 )
...
* Fix wasm_proxied_mount_css to not reuse an existing style element but replace it for theme updates upon rerunning a new app
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-18 07:30:11 -07:00
Yuichiro Tachibana (Tsuchiya)
0a3870d52b
Call handle_darkmode() even if window.__gradio_mode__ === "website"
but enforce the light theme ( #7710 )
...
* Call handle_darkmode() even if `window.__gradio_mode__ === "website"` but enforce the light theme
* add changeset
* Rename functions
* Fix `handle_theme_mode()` not to access a variable `active_theme_mode` in an outer scope
* Rename use_system_theme to sync_system_theme
* Replace let with const
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-18 07:29:08 -07:00
Shubham raj
181f4d05d4
Replace httpx with requests library in save_url_to_cache to make it work in wasm mode ( #7725 )
...
* Replace httpx with requests library to make it work in wasm mode
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-18 17:19:55 +09:00
Abubakar Abid
aca4892ea5
More fixes for gr.load()
as well as a tweaking the __str__
and __repr__
methods of components ( #7712 )
...
* more fixes
* add changeset
* format
* add changeset
* add changeset
* address review
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-15 20:59:46 +00:00
Abubakar Abid
6390d0bf6c
Add support for python client connecting to gradio apps running with self-signed SSL certificates ( #7718 )
...
* verify
* add changeset
* docstring
* add changeset
* test fixes
* add remaining
* test fixes
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-15 20:57:23 +00:00
Abubakar Abid
188b86b766
Add support for object-detection models in gr.load()
( #7716 )
...
* add support for object-detection models in gr.load
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-15 13:09:44 -07:00
Freddy Boulton
28342a2040
Fix httpx timeout issues ( #7707 )
2024-03-14 18:39:41 -07:00
Abubakar Abid
bc61ff6b16
Several fixes to gr.load
( #7706 )
...
* stash pop
* add changeset
* add changeset
* state fix
* add changeset
* push
* ignore
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-14 17:19:15 -07:00
Abubakar Abid
95c6bc897b
Fix flagged files and ensure that flagging_mode="auto" saves output components as well ( #7704 )
...
* interface
* docstring
* changes
* changes
* add changeset
* changes
* add changeset
* changes
* add changeset
* changes
* changes
* fix
* changes
* add changeset
* flaggin
* simplify
* changes
* helpers
* filedata
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-14 14:03:34 -07:00
pngwn
598ad7baf7
fix dev mode ( #7703 )
...
* fix dev mode
* add changeset
* tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-14 19:44:55 +00:00
Abubakar Abid
1e45aefde5
switch python version to 3.8 ( #7700 )
2024-03-14 10:42:55 -07:00
Lucain
a1c24dbf2e
Fix OAuth + fix OAuth documentation + undocument logout button ( #7697 )
...
* Remove mentions to gr.LogoutButton in docs
* Fix session obj + update example
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-14 07:37:51 -07:00
pngwn
5d1e8dae5a
batch UI updates on a per frame basis ( #7564 )
...
* changes
* process fe fn tests
* cleanup
* cleanup
* create_target_meta tests and abstraction
* add interactivity detection and tests
* more functions more tests
* add tests for component loader, fix errors
* fix everything
* add changeset
* add changeset
* ci
* cleanup
* cleanup
* test
* fix again
* tweaks
* cleanup
* add changeset
* fix loading_status
* cleanup
* ensure updates have been flushed before making API requests
* add changeset
* df fix
* fixes
* fix dataframe updates
* fix dataframe updates
* remove $open var
* add changeset
* fix tests
* extend timeout for lite
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-03-13 13:46:40 +00:00
Abubakar Abid
aba44707af
Add auth
, auth_message
, and root_path
parameters to mount_gradio_app
( #7667 )
...
* root path
* add changeset
* docstring
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-11 15:10:33 -07:00
pngwn
6683ab2589
chore: update versions ( #7630 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@gradio/annotatedimage@0.5.6
@gradio/app@1.27.0
@gradio/audio@0.9.6
@gradio/button@0.2.25
@gradio/chatbot@0.7.6
@gradio/client@0.13.0
@gradio/code@0.5.6
@gradio/dataframe@0.6.7
@gradio/dataset@0.1.25
@gradio/downloadbutton@0.1.2
@gradio/file@0.5.6
@gradio/fileexplorer@0.3.26
@gradio/gallery@0.8.2
@gradio/image@0.9.6
@gradio/imageeditor@0.4.6
@gradio/lite@4.21.0
@gradio/model3d@0.8.5
@gradio/preview@0.7.2
@gradio/simpleimage@0.3.6
@gradio/upload@0.7.7
@gradio/uploadbutton@0.5.2
@gradio/video@0.6.6
@gradio/wasm@0.8.0
gradio@4.21.0
gradio_client@0.12.0
website@0.24.2
2024-03-08 16:35:23 -08:00
Abubakar Abid
048364c6b0
downgrade contourpy ( #7650 )
...
* fix formatting error in gradio/lite package.json
* downgrade contourpy
* testng
* matplotlib
* add future
* add changeset
* change
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-08 16:11:43 -08:00
Abubakar Abid
b8e246b787
fix formatting error in gradio/lite package.json ( #7648 )
2024-03-08 15:19:51 -08:00
Freddy Boulton
b3b0ea3e11
Add --python-path, --pip-path, --gradio-path CLI arguments to let custom component developers control which executable is used ( #7638 )
...
* backend code
* Frontend code
* add changeset
* Add to FAQ
* lint
* Check pip3/python3
* Check pip/python3 and edit docstrings.
* Build docstring
* more informative error
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-08 15:01:49 -08:00
pngwn
57510f9ce0
Lite version ( #7647 )
...
* fix user links
* add gradio as dependency to lite
* tweak
* fiiiiix
* fix deps
* changes
* asd
* asd
* asd
* asd
* fixed
* asd
* asd
* asd
* asd
* asd
* asd
* asd
* fgh
* asd
* asd
* asd
* asd
* add changeset
* prevent duplicate dependency entries
* Update .changeset/changeset.cjs
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-03-08 22:56:34 +00:00
Abubakar Abid
d0688b3c25
Files should now be supplied as file(...)
in the Client, and some fixes to gr.load()
as well ( #7575 )
...
* more fixes for gr.load()
* client
* add changeset
* format
* docstring
* add assertion
* warning
* add changeset
* add changeset
* changes
* fixes
* more fixes
* fix files
* add test for dir
* add changeset
* Delete .changeset/giant-bears-check.md
* add changeset
* changes
* add changeset
* print
* format
* add changeset
* docs
* add to tests
* format
* add changeset
* move compatibility code out
* fixed
* changes
* changes
* factory method
* add changeset
* changes
* changes
* sse v2.1
* file()
* changes
* typing
* changes
* cleanup
* changes
* changes
* changes
* fixes
* changes
* fix
* add changeset
* changes
* more changes
* abc
* test
* add payloads
* lint
* test
* lint
* changes
* payload
* fixes
* fix tests
* fix
* clean
* fix frontend
* lint
* add changeset
* cleanup
* format
* get examples to show up in loaded spaces
* add filedata prop to frontend
* add skip component parameter
* address feedback
* with meta
* load
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-08 12:29:02 -08:00
Yuichiro Tachibana (Tsuchiya)
7c66a29dea
Fix the Lite custom element to initialize the app in the connected callback and dispose the app in the disconnected callback ( #7577 )
...
* Fix the Lite custom element to initialize the app in the connected callback and dispose the app in the disconnected callback
* add changeset
* Add type hints
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-08 12:04:39 -08:00
Yuichiro Tachibana (Tsuchiya)
2edba133e2
Fix CrossOriginWorkerMaker
to cache the blob URL ( #7571 )
...
* Fix `CrossOriginWorkerMaker` to cache the blob URL
* add changeset
* Rename variables
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-08 12:03:56 -08:00
Shubham raj
6ebf0cedf5
Add support for diffuser pipelines in gr.Interface.from_pipeline(). ( #7265 )
...
* Add support for StableDiffusionPipeline
* Add support for Stable Diffusion pipelines in interface.from_pipeline(), import transformers and diffusers conditionally
* add changeset
* refactor: create helpers method to handle transformers and diffusers pipelines and refactored load from pipeline to use helper methods.
* Update test requirements.in, and generated requirements.txt after adding diffusers as dependency
* Fix reportPrivateImportUsage on diffusers pipelines
* Format code using ruff
* PIL is required library so moved it out of if block
* Add return statement to every if block and fix typo
* check module name of pipeline to decide how to handle that pipeline
* refactored if statements in pipeline_helper module
* exclude gradio from test requirements
* update tests requirements.txt using pip-compile --upgrade
* fix failing typechecks
* Add unit tests for one transformer and diffuser load from pipeline
* Refactor code to return dict from every if branch and replace all elifs
* Update requirements.txt using pip-compile
* Update requirements file
* Update test requirements file
* Add unit tests for handle transfomers and diffusers pipelines functions present in pipelines_helpers.py
* Add support for StableDiffusionPipeline
* Add support for Stable Diffusion pipelines in interface.from_pipeline(), import transformers and diffusers conditionally
* add changeset
* refactor: create helpers method to handle transformers and diffusers pipelines and refactored load from pipeline to use helper methods.
* Update test requirements.in, and generated requirements.txt after adding diffusers as dependency
* Fix reportPrivateImportUsage on diffusers pipelines
* Format code using ruff
* PIL is required library so moved it out of if block
* Add return statement to every if block and fix typo
* check module name of pipeline to decide how to handle that pipeline
* refactored if statements in pipeline_helper module
* exclude gradio from test requirements
* update tests requirements.txt using pip-compile --upgrade
* fix failing typechecks
* Add unit tests for one transformer and diffuser load from pipeline
* Refactor code to return dict from every if branch and replace all elifs
* Update requirements.txt using pip-compile
* Update requirements file
* Update test requirements file
* Add unit tests for handle transfomers and diffusers pipelines functions present in pipelines_helpers.py
* remove gradio from test requirements
* remove ap.py
* formatting and minor cleanup
* changes
* update version
* Version
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-03-08 11:53:38 -08:00
Abubakar Abid
cb3999eec7
Use x-forwarded-host
header to determine the root url, and let users provide a full root_path
to override the automatically determined root url ( #7641 )
...
* debug
* add changeset
* changes
* add changeset
* fix
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-08 10:15:11 -08:00
paragonnov
9482c7a3d2
fix: redundant meta tags that are unwanted ( #7643 )
...
* fix: redundant meta tag duplicates that are unwanted
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-08 09:43:26 -08:00
Freddy Boulton
0ae1e4486c
Control which files get moved to cache with gr.set_static_paths ( #7618 )
...
* First commit
* Add code
* undo demo changes
* add changeset
* Add documentation
* Rename to set_static_paths
* add changeset
* Fix docstring issue
* add changeset
* Address feedback
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-07 15:39:07 -05:00
Abubakar Abid
a22f3e062d
Fixing root path issue with subpath being repeated twice ( #7624 )
...
* fixing root path
* add changeset
* add changeset
* fix
* add changeset
* replace tests
* prints
* fix
* add test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-06 12:52:01 -08:00
pngwn
ba8cc48b13
feature detect CSSStylesheet ( #7628 )
...
* feature detect CSSStylesheet
* add changeset
* logs
* polyfill instead
* polyfill instead
* remove polyfill
* fix lockfile
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-06 20:27:39 +00:00
Abubakar Abid
1a4b089e78
Refactor example_inputs()
, separating its logic into two separate methods: example_payload()
and example_value()
( #7620 )
...
* fix
* lint
* add changeset
* add changeset
* example
* checkbox
* fix, add test
* fixes
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-06 19:37:14 +00:00
pngwn
d8636bb050
chore: update versions ( #7626 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@gradio/annotatedimage@0.5.5
@gradio/app@1.26.1
@gradio/audio@0.9.5
@gradio/button@0.2.24
@gradio/chatbot@0.7.5
@gradio/code@0.5.5
@gradio/dataframe@0.6.6
@gradio/dataset@0.1.24
@gradio/downloadbutton@0.1.1
@gradio/file@0.5.5
@gradio/fileexplorer@0.3.25
@gradio/gallery@0.8.1
@gradio/image@0.9.5
@gradio/imageeditor@0.4.5
@gradio/model3d@0.8.4
@gradio/simpleimage@0.3.5
@gradio/upload@0.7.6
@gradio/uploadbutton@0.5.1
@gradio/video@0.6.5
gradio@4.20.1
website@0.24.1
2024-03-06 17:13:41 +00:00
Dawood Khan
8181695e70
image upload fix ( #7625 )
...
* 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 ( #7526 )
...
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 ( #7617 )
...
* fix flaky python tests
* fix
2024-03-05 16:34:24 -08:00
Abubakar Abid
355ed666d9
Fix the root_url
logic for streaming files ( #7614 )
...
* 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 ( #7567 )
...
* 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 ( #7559 )
...
* 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 ( #7557 )
...
* 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 ( #7599 )
...
* 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 ( #7612 )
2024-03-05 11:00:18 -08:00
Yuichiro Tachibana (Tsuchiya)
9c6de6d850
Upgrade Pyodide to 0.25.0 ( #7119 )
...
* 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 ( #7604 )
...
* 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 ( #7598 )
...
* 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 ( #7407 )
...
* 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 ( #7447 )
...
* 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 ( #7516 )
...
* 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 ( #7555 )
...
* 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 ( #7565 )
...
* 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