Hannah
b9afe93915
Rename eventSource_Factory
and fetch_implementation
( #8209 )
...
* rename eventSource_factory -> stream_factory + rename event_source -> steam
* rename fetch_implementation -> fetch
* rename fetch to _fetch due to global.fetch conflict
* add changeset
* format
* format
* format
* format
* fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-03 15:24:19 +02:00
pngwn
6a218b4148
rework upload to be a class method + pass client into each component ( #8179 )
...
* rework upload to be a class method + pass client into each component
* add changeset
* Update client/js/src/utils/upload_files.ts
* fix storybook
* review comments
* Apply suggestions from code review
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
* format
* ts fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-05-01 14:55:41 +00:00
pngwn
dfd03f38bd
chore: update versions ( #8069 )
...
* chore: update versions
* Revert @gradio/code
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2024-04-25 23:08:27 +00:00
pngwn
624f9b9477
make gradio dev tools a local dependency rather than bundling ( #8066 )
2024-04-19 18:41:40 -04:00
Freddy Boulton
2afca65419
Add max_file_size
parameter to launch()
that limits the size of files that can be uploaded in the Gradio app ( #7909 )
...
* File size limits
* Implementation
* add changeset
* Fix tests
* python client support
* lint
* fix test
* lint
* add changeset
* Set at the blocks level
* add changeset
* type check
* format
* lint
* lint
* Delete files as soon as they're encountered
* fix tests
* type hint 🙄
* Fix tests
* Fix below limit test
* add changeset
* Fix tests
* Add client file
* revert loop code
* Add to guides
* Pass in via gradio component
* add changeset
* Update loading status
* Make errors closeable
* add changeset
* Add code
* Lint
* Changelog highlight
* Fix i18n in storybook
* Address comments
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-19 15:38:53 -04:00
pngwn
ddc5d3866c
chore: update versions ( #7992 )
...
* chore: update versions
* changeset
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-18 18:09:10 +00:00
pngwn
b561a27816
chore: update versions ( #7914 )
2024-04-08 20:07:24 +01:00
pngwn
bbdbd28453
chore: update versions ( #7871 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-02 13:33:48 -04:00
pngwn
d95a1a44d6
chore: update versions ( #7826 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-27 14:25:36 -07:00
pngwn
bf5110a26b
chore: update versions ( #7771 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-25 12:35:44 -04:00
pngwn
4da194fc77
chore: update versions ( #7669 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-19 13:50:31 -07:00
pngwn
6683ab2589
chore: update versions ( #7630 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-08 16:35:23 -08:00
pngwn
d8636bb050
chore: update versions ( #7626 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-06 17:13:41 +00:00
pngwn
3d270d43f9
chore: update versions ( #7526 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-05 16:54:36 -08:00
Dawood Khan
26356a623c
Fixes: Invalid file_type breaks drag and drop ( #7559 )
...
* file type fix
* add changeset
* pdf test
* format
* test fixes
* file test fix
* file path fix
* new test
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-03-05 16:52:22 -05:00
pngwn
bacbc70fa1
chore: update versions ( #7463 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-22 13:29:11 -08:00
Dawood Khan
9c36572e32
Quick fix: File height overflow ( #7507 )
...
* quick fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-22 11:11:26 -08:00
pngwn
1e5e787999
chore: update versions ( #7426 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-16 12:28:13 -08:00
pngwn
7b84bc4f05
chore: update versions ( #7387 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-14 14:17:50 -08:00
pngwn
bb4126cc24
chore: update versions ( #7338 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-09 22:15:34 -08:00
Shubham raj
f35f615e33
Added remove button for every file in file preview, to remove individual file in gr.File() ( #7299 )
...
* Add remove button for every file in file preview
* add changeset
* tweak remove file button
* format
* dispatch change event
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-09 08:55:47 -08:00
Abubakar Abid
49d9c48537
[WIP] Refactor file normalization to be in the backend and remove it from the frontend of each component ( #7183 )
...
* processing
* add changeset
* changes
* add changeset
* add changeset
* changes
* changes
* clean
* changes
* add changeset
* add changeset
* root url
* refactor
* testing
* testing
* log
* logs
* fix
* format
* add changeset
* remove
* add root
* format
* apply to everything
* annoying fix
* fixes
* lint
* fixes
* fixes
* fixes
* fix tests
* fix js tests
* format
* fix python tests
* clean guides
* add changeset
* add changeset
* simplify
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-02-07 14:39:33 -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
Freddy Boulton
cae05c05ec
Fix single file upload display ( #7221 )
...
* Fix bug + add buggy story
* add changeset
* story fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-01-30 15:05:33 -05:00
Abubakar Abid
8dd6f4bc19
Handle the case where examples is null
for all components ( #7192 )
...
* handle null examples
* add changeset
* add changeset
* lint
* merge conflict
* fixes
* add changeset
* stories
* feedback
* examples
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-29 16:51:22 -08:00
pngwn
138761226a
chore: update versions ( #7083 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-25 16:10:24 -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
Dawood Khan
523b6bc534
gr.update(value=[])
for gr.File()
clears it (#6980 )
...
* bug fix
* add changeset
* Update js/file/shared/File.svelte
Co-authored-by: aliabid94 <aabid94@gmail.com>
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabid94 <aabid94@gmail.com>
2024-01-10 19:14:33 -05:00
pngwn
8f69f9ef50
chore: update versions ( #6960 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-11 01:42:25 +04: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
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
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
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
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
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
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
Hannah
053bec98be
Improve CSS token documentation in Storybook ( #6399 )
...
* remove width and heights from icons
* add changeset
* add global css vars (light)
* add changeset
* add changeset
* Remove component stories (will document these elsewhere)
* remove rtl param in chatbot story for non rtl text
* formatting
* remove redundant class
* add changeset
* fix row story
* fix broken groot file stories
* revert lock changes
* add changeset
* lockfile
* pnpm lock
* remove colour from webcam icons
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-08 16:23:14 +01: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
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
Yuichiro Tachibana (Tsuchiya)
f94db6b731
File table style with accessible file name texts ( #6520 )
...
* File table style with accessible file name texts
* Fix for lint
* add changeset
* Remove unnecessary style
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-22 00:46:37 +09: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
c5ea13bdf7
chore: update versions ( #6481 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-20 13:45:52 -08:00
pngwn
08c4ed2ced
chore: update versions ( #6420 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-16 19:54:38 -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
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
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
pngwn
73d7de77e4
chore: update versions ( #6200 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-03 12:16:42 -07:00
Abubakar Abid
185f9aa156
Fix stories ( #6244 )
...
* format
* audio
* more stories
2023-11-02 12:10:11 +00: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
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