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
Freddy Boulton
6b53330a5b
UploadButton tests ( #6461 )
...
* Add test
* add changeset
* lint
* Switch order
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-16 16:10:12 -08:00
Freddy Boulton
2761b6d197
Catch ValueError, KeyError when saving PIL Image ( #6462 )
...
* Add code
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-16 16:08:46 -08:00
Freddy Boulton
3953a14675
Preserve original image extension in backend processing ( #6456 )
...
* Preserve image extension
* add changeset
* add changeset
* Fallback to png if failure. Try to save to original format for PIL in postprocess
* Update gradio/image_utils.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Keyerror
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-11-16 17:47:47 -05:00
Abubakar Abid
e0fc146598
Allow google analytics to work on Spaces (and other iframe situations) ( #6427 )
...
* ga on spaces
* add changeset
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-16 13:32:00 -08:00
Hannah
2777f326e5
Ensure Audio ouput events are dispatched ( #6454 )
...
* ensure ouput events are dispatched
* add changeset
* add output events to e2e tests and remove unknown end event
* Amend audio events e2e test
* add changeset
* remove redundant test
* gen notebook
* tweak test name
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-16 21:55:25 +01:00
Abubakar Abid
a1e3c61f41
Allow setting a default_concurrency_limit
other than 1 ( #6439 )
...
* changes
* format
* add changeset
* add changeset
* fix
* format
* fix
* add test
* change
* update test
* moved to queue()
* typo
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-16 12:42:49 -08:00
Alexander Neumann
179f5bcde1
Add py.typed to gradio backend ( #6455 )
...
* comment out classes in templates TWICE
see https://github.com/gradio-app/gradio/issues/6396 for details
* add py.typed to hatch artifacts
* add py.typed to gitignore
* create py.typed in type_check_backend
* add changeset
* add changeset
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-16 12:38:42 -08:00
Freddy Boulton
d00fcf89d1
Gradio custom component dev mode now detects changes to Example.svelte file ( #6457 )
...
* WIP
* fix
* WIP
* Remove console log
* add changeset
* add changeset
* use strict
---------
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-16 14:30:31 -05:00
Freddy Boulton
58e3ca8260
Custom Component CLI Improvements ( #6436 )
...
* Finishing touches
* Disable metadata prompt in tests
* add changeset
* lint website
* Fix link:
* Fix redirects
* failsafe
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-16 13:23:50 -05:00
Freddy Boulton
2f805a7dd3
Image Fixes ( #6441 )
...
* Fix + tests
* Rest of code lol
* add changeset
* lint
* lint + comments
* bind to upload
* add changeset
* Update breezy-foxes-search.md
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-11-16 09:45:48 -05:00
Hannah
d92de491bf
Optimise Chromatic workflow ( #6451 )
...
* exclude draft prs
* add turbosnap
* pnpn lock
* add changeset
* fix pnpm
* fix storybook path
* fix path
* remove test logs
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-16 13:11:26 +01:00
cswamy
62d35c3d1b
Issue 2085: Transformers object detection pipeline added ( #6423 )
...
* Object detection pipeline added
* Removed app.py
* add changeset
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-15 22:37:15 -08:00
112292454
ac4ca59c92
Extract video filenames correctly from URLs ( #6428 )
...
* Update video.py
cannot process url like "https:/example.com/avatar/xxxx.mp4?se=2023-11-16T06:51:23Z&sp=r" correctly, will get format like"mp4?se=2023-11-16T06:51:23Z&sp=r", and do unnecessary convert
* add changeset
* add changeset
* separate util function
* separated into util function
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-11-15 22:36:39 -08:00
Freddy Boulton
bce6ca109f
Send more than one heartbeat message ( #6418 )
...
* Send heartbeat
* 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-15 21:02:00 -05:00
Nick Crews
727ae25976
chore: rename api_key to hf_token ( #6437 )
...
* chore: rename api_key to hf_token
The param name changed in the past but these comments and error
messages are stale.
* add changeset
* demos
* notebooks
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-11-15 11:31:26 -08:00
Abubakar Abid
b3ba17dd11
Update the selected indices in Dropdown
when value changes programmatically ( #6425 )
...
* dropdown fix'
* add changeset
* typo
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-15 09:55:19 -08:00
Hannah
f816136a03
Add volume control to Audio ( #6254 )
...
* fix autoplay and add trim_region_color setting
* add changeset
* add changeset
* add changeset
* remove unused param
* add changeset
* add volume control functionality
* add changeset
* corrent change event to stop_recording
* controls tweak
* add tests
* add changeset
* hide volume when blurred
* change bar height
* normalise -> normalize
* style tweaks
* clean up volume control
* add more tests
* formatting
* fix dispatch event
* amend refs to source
* add audio e2e
* add changeset
* fix test
* clean up ids + refs
* style tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-15 13:19:02 +01:00
renovate[bot]
1c9e73fca0
Update dependency chromatic to v9 ( #6369 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-15 12:33:35 +01:00
Abubakar Abid
2727f45fb0
Do not show warnings when renaming api_names ( #6424 )
...
* warnings
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-14 21:13:44 -08:00
Freddy Boulton
1959471a8d
Add download tests for audio/video ( #6419 )
...
* Add download tests for audio/video
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-14 13:55:28 -05: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
Freddy Boulton
ff544fd702
Add MultimodalChatbot Custom Component guide to accompany Youtube Video ( #6409 )
...
* Add guide
* Finish guide
* Fix working
* typos
* Fix link
* Fix typo
2023-11-13 17:13:38 -08:00
Freddy Boulton
da1e31832f
Fix Model3D download button and other issues ( #6414 )
...
* Add code
* add changeset
* add changeset
* add changeset
* Don't bind
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-13 17:13:20 -08:00
Dawood Khan
e76a9e8fcb
Fix Chatbot Pending Message Issues ( #6386 )
...
* fix
* add changeset
* fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-13 17:12:56 -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
Abubakar Abid
649f3ceb6c
Added docs on gr.Examples ( #6412 )
...
* added docs on gr.Examples change
* add changeset
* docstrings
* Update guides/03_building-with-blocks/01_blocks-and-event-listeners.md
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
* typo
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-11-13 14:36:23 -08:00
Hannah
0401c77f3d
Move ffmpeg to Video
deps ( #6406 )
...
* move ffmpeg to video
* pnpm lock
* add changeset
* move mrmime
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-13 13:57:20 -08:00
Yuichiro Tachibana (Tsuchiya)
8ef48f8524
Async functions and async generator functions with the every
option to work ( #6395 )
...
* Extend `get_continuous_fn()` to deal with async functions and async generator functions
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-13 16:12:49 -05:00
Abubakar Abid
03491ef497
Fix docstrings and default value for api_name
( #6405 )
...
* api names
* add changeset
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-13 12:52:35 -08:00
Freddy Boulton
7471970894
PDF component custom component guide ( #6344 )
...
* WIP guide
* Add remaining
* build command
* remove pin from guides
* add changeset
* Tweaks
* add changeset
* format
* Update guides/05_custom-components/07_pdf-component-example.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Redesign file upload (#6356 )
* Textbox and Code Component Blur/Focus Fixes (#6323 )
* focus and blur events
* format
* add changeset
* fixes
* fixes
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix image upload (#6363 )
* Fix upload
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Add demo to the beginning
* Add example and note about the name
* Incorporate feedback
---------
Co-authored-by: aliabd <ali.si3luwa@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: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
2023-11-13 14:52:55 -05:00
Freddy Boulton
9cfeb4f17e
Remove websockets dependency ( #6403 )
...
* Remove websockets dependency
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-13 14:26:07 -05:00
Yuichiro Tachibana (Tsuchiya)
d84209703b
Lite: SharedWorker mode ( #6099 )
...
* Create the SharedWorker mode
* Fix the app_id management mechanism to be context-based so it works properly with run_file() and run_code()
* Adjust updateProgress() for the SharedWorker mode
* Make `get_continuous_fn()` Wasm-compatible in order for the created function not to occupy the thread with a loop with `time.sleep()` which is no-op in the Wasm env
* add changeset
* Add the `shared-worker` option to the custom-element API
* Apply formatter to js/app/src/lite/index.ts
* format
* Revert pnpm-lock.yml file version which is not needed to be changed in this PR
* Fix the unittest for `get_continuous_fn()`
* Fix the unit test because `anext()` is not available in Python 3.8, which is used in the CI env
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-11-13 17:32:00 +09:00
Ali Abdalla
9d6d72f443
Tiny fix to indent on landing page demo ( #6387 )
...
* tiny indent fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-12 12:41:17 -08:00
Freddy Boulton
2090aad731
Move wavesurfer dep to js/audio ( #6382 )
...
* Move wavesurfer dep to js/audio
* Add code
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-12 12:18:11 -05:00
Abubakar Abid
de998b2812
Processes avatar_images
for gr.Chatbot
and icon
for gr.Button
correctly, so that respective files are moved to cache ( #6379 )
...
* format
* add changeset
* add changeset
* add changeset
* whoops fix
* notebook
* tests
* refactor
* refactor
* format
* added test
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-11 23:13:27 -08:00
Abubakar Abid
d31d8c6ad8
Allows sources
to be a string for gr.Image
( #6378 )
...
* fixes
* components
* add changeset
* sources
* video
* add changeset
* fixes
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-11 15:18:02 -08:00
Abubakar Abid
c55f927f5b
Makes the Windows tests only run on the release PR ( #6380 )
...
* format
* ci
* exclude logic
* add changeset
* test
* delete changeset
* tweaks
* remove edited
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-11 15:10:03 -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
Freddy Boulton
8a3f45c261
Fix component update bug ( #6368 )
...
* Add code
* Add comment
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-10 12:26:07 -08:00
Freddy Boulton
4d3aad33a0
Fix image upload ( #6363 )
...
* Fix upload
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-09 19:57:27 -05:00
Dawood Khan
55fda81fa5
Textbox and Code Component Blur/Focus Fixes ( #6323 )
...
* focus and blur events
* format
* add changeset
* fixes
* fixes
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-09 19:20:54 -05:00
Hannah
854b482f59
Redesign file upload ( #6356 )
2023-11-09 16:52:03 -05:00
Ali Abdalla
294414d9f7
Add sharing to playground ( #6351 )
...
* add new page
* sharing
* add changeset
* add some styling
* styling
* rename to blank
* clearer icon
* formatting
* wording
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-09 12:29:40 -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
Abubakar Abid
506ab9e4b4
Fix backend tests on CI ( #6330 )
...
* test flaky
* reduce num tests
* fail intenationally
* add back
* revert test changes
* remove coverage
* diff
* fix tests
* format
2023-11-08 19:36:10 -08:00
aliabid94
37dd335e5f
Fix audio streaming output issues in 4.0 ( #6343 )
...
* changes
* Update processing_utils.py
* add changeset
* changes
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-08 14:57:25 -08:00
Abubakar Abid
d64787b885
Fix colorFrom
in theme space readmes ( #6347 )
...
* red
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-08 14:57:03 -08:00
Yuichiro Tachibana (Tsuchiya)
42f76aeeb7
Add AsyncGenerator to the check-list of dependencies.types.generator
( #6333 )
...
* Add AsyncGenerator to the check-list of `dependencies.types.generator`
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-08 23:46:21 +09: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