Abubakar Abid
b95d0d043c
Allow setting custom headers in Python Client ( #7334 )
...
* add headers
* add changeset
* fix
* test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-07 07:19:53 -08:00
pngwn
2382f741ff
chore: update versions ( #7177 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-06 15:19:29 -08:00
Yuichiro Tachibana (Tsuchiya)
b25e95e164
Fix processing_utils.save_url_to_cache()
to follow redirects when accessing the URL ( #7322 )
...
* Fix `processing_utils.save_url_to_cache()` to follow redirects when accessing the URL
* add changeset
* follow more redirects
* format
* add changeset
* add test
* validate urls
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-06 19:46:20 +00:00
Aarni Koskela
0fddd0f971
Determine documentation group automatically ( #7062 )
2024-02-05 17:25:34 +04:00
Aarni Koskela
05d8a3c803
Update ruff to 0.1.13, enable more rules, fix issues ( #7061 )
...
* add changeset
* Update ruff to version 0.1.13
* Correct ruff target version
* Enable more Ruff rules and fix issues
* Enable ARG and fix issues
* Enable PL lints, fix issues
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-01 11:32:40 -08:00
pngwn
4cfd8dcde8
Make ci work ( #7233 )
...
* update ci
* test
* test
* test
* test
* test
* test
* test
* test
* editable install
* editable install
* escape backslashes for bash
* escape backslashes for bash
* only generate website json in linux
* that was stupiud
* check ci still works
* please work
* pretty please?
* errr
* now?
* more
* more
* more
* deploy space
* deploy space
* tweaks
* changes
* tweaks
* tweaks
* tweaks
* tweaks
* tweaks
* final tweaks
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-01 00:46:55 +00:00
aliabid94
68a54a7a31
Improve chatbot streaming performance with diffs ( #7102 )
...
* changes
* add changeset
* changes
* add changeset
* changes
* channges
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* canges
* changes
* changes
* changes
* Update free-moose-guess.md
* changes
---------
Co-authored-by: Ali Abid <aliabid@Alis-MacBook-Pro.local>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2024-01-31 10:39:46 -08:00
Abubakar Abid
3c8c4ac2db
Document the gr.ParamViewer
component, and fix component preprocessing/postprocessing docstrings ( #7116 )
...
* add paramviewer to docs
* add changeset
* type fixing
* round to
* format
* revert to make test pass
* remove msg
* add changeset
* annotated image
* annotated image
push
* audio
* changes
* changes
* audio
* audio
* changes
* remove borders from code
* working
* fixes
* add changeset
* formatting
* build fix
* changes
* ls
* more components
* format
* some more
* more
* component
* plots
* buttons
* simple backend
* number
* more
* more
* simple templates
* format
* fixes
* backend
* fix tests
* fix test
* fixes
* formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2024-01-31 09:36:21 -08:00
Freddy Boulton
9f23b0bc54
Optimize client view_api method ( #7178 )
...
* Re-order code
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-26 13:33:37 -05:00
PSEUDOTENSOR / Jonathan McKinney
40e6ddf911
Fixes #7136 -- gradio client iterator can hit finish event before yield all outputs ( #7151 )
2024-01-25 16:57:30 -08:00
PSEUDOTENSOR / Jonathan McKinney
d72492a3cc
Fixes https://github.com/gradio-app/gradio/issues/7086 ( #7091 )
2024-01-21 10:53:36 -08:00
pngwn
0a2ba5d0b0
chore: update versions ( #7004 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-19 00:13:02 -05:00
Freddy Boulton
1fc8a94138
fix lint ( #7075 )
2024-01-18 20:49:51 -05:00
aliabid94
3c3cf8618a
Fix UI freeze on rapid generators ( #7055 )
...
* changes
* add changeset
* changes
---------
Co-authored-by: Ali Abid <aliabid@Alis-MacBook-Pro.local>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-18 11:50:14 -08:00
WilliamHarer
64c65d8219
Add encoding to open/writing files on the deploy_discord function ( #7054 )
...
* Update client.py
Make open discord_chat.py call encoded to utf-8
* Update client.py
Add another encoding to line 850
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-18 14:40:59 -05:00
pngwn
3a0a11cf42
chore: update versions ( #6882 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-04 16:02:25 -08:00
aliabid94
6c863af92f
Fix functional tests ( #6931 )
...
* changes
* add changeset
* add changeset
* changes
* changes
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Ali Abid <aliabid@Alis-MacBook-Pro.local>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-04 15:39:16 -08:00
Yuichiro Tachibana (Tsuchiya)
649cd4d680
Use EventSource_factory
in open_stream()
for Wasm ( #6820 )
...
* Use `EventSource_factory` in `open_stream()` for Wasm
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2023-12-30 23:28:54 +04:00
Yuichiro Tachibana (Tsuchiya)
0cf93e50b8
Make shell scripts executable and fix their shebangs ( #6901 )
...
* Add executable permission to scripts/*.sh
* Set -eu to the shebang in /scripts/*.sh
* Fix client/python/scripts/*.sh
2023-12-29 08:21:51 -08:00
pngwn
227221f887
chore: update versions ( #6855 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-22 13:05:17 -08:00
Freddy Boulton
d406855795
Fix JS Client when app is running behind a proxy ( #6863 )
...
* Fix subdomain
* add changeset
* lint
* Ts check
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-22 15:00:42 -05:00
Abubakar Abid
48d6534b40
Add show_api
parameter to events, and fix gr.load()
. Also makes some minor improvements to the "view API" page when running on Spaces ( #6846 )
...
* show api
* chnages
* add changeset
* changes
* changes to interface
* set show_api=False
* changes
* development
* examples
* changes
* add changeset
* changes
* changes
* format
* add changeset
* add changeset
* changes
* revert
* fixes
* is vaild
* push
* fixes'
* fixing
* fixes
* format
* fixed
* demo
* test
* format
* add changeset
* fix tests
* fix
* format
* cleanup
* remove
* fixes
* add test
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-22 11:59:02 -08:00
Abubakar Abid
7bb561a294
Rewriting parts of the README and getting started guides for 4.0 ( #6767 )
...
* doc rewrite
* changes
* changes
* tip
* changes
* notebook
* add changeset
* history
* add
* quickstart done
* readme
* changes
* quickstart
* changes
* reorder
* link
* changes
* changes
* changes
* quickstart done
* readme
* quickstart
* quickstart'
* moving around
* spaces
* readme
* guides
* guides
* links
* readme
* readme
* readme
* readme
* readme
* readme
* readme
* readme
* readme
* readme
* email address
* add changeset
* shorten quickstart
* readme
* Update README.md
* readme
* changes
* Update guides/01_getting-started/01_quickstart.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Update guides/01_getting-started/01_quickstart.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Update guides/01_getting-started/01_quickstart.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* changes
* changes
* remove gr.Interface.load
* guides
* changes
* more changes
* changes
* sharing
* concurrency
* changes
* changes
* components
* key features
* event listeners
* features
* notebook
* test
* guides
* changes
* changes
* changes
* transitions
* readme links
* links
* links
* guides
* new gif
* add gif
* update gif
* Update guides/02_building-interfaces/01_more-on-examples.md
* Update guides/03_building-with-blocks/01_blocks-and-event-listeners.md
* Update guides/01_getting-started/01_quickstart.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Update guides/01_getting-started/02_key-features.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Update guides/01_getting-started/02_key-features.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Update guides/02_building-interfaces/00_the-interface-class.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Update guides/01_getting-started/01_quickstart.md
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
* Update guides/01_getting-started/02_key-features.md
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
* Update guides/01_getting-started/02_key-features.md
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
* changes
* replace space
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-12-20 11:07:48 -08:00
pngwn
160e389580
chore: update versions ( #6825 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-19 16:17:10 -08:00
aliabid94
828fb9e6ce
Refactor queue so that there are separate queues for each concurrency id ( #6814 )
...
* change
* changes
* add changeset
* add changeset
* changes
* changes
* changes
* changes
---------
Co-authored-by: Ali Abid <ubuntu@ip-172-31-25-241.us-west-2.compute.internal>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-12-19 11:42:56 -08:00
pngwn
9ea7b6f05c
chore: update versions ( #6797 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-15 15:39:46 -08:00
Freddy Boulton
245d58eff7
Improve how server/js client handle unexpected errors ( #6798 )
...
* Client fixes
* fix
* add changeset
* commented out code
* add changeset
* Log error give generic message
* Add client side catch
* remove exception 😂
* Add test
* Fix info and warning
* lint
* Use BaseException
* Use event_callbacks
* Use event_id not present
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-15 16:01:27 -05:00
pngwn
dc131b64f0
chore: update versions ( #6779 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-14 13:14:57 -08:00
Freddy Boulton
34f943101b
Python client properly handles hearbeat and log messages. Also handles responses longer than 65k ( #6693 )
...
* first commit
* newlines
* test
* Fix depends
* revert
* add changeset
* add changeset
* Lint
* queue full test
* Add code
* Update + fix
* add changeset
* Revert demo
* Typo in success
* Fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-12-13 17:47:06 -05:00
pngwn
1459119c6e
chore: update versions ( #6670 )
...
* chore: update versions
* change
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ali Abid <ubuntu@ip-172-31-25-241.us-west-2.compute.internal>
2023-12-12 18:32:54 -08:00
aliabid94
d76bcaaaf0
Fix api event drops ( #6556 )
...
* changes
* changes
* add changeset
* changes
* changes
* changes
* changs
* chagnes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes~git push
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* change
* changes
* changes
* changes
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ubuntu <ubuntu@ip-172-31-25-241.us-west-2.compute.internal>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-12-12 15:24:46 -08:00
Yuichiro Tachibana (Tsuchiya)
67ddd40b4b
Lite v4 ( #6398 )
...
* Fix vite.config.js detecting the development mode
* Fix the imports of @gradio/theme in js/app/src/lite/index.ts
* [WIP] Install Pydantic V1 and mock the RootModel class
* Remove Wasm WebSocket implementations
* Move ASGI-HTTP conversion logic from the worker to the worker-proxy so we have fine controls on the ASGI connection at the worker-proxy level for the HTTP stream connection impl in the future
* Fix asgi-types.ts
* Create `WasmWorkerEventSource` and inject the `EventSource` creation in @gradio/client
* Mock Pydantic V2's BaseModel
* Fix Pydantic V1 installation
* Make <ImageUploader /> and <ImagePreview /> Wasm-compatible
* Create `getHeaderValue()`
* Create `<DownloadLink />` for Wasm-compatible download and fix `<ImagePreview />` to use it
* Make `gr.Video()` Wasm-compatible avoiding unnecessary execution of ffprobe
* Move `<DownloadLink />` to @gradio/wasm and use it in `<VideoPreview />` too
* Fix `<DownloadLink />` making `href` optional and adding `rel="noopener noreferrer"`
* Make the download button of `<StaticAudio>` and `<Code />` Wasm-compatible
* Make the download button of `<FilePreview />` Wasm-compatible
* Improve the RootModel mock class for `.model_dump()` and `.model_json_schame()` to work
* Make `<UploadProgress />` Wasm-compatible
* Fix `WorkerProxy.httpRequest()` to use `decodeURIComponent()` to process `path` and `query_string`
* Fix `<InteractiveAudio />` to make its upload feature Wasm-compatible
* [WIP] Revert "Make `<UploadProgress />` Wasm-compatible"
This reverts commit f96b4b7d5e92bb488cfe1939d25063366f714178.
* Fix Image styles
* Fix `<AudioPlayer />`'s `create_waveform()` to be Wasm-compatible
* add changeset
* formatting
* Fix js/image/shared/Image.svelte to render <img> immediately
* Fix js/image/shared/Image.svelte to avoid race condition
* Fix js/image/shared/Image.svelte
* Fix js/image/shared/Image.svelte
* Fix js/image/shared/Image.svelte removing unnecessary styles
* Fix js/video/shared/Video.svelte to use the passed immediately without waiting for the async resolution
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-12-12 22:10:16 +00:00
Abubakar Abid
24e048196e
Hotfix: update huggingface_hub
dependency version ( #6704 )
...
* update requirements of hfhub
* add changeset
* requirements
* add changeset
* fixed
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-07 15:07:23 -08:00
D V
8a70e83db9
switch from black to ruff formatter ( #6543 )
...
* migrate from black to ruff
* fix script and dependencies
* applying ruff
* add changeset
* add changeset
* address ruff feedback
* replace linter
* fixed typing
* fix typing
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-06 15:16:32 -08:00
cswamy
7cbf96e0bd
Issue 5245: consolidate usage of requests and httpx ( #6598 )
...
* issue 5245 commit 1
* formatted
* add changeset
* fixes
* fixes
* make changes in client too
* remove requests from client
* add changeset
* add changeset
* Fixes to test_utils.py in client
* fixes in client utils.py and test_utils.py
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-12-05 14:18:09 -08:00
Abubakar Abid
299f5e238b
Update HF token used in CI tests ( #6671 )
...
* fix tests
* format
* fixes
* add changeset
* fixes
* fix
* fix
* update
* update
* test client
* format
* hf token 2
* add changeset
* add env
* add envs
* tests
* env
* fixes
* test external
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-05 12:49:48 -08:00
pngwn
fce80ac804
chore: update versions ( #6575 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-04 16:14:12 -08:00
Abubakar Abid
b8034a1e72
Fix: Gradio Client work with private Spaces ( #6602 )
...
* client with private space
* add changeset
* lint
* add test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-30 07:21:59 +00:00
pngwn
2c39174343
chore: update versions ( #6514 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-22 18:43:10 -05:00
Zain
67a9286727
Fix broken link in gradio_client README ( #6529 )
2023-11-21 11:41:07 -08:00
Omar Sanseviero
c59b87d7b5
Update client.py ( #6524 )
2023-11-21 12:20:05 -05:00
Yuichiro Tachibana (Tsuchiya)
71f1a1f993
Mark FileData.orig_name
optional on the frontend aligning the type definition on the Python side ( #6511 )
...
* Mark `FileData.orig_name` optional on the frontend aligning the type definition on the Python side
* Replace `var` with `const` and rename a variable
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-11-21 00:07:24 -08:00
pngwn
0bafdcb550
chore: update versions ( #6381 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-13 19:19:34 -08:00
aliabid94
324867f63c
Fix event target ( #6383 )
...
* changes
* changes
* add changeset
* chagnes
* chaneg
* changes
* fix
* changes
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-13 15:14:55 -08:00
pngwn
200237d73c
chore: update versions ( #6331 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-10 15:12:33 -08:00
Abubakar Abid
6204ccac59
Fixes gr.load()
so it works properly with Images and Examples ( #6322 )
...
* changes
* image
* fixes
* examples
* add changeset
* changes
* revert
* add changeset
* fix
* fix test
* modify workflow
* fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-11-09 08:34:32 -08:00
Freddy Boulton
f1409f95ed
Provide status updates on file uploads ( #6307 )
...
* Backend
* Backend
* add changeset
* Clean up + close connection
* Lint
* Fix tests
* Apply opacity transition
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-07 19:02:31 -05:00
pngwn
e9bb445a63
chore: update versions ( #6308 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-07 15:50:13 -08:00
aliabid94
bca6c2c80f
Restore query parameters in request ( #6327 )
...
* changes
* changes
* add changeset
* console
* changes
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-11-07 15:15:10 -08:00
pngwn
141afe1cf9
chore: update versions ( #6188 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-31 08:25:11 -07:00
Dawood Khan
2ba14b284f
JS Param ( #6137 )
...
* squash commit
* BugFix: Make FileExplorer Component Templateable (#5933 )
* Make FileExplorer templateable
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix notebooks (#5935 )
* V4: Update Component pyi file (#5937 )
* Add code
* add changeset
* delete
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4: Use beta release versions for '@gradio' packages (#5938 )
* Fix versions
* add changeset
* fix
* add changeset
* fix
* add changeset
* Fix
* fix preview
* add changeset
* final fix
* add changeset
* fix
* add changeset
* fix
* add changeset
* revert change
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* maybe fix (#5946 )
* Merge main again (#5948 )
* maybe fix
* fix
* Merge main again (#5949 )
* maybe fix
* fix
* weird weird weird
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Merge main again (#5950 )
* maybe fix
* fix
* weird weird weird
* fix
* log
* log
* fix changesets
* rererefactor frontend files (#5960 )
* do all the things
* add changeset
* remove codemod
* fix
* change casing
* condense upload button
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Strip vite import warning (#5962 )
* Add code
* Remove comment
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5769 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* release wasm (#5963 )
* release wasm
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Wasm release (#5964 )
* release wasm
* release wasm
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5965 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Add json schema unit tests (#5970 )
* Add tests
* add changeset
* Fix tests
* api-info
* Add test
* Add test
* Add email tests
* 3.8 fix 🙄
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4: Simple textbox (#5990 )
* Simple textbox
* add changeset
* Trim down events
* Trim
* Clean up change event
* Add comment
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* File upload optimization (#5961 )
* Use custom multipart parser
* add changeset
* remove print
* Add comment
* Lint
* fix code
* remove print
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Removes deprecated arguments and parameters from v4 (#5968 )
* Removes deprecated arguments and methods for v4
* remove update
* style
* add changeset
* added params
* typign
* fixed all of the typing
* tests
* fix layouts
* layout
* fix config
* fix
* fix form
* fix
* fix blocks tests
* fix some more tests
* lint
* fix test routes
* doc
* notebooks
* remove doc
* format
* format
* remove group
* label docstring
* remov test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4: Simple dropdown (#5996 )
* Add code
* lint
* comment
* add changeset
* revert
* Fix update + docstring cleanup
* Add code
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* pass props to example components and to example outputs (#6014 )
* pass props to example components and to example outputs
* add changeset
* make util less egenric/ more useful
* fix demo
* fix demo
* fix
* fix test
* Fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
* Format js in v4 branch (#6016 )
* Format v4 branch js
* add changeset
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4: Fix component update bug (#6027 )
* Fix tests + bugs
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* lockfile update
* Fixing test
* fix test
* Add a cli command to list available templates (#6018 )
* Add code
* dataset
* Add test
* add changeset
* add changeset
* add changeset
* add changeset
* Exclude FormComponent
* Paginate the output
* No colors but emojis:
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* fix tests (#6046 )
* fix storybook (#6065 )
* fix storybook
* add changeset
* fix
* add changeset
* fix
* fix
* fix components
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* remove dupe component (#6067 )
* remove dupe component
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Simplify File Component (#6044 )
* Add code
* Add code
* Add code
* Reuse code UploadButton
* Use two files for UploadButton
* Address feedback
* Lint
* add changeset
* Update js/uploadbutton/shared/UploadButton.svelte
Co-authored-by: pngwn <hello@pngwn.io>
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
* Clean up backend of `File` and `UploadButton` and change the return type of `preprocess()` from TemporaryFIle to string filepath (#6060 )
* changes
* add changeset
* upload button
* file
* add changeset
* valid types
* fix tests
* address review
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix Dropdown Example component and example processing logic (#6075 )
* fix examples
* helpers
* dropdown
* fix cc build (#6079 )
* fix cc build
* add changeset
* throw error if build fails
* fix entry points
* add changeset
* fix lockfile
* Add test
* update workflow
* try resolve
* lint 🙄
* Use xfail
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
* Fixes markdown rendering in examples (#6071 )
* Fixes markdown rendering in examples
* add changeset
* update delimiters
* format
* format
* docstrings
* test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Proposal: sample demo for custom components should be a `gr.Interface` (#6077 )
* update sample demo to interface
* add changeset
* modify
* Update gradio/cli/commands/components/_create_utils.py
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
* added layout and static
* fix
* refine
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
* WIP: Fix docs (#6082 )
* Website fix
* add changeset
* Fix code
* pin version
* Add code
* skip code
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Pending events behavior (#5826 )
* enter changesets pre-release mode
* release first version (#5500 )
* release packages
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* fix changeset (#5502 )
* add changeset
* release first version
* Custom components (#5507 )
* Add flag
* Copy front-end
* Add backend code
* Remove breakpoint
* Fix init
* Add code
* File reorg
* Fix types
* Upload files
* Fix code
* Custom components
* Add code
* Client changes
* More changes
* Add code
* Add code
* Fix reversion
* build hook integration
* Add code
* rm file
* Add code
* rename cli
* Add code
* Nicer cli
* Add display class
* Add backend devmide
* Add code?
* Add code
* Add paths and fix reload mdoe
* Fix .then
* changes
* fix
* fix
* changes
* changes
* changes
* Fix versions
* Fix wheel build from source
* Add code
* Get no template case working
* Cc fe (#5509 )
* tweaks
* fix 18n
* fix 18n
* tweaks
* Change name
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
* Do not use live display for dev mode
* Clean up front-end server print statements a little bit
* Fix success event
* Cc fe 2 (#5526 )
* tweaks
* fix examples
* fix backend port
* fix things
* fix
* Fix json component flagging
* fix
* fuix
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
* Fix template (#5533 )
* Fix type hint (#5536 )
* fix custom components when installed from wheel (#5552 )
* Fix all demos custom components (#5555 )
* Fix all_demos
* Fix issues
* trigger ci
* add changeset
* Fix merge
* lockfile
* Add code
* add code
* Fix command
* Add code
* Fix highlighted text
* fix interactive highlighted text
* tweak ci
* Disable example caching for load right now
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* image fixes (#5589 )
* Add flag
* Copy front-end
* Add backend code
* Remove breakpoint
* Fix init
* Add code
* File reorg
* Fix types
* Upload files
* Fix code
* Custom components
* Add code
* Client changes
* More changes
* Add code
* Add code
* Fix reversion
* build hook integration
* Add code
* rm file
* Add code
* rename cli
* Add code
* Nicer cli
* Add display class
* Add backend devmide
* Add code?
* Add code
* Add paths and fix reload mdoe
* Fix .then
* changes
* fix
* fix
* changes
* changes
* changes
* Fix versions
* Fix wheel build from source
* Add code
* Get no template case working
* Cc fe (#5509 )
* tweaks
* fix 18n
* fix 18n
* tweaks
* Change name
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
* Do not use live display for dev mode
* Clean up front-end server print statements a little bit
* Fix success event
* Cc fe 2 (#5526 )
* tweaks
* fix examples
* fix backend port
* fix things
* fix
* Fix json component flagging
* fix
* fuix
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
* Fix template (#5533 )
* Fix type hint (#5536 )
* fix custom components when installed from wheel (#5552 )
* Fix all demos custom components (#5555 )
* Fix all_demos
* Fix issues
* trigger ci
* add changeset
* Fix merge
* lockfile
* Add code
* add code
* Fix command
* Add code
* Fix highlighted text
* fix interactive highlighted text
* tweak ci
* fix image uploads
* add changeset
* remove changeset
* add changeset
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Support Literal Typehints (#5591 )
* Fix updateable
* Deploy for failing actions
* fix enum
* Add code
* remove gradio lite from publish ci
* fix
* fix
* chore: update versions (beta) (#5501 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix js deps in cli and add gradio-preview artifacts to build (#5610 )
* Fix js dependencies in cli
* Add preview to build command
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5612 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* backend linting (#5613 )
* backend linting
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Publish js theme (#5615 )
* Publish js theme
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5614 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Add code (#5617 )
* Add docstring to trigger release (#5618 )
* Add docstring
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5619 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* fix build and broken imports (#5620 )
* fix broken import
* fix build scripts
* add changeset
* Update js/statustracker/static/index.svelte
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5621 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix esbuild (#5624 )
* fix build
* fix build
* add changeset
* fix build
* fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5626 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix esbuild (#5629 )
* fix build
* fix build
* add changeset
* fix build
* fix
* asd
* more fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* asd (#5630 )
* chore: update versions (beta) (#5631 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Some minor v4 fixes (#5637 )
* Add code
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Publish all components to npm (#5648 )
* Publish image component
* publish components
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5638 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix front-end imports + other misc fixes (#5649 )
* Fix console error
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Add overwrite flag to create command (#5651 )
* Add overwrite flag to create command
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5650 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Make layout components templateable (#5665 )
* Split out layouts
* Refactor cli
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Patch fixes (#5678 )
* Handle lowercase template name frontend
* Lint
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix build and file route (#5680 )
* Add code
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5662 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* V4 fix typing (#5686 )
* Add examples for series and parallel
* v4 fix typing
* add changeset
* Fix
* Fix
* Fix 3.8
* Fix typing 3.8
* Lint
* Add code
* Add key
* Fix typing
* Add code
* Fix deps
* Fix fastapi
* Fix version
'
:
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Use overrides (#5695 )
* Use overrides
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* ensure client is copied along with components (#5709 )
* ensure client is copied along with components
* add changeset
* add changeset
* chore: update versions (beta) (#5688 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* fix build config (#5710 )
* Fix python unit tests for v4 (#5715 )
* Add code
* Fix tests
* Add ci
* Add code
* fix test_blocks
* More fixes
* Last changes
* add changeset
* Add code
* Continue for the sake of some green ci
* Proper api info
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Better test dir check (#5719 )
* FIx test-dir check
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Use path to npm executable in subprocess (#5736 )
* Use path to npm in subprocess
* Fix dev mode too
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Add Error + test (#5738 )
* Add Error + test
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix component regex (#5739 )
* Add code
* Fix component regex
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix layout templates (#5740 )
* Fix templates
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix template remaining components (#5743 )
* add code
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* --overwrite deletes previous content (#5744 )
* Add code
* Add code
* add changeset
* Add test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Support call method (#5751 )
* Support call method
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix windows ci build (#5752 )
* Try bash
* Use cross-env
* Trigger CI
* Fix comma
* add changeset
* Modify lock file
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix windows paths (#5745 )
* Use posix path
* add changeset
* add changeset
* Try normalize
* to_posix v2
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5717 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Simplify how files are handled in components in 4.0 (#5768 )
* Client and upload route hash files
* Refactor logic
* add changeset
* Add code
* View API fix
* Fix client tests
* Dumb windows fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix deployed demos on v4 branch (#5770 )
* Template fixes
* add changeset
* add changeset
* Fix streaming audio
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Name Endpoints if api_name is None (#5782 )
* Implementation and test
* add changeset
* fix lint
* Fix nits
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* pending events
* add changeset
* Set api=False for cancel events (#5851 )
* Set api=False for cancel events
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4: Set cache dir for some component tests (#5852 )
* Add code
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4: Use async version of shutil in upload route (#5853 )
* Use async shutil copy
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* trigger_mode
* changes
* undo
* undo
* add changeset
* undo
* add changeset
* image undo
* add changeset
* fix merge errors
* remove prints
* change
* fix
* fix error
* change
* quick fix
* trigger_mode param
* type
* value error
---------
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fixes: slider bar are too thin on FireFox (#5984 )
* firefox slider fix
* add changeset
* fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix remaining xfail tests in backend (#6073 )
* Add code'
* Add code
* Add code
* Fix dataset
* add changeset
* Add some comments
* Add recover_kwargs
* Remove from docstring
* Audio-to-audio
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix dev mode model3D (#5955 )
* Fix dev mode
* Lint
* add changeset
* Fix dev mode
* Lint
* remove console.log
* add changeset
* interactive fix
* Fix tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Dawood <dawoodkhan82@gmail.com>
* V4: Single-file implementation of form components (#6026 )
* Checkbox and number
* Number, Checkboxgroup, Radio, and Slider
* Format
* remove range
* Refactor checkbox
* Forgot to add
* Refactor
* Lint
* add changeset
* use rich emoji markup
* Fix ts
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Update logos for v4 (#6089 )
* update v4 logo
* add changeset
* size
* fix on website
* fix on demos
* add changeset
* favicon for demos
* margin on footer logo
* margin bottom to footer logo
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Add a stand-alone install command and tidy-up the fallback template (#6092 )
* Add code
* add changeset
* Add test
* Make install default
* Better error message
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4: Fix constructor_args (#6093 )
* Fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix: Move to cache in init postprocess + Fallback Fixes (#6107 )
* Add code and test
* restore
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* fix build (#6112 )
* fix build
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Update cold-lemons-roll.md
* Revert "Update cold-lemons-roll.md" (#6113 )
This reverts commit 20dbf90811
.
* Try to trigger a major beta release (#6114 )
* pyproject fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Delete bad changelog (#6115 )
* Delete bad changelog
* Revert "Delete bad changelog"
This reverts commit a8ca614eaf
.
* Delete bad
* formatting
* Revert "formatting"
This reverts commit 94f43859e7
.
* Improve Audio Component (#5966 )
* replace <audio> with wavesurfer: add recording, playing and trimming, playback
* add changeset
* merge cleanup
* improving recording styling
* add recording timer
* add trim region duration
* allow trimming recordings
* clean up playing logic
* add pause_recording event
* remove crop min/max
* add waveform options param
* remove trimmingmode and use mode
* streaming + cleanup
* add changeset
* clean up types
* mobile adjustments
* add min/max length + trim accessibility
* update pnpm lock
* amend source to a list and allow source switching
* fix no microphone found logic
* change undo logic to reset trims
* tweaks
* tweak reset logic
* ensure recording is sent to backend
* fix audio duration reactivity
* list tweak
* clean up
* change source -> sources + restore wasm changes
* formatting
* fix tests
* fix test
* add default sources value in fe + fix audio demos
* fix audio file name test
* add better sources typing
* ui test tweaks
* add default value in templates.py
* formatting
* remove unused prop
* add audio story
* add changeset
* revert sources changes
* remove story id
* fix be test
* fix be test
* fix notebooks
* formatting
* fix test
* fix test again
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
* Fix changesets 2 (#6116 )
* fix changesets
* release major
* Fix changesets 2 (#6117 )
* fix changesets
* release major
* asd
* fix version
* chore: update versions (beta) (#5973 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* v4
* Open source FRP server and allow `gradio` to connect to custom share servers (#6091 )
* add param
* add support for custom address
* add changeset
* share guide
* guide
* add params
* add changeset
* fix launch
* add test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Gradio custom component publish (#6098 )
* Add code
* add changeset
* F-string
* Add pwd
* Add source to space
* Add template
* Twine import
* add changeset
* ignore
* restore
* add changeset
* Address feedback
* Update gradio/cli/commands/components/publish.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix static issues with Lite on v4 (#6124 )
* fix missing props
* fix path to types
* add changeset
* fix path to i18n
* fix audio tests
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abid <aabid94@gmail.com>
* Refactor `Blocks.load()` so that it is in the same style as the other listeners (#6126 )
* restore decorator
* remove
* refactor load
* remove restriction
* add changeset
* add pyi
* add test
* add test
* fix tests
* metaclass
* future
* reduce'
* docstring
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* js
* add changeset
* Small change to make `api_open=False` by default (#6138 )
* set api_open to False by default
* add changeset
* tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Image v4 (#6094 )
* simplify image interface
* changes
* asd
* asd
* more
* add code (#6095 )
* more
* fix tests
* add changeset
* fix client build
* fix linting
* fix test
* lint
* Fix tests + lint
* asd
* finish
* webcam selection
* fix backend
* address comments
* fix static checks
* fix everything
* add changeset
* Apply suggestions from code review
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fix examples
* fix tests
* fix tests
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix fallback demo app template code (#6129 )
* Add test
* add changeset
* Add JSON note
* Fix test
* Update gradio/cli/commands/components/_create_utils.py
* Update test/test_gradio_component_cli.py
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fix video path
* Revert "fix video path"
This reverts commit 5916b3dc8a
.
* Fix selectable prop in the backend (#6135 )
* Add to init
* Fix events
* add changeset
* Add code
* add changeset
* Fix typo
* Add code
* Fix highlighted text typo
* remove from docs
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix video (#6140 )
* fix video
* add changeset
* fixes
* fixes
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* fix some tests on mac
* fix circular dependency with client + upload (#6143 )
* fix circular dependency
* add changeset
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix image double change bug (#6146 )
* fix test
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* make lite private (#6147 )
* make lite private
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* fix dropdown arrow size (#6148 )
* fix dropdown arrow size
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* swap `mode` on the frontned to `interactive` to match the backend (#6149 )
* JS READMEs and Storybook on Docs (#6142 )
* changes
* changes
* working
* remove storybook path
* add changeset
* pin code
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Small change to make `api_open=False` by default (#6138 )
* set api_open to False by default
* add changeset
* tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Image v4 (#6094 )
* simplify image interface
* changes
* asd
* asd
* more
* add code (#6095 )
* more
* fix tests
* add changeset
* fix client build
* fix linting
* fix test
* lint
* Fix tests + lint
* asd
* finish
* webcam selection
* fix backend
* address comments
* fix static checks
* fix everything
* add changeset
* Apply suggestions from code review
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fix examples
* fix tests
* fix tests
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix fallback demo app template code (#6129 )
* Add test
* add changeset
* Add JSON note
* Fix test
* Update gradio/cli/commands/components/_create_utils.py
* Update test/test_gradio_component_cli.py
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fix video path
* Revert "fix video path"
This reverts commit 5916b3dc8a
.
* Fix selectable prop in the backend (#6135 )
* Add to init
* Fix events
* add changeset
* Add code
* add changeset
* Fix typo
* Add code
* Fix highlighted text typo
* remove from docs
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix video (#6140 )
* fix video
* add changeset
* fixes
* fixes
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Small fix to website header (#6121 )
* header-fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* fix some tests on mac
* fix circular dependency with client + upload (#6143 )
* fix circular dependency
* add changeset
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix image double change bug (#6146 )
* fix test
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* make lite private (#6147 )
* make lite private
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* fix dropdown arrow size (#6148 )
* fix dropdown arrow size
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* swap `mode` on the frontned to `interactive` to match the backend (#6149 )
* js param
* Don't serve files in working directory by default (#6128 )
* don't serve files in working directory by default
* add changeset
* handle examples
* remove dotfiles
* guide
* guide
* fix tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix issues with website deploy (#6151 )
* fixes
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Swap websockets for SSE (#6069 )
* changes
* changes
* changes
* changes
* changes
* merge
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* add changeset
* changes
* changes
* changes
* add changeset
* changes
* changes
* changes
* add changeset
* changes
* changes
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* add changeset
* Fix client tests sse branch (#6150 )
* Switch spaces
* Fix tests
* Add code
* changes
* changes
---------
Co-authored-by: Ali Abid <aabid94@gmail.com>
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
* Remove duplicate `elem_ids` from components (#6152 )
* remove elem_ids from components
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Moves `gradio_cached_folder` inside the gradio temp direcotry (#6155 )
* cache -> temp
* restore
* add changeset
* add exception for cached examples
* security policy
* join
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Remove `show_edit_button` param in Audio (#6153 )
* remove `show_edit_button` param
* add changeset
* hide overflow
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Remove interpretation for good (#6154 )
* interpretation
* notebooks
* add changeset
* removed from readme
* lint
* fix demo
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* add changeset
* notebooks
* Make output components not editable if they are being updated (#6157 )
* make outputs not editable
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* JS Component Documentation (#6136 )
* Simple template
* More changes
* Properly handle change event video
* add changeset
* Add code'
* Fix play/pause bugs
* add changeset
* atoms doc
* Chatbot
* add changeset
* Some more components
* Add code
* add changeset
* Lint
* add changeset
* Simple template
* More changes
* Properly handle change event video
* add changeset
* Add code'
* Fix play/pause bugs
* add changeset
* atoms doc
* Chatbot
* add changeset
* Some more components
* Add code
* add changeset
* Lint
* Merge in latest changes
* Fix typo
* Fix build
* Lockfile
* Fix
* Fix interactive
* correct the title
* add versions to readme
* only document public
* add changeset
* Remove simplevideo and audio
* add changeset
* changes to readmes
* add changeset
* remove tootils and theme
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Improve Video Component (#6118 )
* change source to sources + add length logic
* add changeset
* add min/max logic
* tweak tests
* change sources
* formatting
* fix test_components.py test
* add trimming
* add changeset
* add keyboard events to trimming timeline
* UX improvements
* Add fix
* add loading status
* flip if webcam is only source
* generate notebooks
* remove scroll
* add file extension
* trim (#6156 )
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* add loading indicator to video
* ensure correct file ext is used
* tweak
* change where ffmpeg is loaded
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* chore: update versions (beta) (#6122 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* V4 fixes (#6161 )
* changes
* changes
* Pin 8.9 (#6162 )
* head
* Pending outputs fix (#6160 )
* fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* format
* fixes
* add changeset
* format
* add changeset
* Clean root url (#6159 )
* clean
* cleanup
* formatting
* add changeset
* fe
* add changeset
* selectable
* block
* fix
* fixes
* fix update
* gradio/events
* configs
* remove
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4 fixes (#6167 )
* changes
* changes
* Fixes remaining backend tests (#6165 )
* fix backend tests
* add changeset
* changes
* fix strings
* lint
* lint
* fixes
* delete test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* fixes
* testing something (#6173 )
* merge
* strip dangling svelte imports (#6171 )
* leave pre-release mode (#6170 )
* Final touches main (#6174 )
* remove pinned version
* Remove pins
* add changeset
---------
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Part I: Remove serializes (#6177 )
* remove serializse
* lint
* add changeset
* lint
* fix test
* fix tests
* fix final test
* fix tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Queue concurrency count (#6172 )
* changes
* add changeset
* changes
* changes
* changes
* Update client/python/test/conftest.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* changes
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Allow data at queue join (#6182 )
* changes
* add changeset
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Remove gr.mix (#6184 )
* remove mix
* add changeset
* fix script
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Cleanup theme vars (#6183 )
* changes
* chaeneas
* add changeset
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fix (#6185 )
* fix
* fixes
* fix
* notebook
* fix
* remove print
* remove print
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-10-31 10:11:17 -04:00
pngwn
e16b4abc37
chore: update versions ( #6039 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-31 13:20:18 +00:00
aliabid94
79c8156ebb
Queue concurrency count ( #6172 )
...
* changes
* add changeset
* changes
* changes
* changes
* Update client/python/test/conftest.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* changes
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-10-31 02:41:19 -07:00
pngwn
287fe67828
Version 4 development branch ( #5498 )
...
* squash commit
* BugFix: Make FileExplorer Component Templateable (#5933 )
* Make FileExplorer templateable
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix notebooks (#5935 )
* V4: Update Component pyi file (#5937 )
* Add code
* add changeset
* delete
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4: Use beta release versions for '@gradio' packages (#5938 )
* Fix versions
* add changeset
* fix
* add changeset
* fix
* add changeset
* Fix
* fix preview
* add changeset
* final fix
* add changeset
* fix
* add changeset
* fix
* add changeset
* revert change
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* maybe fix (#5946 )
* Merge main again (#5948 )
* maybe fix
* fix
* Merge main again (#5949 )
* maybe fix
* fix
* weird weird weird
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Merge main again (#5950 )
* maybe fix
* fix
* weird weird weird
* fix
* log
* log
* fix changesets
* rererefactor frontend files (#5960 )
* do all the things
* add changeset
* remove codemod
* fix
* change casing
* condense upload button
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Strip vite import warning (#5962 )
* Add code
* Remove comment
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5769 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* release wasm (#5963 )
* release wasm
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Wasm release (#5964 )
* release wasm
* release wasm
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5965 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Add json schema unit tests (#5970 )
* Add tests
* add changeset
* Fix tests
* api-info
* Add test
* Add test
* Add email tests
* 3.8 fix 🙄
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4: Simple textbox (#5990 )
* Simple textbox
* add changeset
* Trim down events
* Trim
* Clean up change event
* Add comment
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* File upload optimization (#5961 )
* Use custom multipart parser
* add changeset
* remove print
* Add comment
* Lint
* fix code
* remove print
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Removes deprecated arguments and parameters from v4 (#5968 )
* Removes deprecated arguments and methods for v4
* remove update
* style
* add changeset
* added params
* typign
* fixed all of the typing
* tests
* fix layouts
* layout
* fix config
* fix
* fix form
* fix
* fix blocks tests
* fix some more tests
* lint
* fix test routes
* doc
* notebooks
* remove doc
* format
* format
* remove group
* label docstring
* remov test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4: Simple dropdown (#5996 )
* Add code
* lint
* comment
* add changeset
* revert
* Fix update + docstring cleanup
* Add code
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* pass props to example components and to example outputs (#6014 )
* pass props to example components and to example outputs
* add changeset
* make util less egenric/ more useful
* fix demo
* fix demo
* fix
* fix test
* Fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
* Format js in v4 branch (#6016 )
* Format v4 branch js
* add changeset
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4: Fix component update bug (#6027 )
* Fix tests + bugs
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* lockfile update
* Fixing test
* fix test
* Add a cli command to list available templates (#6018 )
* Add code
* dataset
* Add test
* add changeset
* add changeset
* add changeset
* add changeset
* Exclude FormComponent
* Paginate the output
* No colors but emojis:
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* fix tests (#6046 )
* fix storybook (#6065 )
* fix storybook
* add changeset
* fix
* add changeset
* fix
* fix
* fix components
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* remove dupe component (#6067 )
* remove dupe component
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Simplify File Component (#6044 )
* Add code
* Add code
* Add code
* Reuse code UploadButton
* Use two files for UploadButton
* Address feedback
* Lint
* add changeset
* Update js/uploadbutton/shared/UploadButton.svelte
Co-authored-by: pngwn <hello@pngwn.io>
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
* Clean up backend of `File` and `UploadButton` and change the return type of `preprocess()` from TemporaryFIle to string filepath (#6060 )
* changes
* add changeset
* upload button
* file
* add changeset
* valid types
* fix tests
* address review
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix Dropdown Example component and example processing logic (#6075 )
* fix examples
* helpers
* dropdown
* fix cc build (#6079 )
* fix cc build
* add changeset
* throw error if build fails
* fix entry points
* add changeset
* fix lockfile
* Add test
* update workflow
* try resolve
* lint 🙄
* Use xfail
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
* Fixes markdown rendering in examples (#6071 )
* Fixes markdown rendering in examples
* add changeset
* update delimiters
* format
* format
* docstrings
* test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Proposal: sample demo for custom components should be a `gr.Interface` (#6077 )
* update sample demo to interface
* add changeset
* modify
* Update gradio/cli/commands/components/_create_utils.py
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
* added layout and static
* fix
* refine
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
* WIP: Fix docs (#6082 )
* Website fix
* add changeset
* Fix code
* pin version
* Add code
* skip code
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Pending events behavior (#5826 )
* enter changesets pre-release mode
* release first version (#5500 )
* release packages
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* fix changeset (#5502 )
* add changeset
* release first version
* Custom components (#5507 )
* Add flag
* Copy front-end
* Add backend code
* Remove breakpoint
* Fix init
* Add code
* File reorg
* Fix types
* Upload files
* Fix code
* Custom components
* Add code
* Client changes
* More changes
* Add code
* Add code
* Fix reversion
* build hook integration
* Add code
* rm file
* Add code
* rename cli
* Add code
* Nicer cli
* Add display class
* Add backend devmide
* Add code?
* Add code
* Add paths and fix reload mdoe
* Fix .then
* changes
* fix
* fix
* changes
* changes
* changes
* Fix versions
* Fix wheel build from source
* Add code
* Get no template case working
* Cc fe (#5509 )
* tweaks
* fix 18n
* fix 18n
* tweaks
* Change name
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
* Do not use live display for dev mode
* Clean up front-end server print statements a little bit
* Fix success event
* Cc fe 2 (#5526 )
* tweaks
* fix examples
* fix backend port
* fix things
* fix
* Fix json component flagging
* fix
* fuix
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
* Fix template (#5533 )
* Fix type hint (#5536 )
* fix custom components when installed from wheel (#5552 )
* Fix all demos custom components (#5555 )
* Fix all_demos
* Fix issues
* trigger ci
* add changeset
* Fix merge
* lockfile
* Add code
* add code
* Fix command
* Add code
* Fix highlighted text
* fix interactive highlighted text
* tweak ci
* Disable example caching for load right now
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* image fixes (#5589 )
* Add flag
* Copy front-end
* Add backend code
* Remove breakpoint
* Fix init
* Add code
* File reorg
* Fix types
* Upload files
* Fix code
* Custom components
* Add code
* Client changes
* More changes
* Add code
* Add code
* Fix reversion
* build hook integration
* Add code
* rm file
* Add code
* rename cli
* Add code
* Nicer cli
* Add display class
* Add backend devmide
* Add code?
* Add code
* Add paths and fix reload mdoe
* Fix .then
* changes
* fix
* fix
* changes
* changes
* changes
* Fix versions
* Fix wheel build from source
* Add code
* Get no template case working
* Cc fe (#5509 )
* tweaks
* fix 18n
* fix 18n
* tweaks
* Change name
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
* Do not use live display for dev mode
* Clean up front-end server print statements a little bit
* Fix success event
* Cc fe 2 (#5526 )
* tweaks
* fix examples
* fix backend port
* fix things
* fix
* Fix json component flagging
* fix
* fuix
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
* Fix template (#5533 )
* Fix type hint (#5536 )
* fix custom components when installed from wheel (#5552 )
* Fix all demos custom components (#5555 )
* Fix all_demos
* Fix issues
* trigger ci
* add changeset
* Fix merge
* lockfile
* Add code
* add code
* Fix command
* Add code
* Fix highlighted text
* fix interactive highlighted text
* tweak ci
* fix image uploads
* add changeset
* remove changeset
* add changeset
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Support Literal Typehints (#5591 )
* Fix updateable
* Deploy for failing actions
* fix enum
* Add code
* remove gradio lite from publish ci
* fix
* fix
* chore: update versions (beta) (#5501 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix js deps in cli and add gradio-preview artifacts to build (#5610 )
* Fix js dependencies in cli
* Add preview to build command
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5612 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* backend linting (#5613 )
* backend linting
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Publish js theme (#5615 )
* Publish js theme
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5614 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Add code (#5617 )
* Add docstring to trigger release (#5618 )
* Add docstring
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5619 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* fix build and broken imports (#5620 )
* fix broken import
* fix build scripts
* add changeset
* Update js/statustracker/static/index.svelte
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5621 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix esbuild (#5624 )
* fix build
* fix build
* add changeset
* fix build
* fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5626 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix esbuild (#5629 )
* fix build
* fix build
* add changeset
* fix build
* fix
* asd
* more fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* asd (#5630 )
* chore: update versions (beta) (#5631 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Some minor v4 fixes (#5637 )
* Add code
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Publish all components to npm (#5648 )
* Publish image component
* publish components
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5638 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix front-end imports + other misc fixes (#5649 )
* Fix console error
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Add overwrite flag to create command (#5651 )
* Add overwrite flag to create command
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5650 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Make layout components templateable (#5665 )
* Split out layouts
* Refactor cli
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Patch fixes (#5678 )
* Handle lowercase template name frontend
* Lint
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix build and file route (#5680 )
* Add code
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5662 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* V4 fix typing (#5686 )
* Add examples for series and parallel
* v4 fix typing
* add changeset
* Fix
* Fix
* Fix 3.8
* Fix typing 3.8
* Lint
* Add code
* Add key
* Fix typing
* Add code
* Fix deps
* Fix fastapi
* Fix version
'
:
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Use overrides (#5695 )
* Use overrides
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* ensure client is copied along with components (#5709 )
* ensure client is copied along with components
* add changeset
* add changeset
* chore: update versions (beta) (#5688 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* fix build config (#5710 )
* Fix python unit tests for v4 (#5715 )
* Add code
* Fix tests
* Add ci
* Add code
* fix test_blocks
* More fixes
* Last changes
* add changeset
* Add code
* Continue for the sake of some green ci
* Proper api info
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Better test dir check (#5719 )
* FIx test-dir check
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Use path to npm executable in subprocess (#5736 )
* Use path to npm in subprocess
* Fix dev mode too
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Add Error + test (#5738 )
* Add Error + test
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix component regex (#5739 )
* Add code
* Fix component regex
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix layout templates (#5740 )
* Fix templates
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix template remaining components (#5743 )
* add code
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* --overwrite deletes previous content (#5744 )
* Add code
* Add code
* add changeset
* Add test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Support call method (#5751 )
* Support call method
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix windows ci build (#5752 )
* Try bash
* Use cross-env
* Trigger CI
* Fix comma
* add changeset
* Modify lock file
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix windows paths (#5745 )
* Use posix path
* add changeset
* add changeset
* Try normalize
* to_posix v2
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (beta) (#5717 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Simplify how files are handled in components in 4.0 (#5768 )
* Client and upload route hash files
* Refactor logic
* add changeset
* Add code
* View API fix
* Fix client tests
* Dumb windows fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix deployed demos on v4 branch (#5770 )
* Template fixes
* add changeset
* add changeset
* Fix streaming audio
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Name Endpoints if api_name is None (#5782 )
* Implementation and test
* add changeset
* fix lint
* Fix nits
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* pending events
* add changeset
* Set api=False for cancel events (#5851 )
* Set api=False for cancel events
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4: Set cache dir for some component tests (#5852 )
* Add code
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4: Use async version of shutil in upload route (#5853 )
* Use async shutil copy
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* trigger_mode
* changes
* undo
* undo
* add changeset
* undo
* add changeset
* image undo
* add changeset
* fix merge errors
* remove prints
* change
* fix
* fix error
* change
* quick fix
* trigger_mode param
* type
* value error
---------
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fixes: slider bar are too thin on FireFox (#5984 )
* firefox slider fix
* add changeset
* fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix remaining xfail tests in backend (#6073 )
* Add code'
* Add code
* Add code
* Fix dataset
* add changeset
* Add some comments
* Add recover_kwargs
* Remove from docstring
* Audio-to-audio
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix dev mode model3D (#5955 )
* Fix dev mode
* Lint
* add changeset
* Fix dev mode
* Lint
* remove console.log
* add changeset
* interactive fix
* Fix tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Dawood <dawoodkhan82@gmail.com>
* V4: Single-file implementation of form components (#6026 )
* Checkbox and number
* Number, Checkboxgroup, Radio, and Slider
* Format
* remove range
* Refactor checkbox
* Forgot to add
* Refactor
* Lint
* add changeset
* use rich emoji markup
* Fix ts
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Update logos for v4 (#6089 )
* update v4 logo
* add changeset
* size
* fix on website
* fix on demos
* add changeset
* favicon for demos
* margin on footer logo
* margin bottom to footer logo
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Add a stand-alone install command and tidy-up the fallback template (#6092 )
* Add code
* add changeset
* Add test
* Make install default
* Better error message
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4: Fix constructor_args (#6093 )
* Fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix: Move to cache in init postprocess + Fallback Fixes (#6107 )
* Add code and test
* restore
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* fix build (#6112 )
* fix build
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Update cold-lemons-roll.md
* Revert "Update cold-lemons-roll.md" (#6113 )
This reverts commit 20dbf90811
.
* Try to trigger a major beta release (#6114 )
* pyproject fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Delete bad changelog (#6115 )
* Delete bad changelog
* Revert "Delete bad changelog"
This reverts commit a8ca614eaf
.
* Delete bad
* formatting
* Revert "formatting"
This reverts commit 94f43859e7
.
* Improve Audio Component (#5966 )
* replace <audio> with wavesurfer: add recording, playing and trimming, playback
* add changeset
* merge cleanup
* improving recording styling
* add recording timer
* add trim region duration
* allow trimming recordings
* clean up playing logic
* add pause_recording event
* remove crop min/max
* add waveform options param
* remove trimmingmode and use mode
* streaming + cleanup
* add changeset
* clean up types
* mobile adjustments
* add min/max length + trim accessibility
* update pnpm lock
* amend source to a list and allow source switching
* fix no microphone found logic
* change undo logic to reset trims
* tweaks
* tweak reset logic
* ensure recording is sent to backend
* fix audio duration reactivity
* list tweak
* clean up
* change source -> sources + restore wasm changes
* formatting
* fix tests
* fix test
* add default sources value in fe + fix audio demos
* fix audio file name test
* add better sources typing
* ui test tweaks
* add default value in templates.py
* formatting
* remove unused prop
* add audio story
* add changeset
* revert sources changes
* remove story id
* fix be test
* fix be test
* fix notebooks
* formatting
* fix test
* fix test again
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
* Fix changesets 2 (#6116 )
* fix changesets
* release major
* Fix changesets 2 (#6117 )
* fix changesets
* release major
* asd
* fix version
* chore: update versions (beta) (#5973 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* v4
* Open source FRP server and allow `gradio` to connect to custom share servers (#6091 )
* add param
* add support for custom address
* add changeset
* share guide
* guide
* add params
* add changeset
* fix launch
* add test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Gradio custom component publish (#6098 )
* Add code
* add changeset
* F-string
* Add pwd
* Add source to space
* Add template
* Twine import
* add changeset
* ignore
* restore
* add changeset
* Address feedback
* Update gradio/cli/commands/components/publish.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix static issues with Lite on v4 (#6124 )
* fix missing props
* fix path to types
* add changeset
* fix path to i18n
* fix audio tests
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abid <aabid94@gmail.com>
* Refactor `Blocks.load()` so that it is in the same style as the other listeners (#6126 )
* restore decorator
* remove
* refactor load
* remove restriction
* add changeset
* add pyi
* add test
* add test
* fix tests
* metaclass
* future
* reduce'
* docstring
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Small change to make `api_open=False` by default (#6138 )
* set api_open to False by default
* add changeset
* tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Image v4 (#6094 )
* simplify image interface
* changes
* asd
* asd
* more
* add code (#6095 )
* more
* fix tests
* add changeset
* fix client build
* fix linting
* fix test
* lint
* Fix tests + lint
* asd
* finish
* webcam selection
* fix backend
* address comments
* fix static checks
* fix everything
* add changeset
* Apply suggestions from code review
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fix examples
* fix tests
* fix tests
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix fallback demo app template code (#6129 )
* Add test
* add changeset
* Add JSON note
* Fix test
* Update gradio/cli/commands/components/_create_utils.py
* Update test/test_gradio_component_cli.py
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fix video path
* Revert "fix video path"
This reverts commit 5916b3dc8a
.
* Fix selectable prop in the backend (#6135 )
* Add to init
* Fix events
* add changeset
* Add code
* add changeset
* Fix typo
* Add code
* Fix highlighted text typo
* remove from docs
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix video (#6140 )
* fix video
* add changeset
* fixes
* fixes
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* fix some tests on mac
* fix circular dependency with client + upload (#6143 )
* fix circular dependency
* add changeset
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix image double change bug (#6146 )
* fix test
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* make lite private (#6147 )
* make lite private
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* fix dropdown arrow size (#6148 )
* fix dropdown arrow size
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* swap `mode` on the frontned to `interactive` to match the backend (#6149 )
* JS READMEs and Storybook on Docs (#6142 )
* changes
* changes
* working
* remove storybook path
* add changeset
* pin code
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Don't serve files in working directory by default (#6128 )
* don't serve files in working directory by default
* add changeset
* handle examples
* remove dotfiles
* guide
* guide
* fix tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix issues with website deploy (#6151 )
* fixes
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Swap websockets for SSE (#6069 )
* changes
* changes
* changes
* changes
* changes
* merge
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* add changeset
* changes
* changes
* changes
* add changeset
* changes
* changes
* changes
* add changeset
* changes
* changes
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* add changeset
* Fix client tests sse branch (#6150 )
* Switch spaces
* Fix tests
* Add code
* changes
* changes
---------
Co-authored-by: Ali Abid <aabid94@gmail.com>
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
* Remove duplicate `elem_ids` from components (#6152 )
* remove elem_ids from components
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Moves `gradio_cached_folder` inside the gradio temp direcotry (#6155 )
* cache -> temp
* restore
* add changeset
* add exception for cached examples
* security policy
* join
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Remove `show_edit_button` param in Audio (#6153 )
* remove `show_edit_button` param
* add changeset
* hide overflow
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Remove interpretation for good (#6154 )
* interpretation
* notebooks
* add changeset
* removed from readme
* lint
* fix demo
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Make output components not editable if they are being updated (#6157 )
* make outputs not editable
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* JS Component Documentation (#6136 )
* Simple template
* More changes
* Properly handle change event video
* add changeset
* Add code'
* Fix play/pause bugs
* add changeset
* atoms doc
* Chatbot
* add changeset
* Some more components
* Add code
* add changeset
* Lint
* add changeset
* Simple template
* More changes
* Properly handle change event video
* add changeset
* Add code'
* Fix play/pause bugs
* add changeset
* atoms doc
* Chatbot
* add changeset
* Some more components
* Add code
* add changeset
* Lint
* Merge in latest changes
* Fix typo
* Fix build
* Lockfile
* Fix
* Fix interactive
* correct the title
* add versions to readme
* only document public
* add changeset
* Remove simplevideo and audio
* add changeset
* changes to readmes
* add changeset
* remove tootils and theme
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Improve Video Component (#6118 )
* change source to sources + add length logic
* add changeset
* add min/max logic
* tweak tests
* change sources
* formatting
* fix test_components.py test
* add trimming
* add changeset
* add keyboard events to trimming timeline
* UX improvements
* Add fix
* add loading status
* flip if webcam is only source
* generate notebooks
* remove scroll
* add file extension
* trim (#6156 )
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* add loading indicator to video
* ensure correct file ext is used
* tweak
* change where ffmpeg is loaded
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* chore: update versions (beta) (#6122 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* V4 fixes (#6161 )
* changes
* changes
* Pin 8.9 (#6162 )
* Pending outputs fix (#6160 )
* fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Clean root url (#6159 )
* clean
* cleanup
* formatting
* add changeset
* fe
* add changeset
* selectable
* block
* fix
* fixes
* fix update
* gradio/events
* configs
* remove
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* V4 fixes (#6167 )
* changes
* changes
* Fixes remaining backend tests (#6165 )
* fix backend tests
* add changeset
* changes
* fix strings
* lint
* lint
* fixes
* delete test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-10-31 04:46:02 +00:00
pngwn
35f58db405
chore: update versions ( #5940 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-17 23:38:35 -07:00
Yuichiro Tachibana (Tsuchiya)
11a3007916
Lite: Support opening the entrypoint HTML page directly in browser via the file:
protocol ( #5972 )
...
* Use a special fake hostname for the API access when the page is opened via the `file:` protocol
* Move js/app/src/lite/url.ts -> js/wasm/svelte/host.ts
* Add a comment
* Move js/wasm/svelte/host.ts -> js/wasm/network/host.ts
* add changeset
* Add a comment
* add changeset
* Update js/wasm/package.json adding a ESM subpath
* Fix `is_self_host()`
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-10-17 23:25:01 -07:00
pngwn
a46cb94870
chore: update versions ( #5831 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-16 13:30:41 -07:00
Jing Yang Fan
4e62b8493d
Ensure websocket polyfill doesn't load if there is already a global.Webocket
property set ( #5840 )
...
* conditional global variable check
* move conditional to if block
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-10-16 10:17:46 +01:00
Hari Om Bhardwaj
1d5b15a2d2
Assert refactor in external.py ( #5811 )
...
* Refactored assert statements to if statements
* format-addons
* format
* add changeset
* Update gradio/external.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* refactored video.py
* refactored all the assert statements with response
* add changeset
* add changeset
* Apply suggestions from code review
* Refactored documentation.py and few more files
* avoid circular
* Replaced all assert statements
* lint
* notebooks
* fix
* minor changes
* final changes according to tests
* Lint
* last fix
* fix
* fix utils test
* fix serialization error
* fix serialization error
---------
Co-authored-by: harry-urek <hariombhardwaj038@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-10-06 18:14:14 -07:00
pngwn
1265a9ac13
chore: update versions ( #5817 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-05 19:55:12 -07:00
Abubakar Abid
796145e2c4
Fix calls to the component server so that gr.FileExplorer
works on Spaces ( #5816 )
...
* changes
* add changeset
* changes
* demo
* file explorer
* lint
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-10-05 19:38:59 -07:00
pngwn
3d263ba007
chore: update versions ( #5796 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-05 14:10:45 -07:00
Freddy Boulton
c0fef44541
Revert replica proxy logic and instead implement using the root
variable ( #5776 )
...
* Revert "Fix for deepcopy errors when running the replica-related logic on Spaces (#5722 )"
This reverts commit dba651904c
.
* Revert "Fully resolve generated filepaths when running on Hugging Face Spaces with multiple replicas (#5668 )"
This reverts commit d626c21e91
.
* add changeset
* Trigger local
* add changeset
* add to root
* add changeset
* strip url
* resolve root
* changes
* fix
* format
* logs
* format
* add changeset
* reverse order
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-10-05 11:17:16 -07:00
aliabid94
e4a307ed6c
Add component <-> server direct communication support, as well as a "file explorer" component ( #5672 )
...
* changes
* changes
* add changeset
* add changeset
* Server fns ext (#5760 )
* start changes
* changes
* changes
* fix arrows
* add changeset
* rename demo
* fix some ci
* add changeset
* add changeset
* fix
* remove configs
* fix
* fix
* add changeset
* fixes
* linting
* Update gradio/components/file_explorer.py
* notebook
* typing
* tweaks
* fixed class method problem
* fix test
* file explorer
* gr.load
* format
* tweaks
* fix
* fix
* fix
* fix
* final tweaks + changelog
* changelog
* changelog
* changelog
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-10-05 14:20:01 +01:00
gibiee
caeee8bf78
ensure the client does not depend on window
when running in a node environment ( #5787 )
...
* modify url_params
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-10-05 14:14:10 +01:00
pngwn
5d5ddcfa9b
chore: update versions ( #5786 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-04 15:46:45 +01:00
Yuichiro Tachibana (Tsuchiya)
6e56a0d9b0
Lite: Websocket queueing ( #5124 )
...
* Create a Wasm-emulated WebSocket connection and fix @gradio/client to inject it
* Explicitly set the default response class for the Wasm mode
* add changeset
* Fix is_self_origin() to compare only hosts and rename it to is_self_host()
* Fix Blocks.close() to cancel async tasks in the case of Wasm and call it from wasm_utils.register_app() to dispose an old app instance
* Update comment
* Hold the asyncio.Task objects and cancel them at `Blocks.close()`
* Add try-except to handle the case where `events` is not set to `queue.active_jobs` when `queue.process_events` is called
* Format queueing.py
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-10-04 18:19:09 +09:00
pngwn
898668596d
chore: update versions ( #5712 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-28 12:06:09 -07:00
pngwn
78e7cf5163
ensure internal data has updated before dispatching success
or then
events ( #5705 )
...
* ensure internal data has updated before dispatching then or success events
* ensure internal data has updated before dispatching then or success events
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-09-28 11:19:59 -07:00
Ali Abdalla
84e03fe506
Adds copy buttons to website, and better descriptions to API Docs ( #5721 )
...
* add missing docstring to highlightedtext
* add description to return types in api_docs
* add copy buttons to docs
* fix up descriptions for filepaths
* add copy buttons to every codeblock
* add changeset
* fix backend tests
* add changeset
* better worded descriptions
* fix color_map description
* fix formatting in code snippets
* add space
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-27 23:23:01 -07:00
pngwn
543f327723
chore: update versions ( #5596 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-26 14:50:39 -07:00
D V
40de3d2178
add query parameters to the gr.Request
object through the query_params
attribute ( #5681 )
...
* add queryParams to frontend request to backend
* add changeset
* update guide
* added docs
* add changeset
* fix tests
* client
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-25 22:25:09 -07:00
Abubakar Abid
c57f1b75e2
Fix functional tests ( #5682 )
...
* unnamed
* add changeset
* add build
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-25 13:26:10 -07:00
Abubakar Abid
ea0e00b207
Prevent Clients from accessing API endpoints that set api_name=False
( #5653 )
...
* only autoscroll if user hasn't scrolled up
* docstring
* format
* client
* add changeset
* add changeset
* restore
* add changeset
* fix python client, add test
* format
* js client
* format
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-22 12:55:42 -07:00
pngwn
51a0a2e557
chore: update versions ( #5578 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-18 20:54:50 -07:00
D V
52f7831751
refactor: Use package.json for version management ( #5514 )
...
* refactor: Use package.json for version management
- uses package.json file for version management.
- updated the regex pattern.
- removed the logic that creates or updates the version.txt file
* load version through package.json
* fix code duplication
* add changeset
* add changeset
* fixes
* fix
* package version
* fix
* typing
* typing
* changes
* add changeset
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-15 16:23:52 -07:00
pngwn
710cbb67fc
chore: update versions ( #5419 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-07 13:26:14 -07:00
Freddy Boulton
26fef8c7f8
Skip view_api request in js client when auth enabled ( #5412 )
...
* Add code
* add changeset
* Remove console
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-06 15:19:41 -04:00
pngwn
d5d0e418c9
chore: update versions ( #5361 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-01 17:27:32 -07:00
Freddy Boulton
119c834331
Faster reload mode ( #5267 )
...
* This works
* Add code
* Final touches
* Lint
* Fix bug in other dirs
* add changeset
* Reload
* lint + test
* Load from frontend
* add changeset
* Use key
* tweak frontend config generation
* tweak
* WIP ipython
* Fix robust
* fix
* Fix for jupyter notebook
* Add checks
* Lint frontend
* Undo demo changes
* add changeset
* Use is_in_or_equal
* python 3.11 changes and no if __name__
* Forward sys.argv + guide
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-29 17:29:15 -04:00
pngwn
ba4c6d9e65
chore: update versions ( #5177 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-23 15:41:08 -07:00
aliabid94
7b8fa8aa58
Allow caching examples with streamed output ( #5295 )
...
* changes
* changes
* add changeset
* add changeset
* chages
* Update silver-clowns-brush.md
* changes
* chagers
* changes
* Update silver-clowns-brush.md
* change
* change
* change
* changes
* chages
* changes
* add changeset
* changes
* changes
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-08-23 11:47:07 -07:00
Freddy Boulton
390624d8ad
Enable streaming audio in python client ( #5248 )
...
* Add code
* Remove file
* add changeset
* add changeset
* Update chilly-fans-make.md
* lint
* Lint
* Add ffmpeg
* Lint
* Cleaner way to handle stream change
* Fix windows test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-21 12:15:36 -07:00
Ray Tri
730f0c1d54
Ensure gradio client works as expected for functions that return nothing. ( #5173 )
...
* fixed issue with the js client expecting optional api_info from python gradio runner
* add changeset
* add changeset
---------
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-14 14:50:32 +01:00
pngwn
643442e1a5
generate docs json in ci, reimplement main vs release ( #5092 )
...
* fixup site
* fix docs versions
* test ci
* test ci some more
* test ci some more
* test ci some more
* asd
* asd
* asd
* asd
* asd
* asd
* asd
* asd
* asd
* test
* fix
* add changeset
* fix
* fix
* fix
* test ci
* test ci
* test ci
* test ci
* test ci
* test ci
* test ci
* test ci
* test ci
* notebook ci
* notebook ci
* more ci
* more ci
* update changeset
* update changeset
* update changeset
* fix site
* fix
* fix
* fix
* fix
* fix ci
* render mising pages
* remove changeset
* fix path
* fix workflows
* fix workflows
* fix workflows
* fix comment
* tweaks
* tweaks
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-11 15:54:56 +01:00
pngwn
9d1bd28bdf
chore: update versions ( #5038 )
...
* chore: update versions
* update actions
* update changelog
* other changelgo
* extra
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-10 16:59:00 -04:00
Freddy Boulton
35856f8b54
Return final output for generators in Client.predict ( #5057 )
...
* Add code
* add changeset
* add changeset
* Add feat changeset
* Fix js code snippet
* Fix changelog
* Add test
* Delete code
* Lint
* Make fix for python client
* Make JS client changes
* Add submit line to error
* Changelog
* Lint
* Undo
* Add dual handling
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-09 13:03:56 -04:00
renovate[bot]
61129052ed
Update dependency esbuild to ^0.19.0 ( #5133 )
...
* Update dependency esbuild to ^0.19.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>
2023-08-08 12:43:34 -04:00
pngwn
1419538ea7
Refactor component directories ( #5074 )
...
* asd
* changes
* fix everything
* cleanup
* add changeset
* fix casing
* lockfile
* fix casing
* fix ci, enable linting
* fix test
* add changeset
* add changeset
* delete changeset
* fix dirs
* fix casing
* fix notebooks
* fix casing
* fix casing
* fix casing
* fix casing
* fix casing
* fix casing
* fix casing
* fix casing
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-03 23:01:18 +01:00
Abubakar Abid
67265a5802
Allow supporting >1000 files in gr.File()
and gr.UploadButton()
( #5075 )
...
* allow supporting >1000 files
* add changeset
* Update client/js/src/client.ts
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-03 15:29:03 -04:00
Freddy Boulton
2745075a26
Add deploy_discord to docs ( #5076 )
...
* Add deploy_discord to docs
* add changeset
* add jsons
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-08-03 10:07:13 -07:00
Abubakar Abid
136adc9ccb
Ensure gradio_client
is backwards compatible with gradio==3.24.1
( #5061 )
...
* fix to client
* add changeset
* lint
* add changeset
* add changeset
* add changeset
* add changeset
* pin
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-02 18:06:25 -04:00
Ray Tri
8b4eb8cac9
JS Client: Fixes cannot read properties of null (reading 'is_file') ( #5035 )
...
* In transform_output, typeof d can be an object even if the property is_file doesn't exist on d. Therefore invoking d.is_file will error out. This commit fixes that by failing quietly if the is_file property doesn't exist on d.
* Update client.ts - fixed spacing
fixed spacing
* add changeset
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-01 12:16:20 -04:00
pngwn
861d752a83
chore: update versions ( #4999 )
...
* chore: update versions
* undo diff
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-07-26 17:10:24 -04:00
Freddy Boulton
46e4ef67d2
Deploy ChatInterface as a discord bot ( #4960 )
...
* WIP
* Handle queue full message
* Add code
* Fix types
* Format
* Add docstring
* Rephrase
* cli conflicts
* Update client/python/gradio_client/templates/discord_chat.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* WIP
* Handle queue full message
* Add code
* Fix types
* Format
* Add docstring
* Rephrase
* cli conflicts
* Update client/python/gradio_client/templates/discord_chat.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update client/python/gradio_client/templates/discord_chat.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update client/python/gradio_client/templates/discord_chat.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update client/python/gradio_client/templates/discord_chat.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Figure out how slash commands work
* Lint
* Fix new name situation
* Dont auto archive
* add code
* Explain sync
* add changeset
* Update client/python/gradio_client/cli/deploy_discord.py
Co-authored-by: Omar Sanseviero <osanseviero@gmail.com>
* Make more general
* Fix check
* add changeset
* Add guide
* Step-by-step guide
* Add tip on login via cli
* Fix template - auto synch
* Add note on space sleeptime
* add changeset
* Add more info for feature
* Add img
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Omar Sanseviero <osanseviero@gmail.com>
2023-07-26 16:09:38 -04:00
pngwn
62306d9ed1
unified release process ( #4986 )
...
* Implement unified version and release mechanism for all python and javascript packages.
* Update gradio/package.json
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fix changelog
* fix changelog
* Update js/button/README.md
* Update .github/workflows/generate-changeset.yml
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-21 19:13:21 +01:00
Abubakar Abid
d51f61692b
changelog ( #4994 )
2023-07-21 15:48:09 +03:00
Freddy Boulton
7b18891aae
Client: Support endpoints that return layout components ( #4871 )
...
* Add code
* CHANGELOG
* Add code
* Use set
* Modify _setup_serializers instead
* Push up code
* Remove from serializing
* Add gradio_client changes
* Update requirements.txt
2023-07-17 13:21:54 -04:00
Abubakar Abid
9f072796a5
Pinning dependencies in requirements.txt ( #4885 )
...
* requirements
* pins
* clogs
* python multipart
* python multipart
* clogs
* clog
2023-07-12 21:03:53 -04:00
Freddy Boulton
9787d0284a
Use tempdir for all python unit tests tests ( #4882 )
...
* Use tempdir for all tests
* Disable telemetry automaticall for client
* Use configuration
* Push js
* Final comments
* Undo change
2023-07-12 11:19:39 -04:00
Freddy Boulton
59b492a082
Fix loading spaces with api_name=False ( #4886 )
...
* Fix api_name=False
* Add more to test
2023-07-12 11:09:06 -04:00
Freddy Boulton
cd551f70dd
Bump version ( #4861 )
2023-07-10 12:32:49 -04:00
aliabid94
280b5697eb
Mobile queue fixes ( #4742 )
...
* changes
* changes
* changes
* changes
* changes
* Styling for error, warning and info toasts (#4603 )
* create abstract toast component for info/warning/error
* add icons
* add light mode theming
* add theme mode check and dark mode styles
* update theme_mode on update
* clean up render of toast content
* replace dynamic css vars with toast type css selectors
* tweak colours
* change error pill border colour to align with toasts
* formatting
* fix failed test
* rename icon files and clean up css
* changes
* changes
* changes
* changes
* changes
* changes
* chanegs
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-07-07 14:39:06 -05:00
pngwn
7fa5e766ce
format ( #4810 )
2023-07-06 18:43:49 +01:00
Ali Abdalla
cd693708cf
Converting the website into sveltekit ( #3437 )
...
* index page
* demos page
* guides gallery page
* guides
* some docs work
* changes
* changes
* docs work
* refactor some to ssr
* more refactoring
* add metatags
* add special docs pages and improve nav
* fix prev next in combining
* add changelog
* Site slugs for new website (#3431 )
* safe slugs for docs
* add slugs to guides
* changes
* add flagging
---------
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
* make anchor tags visible on hover
* add anchor tags to docs
* fix @html in codeblocks
* fix demos in guides
* syntax highlighting code in example usage
* fix @html in changelog
* fix contributing lin
* fix assets in guides
* fix broken assets on build
* error page
* fix meta tags updating
* move guides to be /guides/[guide] instead of /[guide]
* add headers to sections and make them linkable - freddy feedback
* add guides section to docs
* tighten width and add second nav bar
* styling second nav bar
* smooth scrolling in docs and guides
* make components clickable in event listener graph
* load latest gradio.js
* menu bar on docs mobile
* scrolling highlight menu and remove base docs page
* vercel
* refactor guides
* fix slugs in docs
* fix < and code formatting in guides
* added search
* redirect all old links
* fix bad merge
* fix paths
* Fix css issue with spaces logo
* add status page link to footer
* add themes to docs
* fix new documentation.py path
* add python client docs
* make docs faster
* add clients ot docs
* colors
* convert to adapter static
* prerender
* fix broken paths in guides
* fix broken slugs
* Aliabd/website sveltekit test (#4572 )
* fixes to paths
* fixes
* typechecking
* fix
* fix
* fix
* types lib
* more type fixes
* extends fix
* typing fix
* typing fix
* json typing fix
* add jsons
* rollup
* tweak
* fix lockfile
* fix maybe
* fix maybe
* changes
* ui functional fix
* oops
* pnpm version
* fix app
---------
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-04 16:33:22 +03:00
aliabid94
6c5427230e
Create Warning, Info modals ( #4518 )
...
* changes
* changes
* changes
* changes
* changes
* Styling for error, warning and info toasts (#4603 )
* create abstract toast component for info/warning/error
* add icons
* add light mode theming
* add theme mode check and dark mode styles
* update theme_mode on update
* clean up render of toast content
* replace dynamic css vars with toast type css selectors
* tweak colours
* change error pill border colour to align with toasts
* formatting
* fix failed test
* rename icon files and clean up css
* changes
* changes
* changes
* changes
* changes
* changes
* chanegs
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-07-03 16:28:39 -05:00
Aarni Koskela
2544e7bd16
URL validation/access fixes ( #4695 )
...
* is_valid_url: share a requests session for performance
* Rename is_valid_url to probe_url (because that makes sense for what it does); add is_http_url_like
* Do not allow encode_url_to_base64 to encode error responses
* Do not allow download_tmp_copy_of_file to download error responses as valid files
* Changelog
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-30 10:25:33 -05:00
Abubakar Abid
409593e9cc
Updates to the API endpoints / docs, and fixing the Theme builder ( #4683 )
...
* view API fixes
* code snippet js
* changelog
* api name false
* examples
* client trigger tests
* fix typecheck
* black
* type
* typing
* typing
* update gif
* type ignore
* added tests
* format
* added test
* test
* fix guides
* snippet
* tests
* fix tests
* add test
* fix typing
* fix test
* remove comments
2023-06-29 14:05:25 -05:00
pngwn
8b0c680d9a
chore: update versions ( #4720 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-29 15:55:28 +01:00
Yuichiro Tachibana (Tsuchiya)
ab5d1ea0de
Fix the description field of client/js/package.json ( #4717 )
2023-06-29 12:57:46 +01:00
Yuichiro Tachibana (Tsuchiya)
4fbdefe94e
Gradio-lite (Gradio Wasm) ( #4402 )
2023-06-27 08:09:50 +01:00
Freddy Boulton
d1a46f161a
Use Literal Type Hint Where Possible ( #4608 )
...
* Use literal type hint
* Add type hint
* CHANGELOG
* PR review
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-21 15:13:12 -05:00
Freddy Boulton
2e351ec6f2
Fix bug duplicating spaces with default cpu hardware ( #4583 )
...
* Fix bug
* Add CHANGELOG
* Fix test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-21 14:57:24 -05:00
aliabid94
0909c35102
Duplicate spaces integration into gradio ( #4458 )
...
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
2023-06-21 12:25:25 -07:00
renovate[bot]
6a92e19a0d
chore(deps): update all non-major dependencies ( #4601 )
...
* chore(deps): update all non-major dependencies
* Update website/homepage/Dockerfile
* changelog
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-21 15:56:10 +01:00
pngwn
7e99ce74c7
chore: update versions ( #4358 )
2023-06-20 14:23:01 +01:00
Freddy Boulton
b7010fa0eb
Only run install steps in backend ci if not previously cached ( #4517 )
...
* dont install if cache
* Fix
* Fix client cache
* Potential fix
* Change key name
* Fix
* Use python command
* Build front-end in lint job
* Install
* Fix
* Build afterward
* Consolidate lint
* trigger ci
* Fix windows
* Use virtualenv
* New try
* Typo
* Fix typp
* Add full path
* Separate Linux and windows steps
* Typos
* shell
* trigger ci
* Fix
* use command
* Use cache for setup python too
* Separate cache for front-end
* trigger ci
* Add Don't lint on windows
* Add if changes
* Delete restore keys
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-16 15:34:06 -04:00
Freddy Boulton
2ed80b74b3
Fix client test that broke ( #4539 )
...
* Fix test
* Fix other test
* Add fix
2023-06-15 18:20:06 -04:00
Abubakar Abid
d65512cb3a
Fix output directory of files in client & when calling Blocks as function ( #4501 )
...
* output dirs
* remove
* remove
* remove
* changelog
* format
* add tests
* docstring
* changelog
* client
* blocks
* fix test
2023-06-14 17:08:10 -05:00
Freddy Boulton
afcc20801e
Deprecate python 3.7 ( #4484 )
...
* Remove versions from 3.7
* CHANGELOG
* from typing import Literal
* Remaning places 3.7
* Last few spots
* Use 3.8 in lint
2023-06-13 21:52:33 -04:00
Abubakar Abid
3d82094de2
Support PAUSED Space status when embedding ( #4438 )
...
* Support paused status
* fix
* changelog
* Update client/js/src/client.ts
Co-authored-by: pngwn <hello@pngwn.io>
* formatting
* added paused space
* formatting
* logs
* added test space, fixes
* Update client/js/src/client.ts
Co-authored-by: pngwn <hello@pngwn.io>
* remove logs
* fix
---------
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-09 02:20:16 -05:00
Freddy Boulton
4a58ccee39
Fix bug where file examples can be corrupted if has multiple extensions ( #4440 )
...
* Fix bug
* Add to changelog
* Add test
* Remove breakpoint
* fix test
* increment version
* update client version req
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-07 15:05:01 -05:00
WilliamRoyNelson
e364f81ffc
Increase version gradio-client version/changelog ( #4441 )
...
* Increase version gradio-client version/changelog
* req
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-07 14:18:32 -05:00
Abubakar Abid
d82dfb886d
Fix loading private Spaces ( #4430 )
...
* replace api key with hf_token
* removed extra slash
* changelog
* update notebooks
* lint
* changelog
* changelog
* revert demo
2023-06-07 13:55:05 -05:00
Freddy Boulton
bc6a1fad1c
Call mounted gradio app via api ( #4435 )
...
* Fix bug
* Add changelog
2023-06-06 10:40:56 -05:00
WilliamRoyNelson
20d066c0da
Add pypi classifiers to client pyproject.toml ( #4409 )
...
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-05 17:46:35 -05:00
pngwn
0dbd8f7fee
various client refactors + tweaks ( #4357 )
...
* changeset
* Add a type annotation on the `api` variable to which the return value of `view_config()` is assigned, and update the type annotation and exception handling on `view_config` as well (#4311 )
* Remove unnecessary @ts-ignore (#4314 )
* Remove unnecessary Promise wrapping another promise (#4313 )
* Remove unnecessary Promise wrapping another promise
* Remove an error handeler that may remove detailed error stacks
* changeset
* remove changeset
---------
Co-authored-by: pngwn <hello@pngwn.io>
* Stop using `let` for unchanged variables in `client.ts` (#4312 )
* Stop using `let` for unchanged variables in `client.ts`
* fixes
---------
Co-authored-by: pngwn <hello@pngwn.io>
---------
Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
2023-05-30 11:50:33 +09:00
pngwn
caceb7a5b1
chore: update versions ( #4283 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-29 16:30:54 -07:00
Yuichiro Tachibana (Tsuchiya)
0888175b0e
Fix typo in client/js/README.md ( #4310 )
...
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-29 14:04:00 -07:00
Yuichiro Tachibana (Tsuchiya)
b525b122dd
Add overridden type annotations on normalise_file()
to remove @ts-i… ( #4315 )
...
* Add overridden type annotations on `normalise_file()` to remove @ts-ignore, and remove its unnecessary export
* changeset
---------
Co-authored-by: pngwn <hello@pngwn.io>
2023-05-28 19:40:20 -07:00
pngwn
1d0f0a9db0
Ensure error modal display as expected when using the queue ( #4273 )
2023-05-20 00:32:12 +01:00
Freddy Boulton
834afdd303
Temp file fixes ( #4256 )
...
* Fix bug
* Linting
* CHANGELOG
* Add tests
* Update test
* Fix remaining components + add tests
* Fix tests
* Fix tests
* Address comments
2023-05-20 06:22:12 +09:00
pngwn
1151c52535
fix info request in js client ( #4271 )
...
* fix info request in js client
* changelog
2023-05-19 10:58:42 -04:00
Aarni Koskela
9ece3b43b9
Upgrade black to 23.3 ( #4259 )
...
* Upgrade black
* Conservatively upgrade packaging too since it's black's dependency
2023-05-18 11:04:59 -04:00
pngwn
d0e0c81046
chore: update versions ( #4207 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-16 22:57:49 +01:00
pngwn
c3dadaebbe
fix cancels ( #4225 )
...
* fix cancels
* changelog
* refactor to make it work
2023-05-16 22:37:28 +01:00
pngwn
a26e9afde3
Fix client filepaths ( #4202 )
...
* transform returned paths to useful URLs
* changeset
* update app
* revert
* revert
* changelog
* Update client/js/src/client.ts
Co-authored-by: aliabid94 <aabid94@gmail.com>
* format
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabid94 <aabid94@gmail.com>
2023-05-16 22:04:51 +01:00
Abubakar Abid
d6c93228d9
Some tweaks to the Client ( #4230 )
...
* parameter names
* tweaks
* separate out serialize
* fix
* changelog
* fix
* fix
* improve test
2023-05-16 14:32:42 -04:00
pngwn
da5b4ee117
Fix semiver import ( #4201 )
2023-05-14 10:42:02 +01:00
pngwn
83134c10eb
client docs tweaks ( #4196 )
...
* ci typo
* fix
* again
* again
* again
* ignore workbench
* small tweaks for publish + docs
2023-05-12 23:24:30 +01:00
pngwn
c723f7f2c9
chore: update versions ( #4188 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-12 22:07:07 +01:00
pngwn
963c2d26ee
3712 js client ( #3899 )
2023-05-12 16:22:25 +01:00
Abubakar Abid
fcf744a4a9
hotfix for test ( #4173 )
...
* hotfix for test
* removed comment
2023-05-11 16:49:41 -05:00
Tom Aarsen
02bd90d7c1
[Docs] Resolve numerous typos ( #4170 )
...
* Resolve numerous typos
* Delete test.py
* Run generate_notebooks
* notebooks
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-11 15:20:41 -05:00
Abubakar Abid
e6198752c6
Adds missing components to gradio client serializing's component mapping ( #4167 )
...
* add missing serialization
* format
* update release note format
* update release note format
* fix test
2023-05-11 11:33:14 -05:00
Abubakar Abid
253410c78d
simplify format of changelog ( #4163 )
2023-05-11 08:11:49 -05:00
Freddy Boulton
3227a9b703
Fix api info for File component ( #4153 )
...
* Fix output file type info
* Fix example inputs
* CHANGELOG
* Update client
* Add test
* Bump version
* Bump min client version
2023-05-10 19:52:07 -04:00
Freddy Boulton
5e2c3c9ed6
Fix python client test ( #4138 )
...
* Fix python client test
* CHANGELOG
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-10 10:13:52 -05:00
Freddy Boulton
a65c4b5927
Bumpt client version ( #4125 )
2023-05-09 12:53:33 -04:00
Freddy Boulton
c7f4a88150
Dont send request to /info
if version before 3.28.3 ( #4109 )
...
* Add code
* Lint
* CHANGELOG
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-08 17:18:28 -04:00
Abubakar Abid
dccf68d914
Removing "State" from view API info ( #4107 )
...
* wip pr
* update client version
* update space fetcher
* changelog, workflow
* fix not flaky tests
* lint
* v2
2023-05-08 15:47:40 -05:00
Freddy Boulton
b66ecff671
[WIP] Language Agnostic Typing in /info
route ( #4039 )
...
* First commit
* All serializers
* Remove output type
* Add route
* Format json
* Modify dropdown and slider choices
* Fix impl
* Lint
* Add tests
* Fix lint
* remove breakpoint
* Tests passing locally
* Format code
* Address comments
* Use union + fix tests
* handle multiple file case
* Add serializer to info payload
* lint
* Add to CHANGELOG
* grc version
* requirements
* fix test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-05 19:10:34 -05:00
Aarni Koskela
d1853625fd
More Ruff rules ( #4038 )
...
* Bump ruff to 0.0.264
* Enable Ruff Naming rules and fix most errors
* Move `clean_html` to utils (to fix an N lint error)
* Changelog
* Clean up possibly leaking file handles
* Enable and autofix Ruff SIM
* Fix remaining Ruff SIMs
* Enable and autofix Ruff UP issues
* Fix misordered import from #4048
* Fix bare except from #4048
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-04 21:54:23 -05:00
Aarni Koskela
4d629f04cc
Upgrade pyright to 1.1.305 ( #4042 )
2023-05-02 13:20:35 -05:00
1lint
f97b18ec9d
Allow decoding b64 string without header in processing utils ( #4031 )
...
* allow decoding b64 string without headers
* install gradio-client in edittable mode
* update GH actions
* add test for decoding headerless b64
* add test for decoding headerless b64 image
* some linting
* fix test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-01 18:24:54 -05:00
Aarni Koskela
12a97746ff
Ruff update + strictening ( #3979 )
...
* Update ruff to 0.0.263
* Get rid of bare except:s
* Fix two Ruff E731s by moving expand_{color,size} to the relevant classes
* Fix Ruff E731 and some variable shadowing in theme builder
* Fix remaining Ruff E731s
* Get rid of unused Ruff ignores
* Fix ruff B904 issues (raise from)
* Fix Ruff B007: loop-control variable not used
* Fix Ruff B011 (do not assert false)
* Remove unused args and kwargs from Progress.tqdm() (spotted via Ruff B026)
* Fix mutable argument default in CheckboxGroup
* Noqa ABC-related lint warnings for Interpretable
* Add missed assert in test_queueing (ruff B015)
* Enable ruff B
* Enable ruff C and fix issues
* Add changelog
* Add UP03[012] after #3984
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-28 17:59:42 -04:00
Abubakar Abid
847247e1dd
version ( #3990 )
2023-04-27 16:35:55 -04:00
Freddy Boulton
2a59ec04fa
Fix view_api bug where unnamed rotes where showing api_name instead of fn_index ( #3972 )
...
* Fix view_api bug
* Add to changelog
* Rework test
2023-04-26 18:38:46 -04:00
Aarni Koskela
37d52a753c
CI: only run backend lints once, not in all test environments ( #3960 )
...
* CI: only run backend lints once, not in all test environments
* Add needses
2023-04-26 15:41:06 -04:00
Freddy Boulton
f886045535
Use local demos for client tests ( #3975 )
...
* Fix tests
* Fix tests
* Address comments
2023-04-26 11:11:28 -04:00
Freddy Boulton
d835c9a816
Support gr.Progress() in python client ( #3924 )
...
* Add progress message
* CHANGELOG
* Dont use pydantic
* Docs + local test
* Add gr to requirements
* Remove editable install
* make a bit softer
2023-04-24 12:52:10 -04:00
Tenzin
3b114cbc2b
Fixes typos ( #3931 )
...
* Fixes typos
* Update CHANGELOG.md
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-04-21 11:00:57 -04:00
Abubakar Abid
7a04ebe7fd
Fix some documentation-related issues in Guides ( #3903 )
...
* client doc fixes
* simplify demo
* added guides
* chatbot guide
* notebooks
* format
2023-04-19 14:38:11 -04:00
Abubakar Abid
1f246d9d1e
changelog 0.1.3 ( #3862 )
2023-04-14 17:47:43 -07:00
Freddy Boulton
7ef0439d3c
Fix video serializing in client ( #3860 )
...
* Fix video serializing in client
* Add to changelog
* Remove print
2023-04-14 17:07:19 -07:00
Abubakar Abid
d3b7f73bcf
Update view api page to use Python client ( #3765 )
...
* Update view api page
* simplify
* update
* changes
* changes
* updated info
* formatting
* changes
* fixes
* save
* moved
* remove test input
* tweaks
* formatting
* add raw
* serialize
* fixes
* refactor
* fixes
* fixes
* Fetch api
* lower case
* view api
* fix tests
* format
* rough design
* readme
* api docs
* examples
* format
* formatting
* format
* version
* client changes
* formatting
* update client
* more example inputs
* api docs fixes
* remove notebook
* fix demo
* demo notebook
* styling on code snippet
* formatting
* fix audio, model3d
* format
* fix tests
* version
* cleanup
* format
* format
* format
* fixes
* version
* fix tests
* version
* format
* test
* format
* changelog
* changelog
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-04-13 16:20:33 -07:00
Abubakar Abid
40b30a683b
[WIP] Client duplicate fixes ( #3843 )
...
* client duplicate fixes
* fixes
* formatting
* changes
* fixing tests
* formatting
2023-04-13 12:30:11 -07:00
Abubakar Abid
9f4f851d68
Python client Guide ( #3788 )
...
* guide
* guide
* Apply suggestions from code review
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* add cancel
* remove duplicated docs
* updates
---------
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2023-04-12 13:44:38 -07:00
Abubakar Abid
c3e239fca0
changelog for client ( #3761 )
2023-04-12 13:35:34 -07:00
Abubakar Abid
52d0885937
Allow client to be duplicated from an existing Space ( #3809 )
...
* client
* readme
* readme
* fixes
* cleanup
* error messages
* format
* updates
* format
* build
* fixes
* fix tests
* Update client/python/gradio_client/client.py
Co-authored-by: aliabid94 <aabid94@gmail.com>
* set timeout
* rename
* format
* rename
* sleep timeout
* format
* mock secrets
* format
* format
* docstring
* fix test
---------
Co-authored-by: aliabid94 <aabid94@gmail.com>
2023-04-12 13:26:37 -07:00
Freddy Boulton
00d7a5ce24
Python Client: Handle invalid space state ( #3822 )
...
* Raise error on status check
* Add BUILDING
* Remove SLEEPING
2023-04-11 22:38:17 -04:00
Greysuki
54af6ae290
Adding subtitles to gr.Video
( #3673 )
...
* v2 version now accepts video and subtitle format inputs.
* remove debug log and some format issue
* Update CHANGELOG.md
* Upload components.py and regenerate demo
* fix components and add comment to function
* fix postprocess return format
* changelog
* demo change to gr.Interface type
* fix file_types
* fixes
* added video serializer
* clean up preprocess
* clean up postprocess
* formatting
* frontend
* fixed serialization
* dataclass
* fix serialize
* version
* fix tests
* version
* changelog
* typing
* version
* changelog
* version
* versin
* fix tests
* fix tests
* backend
* test
* changes
* relax test
* fix demo
* notebook
* changes
* fix
* changes
* Update gradio/components.py
* Update client/python/gradio_client/client.py
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-04-11 16:06:48 -07:00
space-nuko
5a7610950e
Fix sketch tool gr.Image
not filling up the entire component size ( #3649 )
...
* Fix sketch tool `gr.Image` not filling up the entire component size
* Update changelog
* version
* version
* changes
* changes
* Update js/atoms/src/Block.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabid94 <aabid94@gmail.com>
2023-04-10 14:27:02 -07:00
Freddy Boulton
72c9636370
Python client cancel jobs ( #3787 )
...
* Working impl
* Add tests:
* formatting
* Fix typo
* Always reset iterator state
* Add httpx
* Fix test
* Fix test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-09 07:22:49 -07:00
Freddy Boulton
1def8df6dd
Python Client: Upload files via /upload for File components ( #3771 )
...
* Add tests
* Fix tests
* Remove redundant test
* fix for windows
* Add tests
* Fix tests
* Remove redundant test
* fix for windows
* Add uploadbtn
* Add support for upload btn
* revert
* Add size to FileSerializable
* Serialize multiple files
* lint
* Make changes to deserialize
* Fix multiple file upload case
* Modify test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-07 19:42:59 -04:00
Abubakar Abid
b456feb5c4
Py client verbose ( #3781 )
...
* verbose flags
* fixes
2023-04-06 16:41:37 -07:00
Abubakar Abid
5f8186218c
Document python client in gradio.app/docs ( #3764 )
...
* document py client
* more changes
* update docs
* changes
* fix tests
* formatting
* stash
* fix tests
* documentation
* more docs
* gradio client
* changes
* rework documentation
* add to docs
* modify dockerfile
* gradio client
* address feedback
* formatting
* gradio client version
* fix tests
* tweaks to website
---------
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-04-06 12:58:42 -07:00
Freddy Boulton
a828b6088c
Make Client Jobs Iterable ( #3762 )
...
* Add iterator
* Break if done
* Add test for early termination
2023-04-05 14:19:05 -04:00
Freddy Boulton
9325cba14c
Get Intermediate Results from Python Client ( #3694 )
...
* Add status + unit test (flaky) for now
* Install client
* Fix tests
* Lint backend + tests
* Add non-queue test
* Fix name
* Use lock instead
* Add simplify implementation + fix tests
* Restore changes to scripts
* Fix README typo
* Fix CI
* Add intermediate results to python client
* Type check
* Typecheck again
* Catch exception:
* Thinking
* Dont read generator from config
* add no queue test
* Remove unused method
* Fix types
* Remove breakpoint
* Fix code
* Fix test
* Fix tests
* Unpack list
* Add docstring
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-04 17:58:25 -04:00
Abubakar Abid
c4ad09b631
Adds a pypi release action for the gradio python client ( #3743 )
...
* release action
* fixes
* name
* Update version.txt
* Update version.txt
* update
* fixes
* version
* rename
* action
* fix token
* custom dir
* fixes
* change password
* revert back to token
* scripts
* remove twine
2023-04-04 13:51:51 -07:00
Freddy Boulton
070b304e09
CI tweaks ( #3752 )
2023-04-04 14:02:20 -04:00
Freddy Boulton
46ee226d8c
Add root_url to serializers in gradio_client ( #3736 )
...
* Add root_url to serializers
* Add url fix
* Respect fn parameter
* Fix docstring
* Add other test
* Pass to method
2023-04-04 13:35:12 -04:00
Freddy Boulton
b97a61b83a
Import Literal from typing extensions in client ( #3741 )
...
* Fix typing extensions
* Import typing_extensions
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-03 19:17:00 -07:00
Aarni Koskela
ef3862e075
Switch linting to Ruff ( #3710 )
...
* Sort requirements.in
* Switch flake8 + isort to ruff
* Apply ruff import order fixes
* Fix ruff complaints in demo/
* Fix ruff complaints in test/
* Use `x is not y`, not `not x is y`
* Remove unused listdir from website generator
* Clean up duplicate dict keys
* Add changelog entry
* Clean up unused imports (except in gradio/__init__.py)
* add space
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-03 15:48:18 -07:00
pngwn
48e8b113f4
node support for js client ( #3692 )
...
* bundle js client + gen types
* changeset
* changeset
* fix bugs
* fix deps
* fix deps
* format
* fix ci
* fix types
2023-04-03 14:33:01 +01:00
Abubakar Abid
f46f5f9867
Fix some bugs related to Python client ( #3721 )
...
* client format
* docs
* formatting
* fix tests
* fixed bug
* api endpoint changes
* fix tests
* fix tests
* formatting
* Add support for sessions [python client] (#3731 )
* client
* add state and tests
* remove session param
2023-04-02 17:28:46 -05:00
Freddy Boulton
da7d1df585
Fix Serializer Mapping ( #3722 )
...
* Fix mapping and test
* Bump gradio version
* Revert gradio version bump
2023-04-01 14:07:15 -05:00
Freddy Boulton
f73155ed42
Add status for Python Client Jobs ( #3645 )
...
* Add status + unit test (flaky) for now
* Install client
* Fix tests
* Lint backend + tests
* Add non-queue test
* Fix name
* Use lock instead
* Add simplify implementation + fix tests
* Restore changes to scripts
* Fix README typo
* Fix CI
* Add two concurrent test
2023-03-29 18:41:12 -04:00
Abubakar Abid
2a8c82de01
Documentation-related fixes to the python client ( #3663 )
...
* docstring
* add documentation
* added more serialization classes
* format
* info
* is valid
* formatting
* changes
* fixups
* fix tests
* machine readable
* formatting
* client
* format
* tweaks on printing
* version
* linting
* fix tests
* update pypi requirements
* updates
* type ignore'
* fixes
* formatting
2023-03-29 15:00:20 -07:00
Abubakar Abid
dc37ddb739
fix sort script ( #3696 )
...
* fix sort script
* formatting
* script
2023-03-29 16:39:40 -04:00
Freddy Boulton
0b91a3363b
Add job for python client ci ( #3674 )
...
* Add job + lint
* Fix path
* Fix path
* Fix path
* Checkout
* Add test requirements
* Fix syntax
* Fix test
* Lint
* Fix deps + README
* Move dependency
2023-03-28 18:52:56 -04:00
Omar Sanseviero
a46b1806bb
Nit in ValueError ( #3669 )
...
* Nit in ValueError
* CHANGELOG
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-03-28 13:23:15 -04:00
pngwn
ae4277a9a8
move files ( #3605 )
...
* move files
* commit the rest of the files
* fix lockfile
* fix workflow
* fix type errors
* fix tests
* only run ci when certain files change
* run correct test command in ci
* version
* fix pypi script
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-27 16:12:58 -07:00
Abubakar Abid
6e6121a1ac
Sets up the Python gradio
client ( #3300 )
...
* placeholder
* changelog
* added to readme
* client
* implement futures
* utils
* scripts
* lint
* reorg
* scripts
* serialization
* cleanup
* fns
* serialize
* cache
* callbacks
* updates
* formatting
* packaging
* requirements
* remove changelog
* client
* access token
* formatting
* deprecate
* format backend
* client replace
* updates
* moving from utils
* remove code duplication
* rm duplicates
* simplify
* galleryserializer
* serializable
* load serializers
* fixing errors
* errors
* typing
* tests
* changelog
* lint
* fix lint
* fixing files
* formatting
* type
* fix type checking
* changelog
* changelog
* Update client/python/gradio_client/client.py
Co-authored-by: Lucain <lucainp@gmail.com>
* formatting, tests
* formatting, tests
* gr.load
* refactoring
* refactoring'
* formatting
* formatting
* tests
* tests
* fix tests
* cleanup
* added tests
* adding scripts
* formatting
* address review comments
* readme
* serialize info
* remove from changelog
* version 0.0.2 released
* lint
* type fix
* check
* type issues
* hf_token
* update hf token
* telemetry
* docs, circle dependency
* hf token
* formatting
* updates
* sort
* script
* external
* docs
* formatting
* fixes
* scripts
* requirements
* fix tests
* context
* changes
* formatting
* fixes
* format fix
---------
Co-authored-by: Lucain <lucainp@gmail.com>
2023-03-23 15:33:44 -07:00