Hannah
37caa2e0fe
Add icon and link params to gr.Button
( #5080 )
...
* add icons and link params
* tweak
* add changeset
* prepend icon param with /file=
* prepend icon with /file=
* restore and add button stories
* add changeset
* param description tweak
* tweak param description
* type tweak
* fix i18n in story
* fix formatting
* fix test
* tweak
* fix typo
* fix icon bug
* fix inconsistent width
* remove <a /> target
* styling changes + add story
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-04 17:47:20 +02:00
Yuichiro Tachibana (Tsuchiya)
3b9494f5c5
Lite: Fix the analytics module to use asyncio to work in the Wasm env ( #5045 )
...
* Fix the analytics module to use asyncio to work in the Wasm env
* add changeset
* add changeset
* Add changeset
* Revert "Add changeset"
This reverts commit 052f2bd737
.
* Add the `is_wasm` field to the analytics telemetry
* Restore the initialization code in Blocks.launch() in the Wasm env
* Remove a call of analytics.version_check() in Blocks.launch() in the Wasm mode
* Add a `type: ignore` directive to the line of importing the `pyodide` module
* Fix a test case
* Refactor _do_wasm_analytics_request() and add a unit test for it
* Get the IP address for analytics in the Wasm mode
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-04 09:18:14 -04:00
renovate[bot]
13e4783535
chore(deps): update dependency extendable-media-recorder to v8 ( #5085 )
...
* chore(deps): update dependency extendable-media-recorder to v8
* 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-04 08:28:58 -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
索毅
d7f83823fb
solve how can I config root_path dynamically? #4968 ( #5081 )
...
* solve how can I config root_path dynamically? #4968
* add changeset
* fixes
* fixes
* fix
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-03 17:00:25 -04: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
Abubakar Abid
7d89716519
gr.Dropdown
now has correct behavior in static mode as well as when an option is selected (#5062 )
...
* dropdown fixes
* add changeset
* add changeset
* guide
* guide
* stories
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-02 12:32:45 -04:00
Jody Zhou
f5539c7618
Enhancement: Add focus event to textbox and number component ( #5005 )
...
* Add focus event to textbox and number component
* add changeset
* Combine Blurrable and Focusable into Focusable event
* Add focus and blur to Dropdown and Colorpicker components
* add focus to home page template
* Add Focus to doc
* Fix linting error
* fixes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-08-01 16:02:50 -04:00
Freddy Boulton
95ea19d65f
Dont format on save for vscode ( #5058 )
...
* Add code
* Dont format on save
* Delete prettier line
2023-08-01 13:13:08 -04:00
Jayce Slesar
0b74a1595b
Use importlib
in favor of deprecated pkg_resources
( #5048 )
...
* fix(pkg_resources): use `importlib` in favor of `pkg_resources`
* lint
* import
* removed unnecessary version check
* fixes
* pass lint and format
* fix
* requirements
* fix all typing issues
* fix routes
* fix
* Delete forty-rooms-arrive.md
* 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:26:02 -04:00
renovate[bot]
75b3a58f14
chore(deps): update dependency vitest to ^0.34.0 ( #5059 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-01 12:21:58 -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
Hannah
883ac364f6
Add step
param to Number
( #5047 )
...
* add step param to number component
* add changeset
* fix test
* fix BE test
* fix test again
* update number.py
* fix test
* test fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-01 12:44:33 +01:00
Hannah
6693660a79
Add download button to selected images in Gallery
( #5025 )
...
* add download button to gallery selected images
* add changeset
* add story
* tweak
* fix href val for internal file paths
* set show_download_button to True by default
* lint backend
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-07-31 19:31:49 +02:00
Hannah
5244c5873c
Allow new lines in HighlightedText
with /n
and preserve whitespace ( #5046 )
...
* allow new lines in highlighted text with /n
* add changeset
* preserve white spaces in text
* add changeset
* add changeset
* add highlighted text stories
* add changeset
* fix broken story
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-07-31 16:54:29 +02:00
Abubakar Abid
620e464527
gr.Dropdown()
now supports values with arbitrary characters and doesn't clear value when re-focused (#5039 )
...
* changelog
* changes
* add changeset
* fixes
* revert
* add changeset
* python reorder
* add changeset
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-07-31 08:31:39 -04:00
renovate[bot]
d9700676be
chore(deps): update dependency prettier-plugin-css-order to v2 ( #5043 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-30 00:47:20 -04:00
rajeunoia
f6c491b079
highlightedtext throws an error basing on model ( #5030 )
...
* highlightedtext throws an error basing on model
* add changeset
* add test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-07-29 01:23:27 +03:00
renovate[bot]
c7a20e0970
Update dependency prettier-plugin-svelte to v3 ( #4973 )
...
* chore(deps): update dependency prettier-plugin-svelte to v3
* add changeset
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-29 00:00:15 +03:00
renovate[bot]
e6317d77f8
Update dependency extendable-media-recorder to v8 ( #5023 )
...
* Update dependency extendable-media-recorder to v8
* add changeset
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-29 00:00:03 +03:00
Ali Abdalla
42488c076a
Correct gradio version on website ( #5037 )
...
* fix jsons
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-07-28 21:55:17 +02: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
Hannah
957979b113
fix deploy-pr-to-spaces
wheel link ( #5016 )
...
* change gh sha variable
* test
* remove log
2023-07-26 10:58:25 -04:00
aliabid94
44ac8ad08d
Allow setting sketch color default ( #4979 )
...
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-07-25 11:39:51 -07:00
Hannah
3f8c210b01
Implement left and right click in Gallery
component and show implicit images in Gallery
grid ( #4995 )
...
* tweak responsive behaviour in gallery
* test
* add function to move left + right on click
* add changeset
* fix ts error
* Delete soft-eyes-repeat.md
* add changeset
* add gallery story
* change y overflow to scroll
---------
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-07-25 15:02:44 +01:00
aliabid94
41c83070b0
Add CSS resets and specifiers to play nice with HF blog ( #4997 )
...
* changes
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-07-24 16:35:53 -07:00
Ali Abdalla
71c9039401
Make sure tags aren't rendered inside a guide ( #5007 )
...
* remove tags
* small fixes to guides
* add changeset
* add changeset
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-07-24 22:54:33 +02:00
Ali Abdalla
3e70fc81fc
Correctly render changelog on website after new formatting ( #5009 )
...
* fix changelog rendering
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-07-24 22:44:10 +02:00
fabiencro
e549bf10c7
Documentation: made correct example for the .then() event listener method ( #5003 )
...
* Documentation: made correct example for the .then() event listener method
* Fix notebook
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-07-24 15:39:27 -04:00
pngwn
7ad6dfe0ae
Ci fix 1234 ( #5013 )
...
* fix token
* fix token
* fix token
2023-07-24 19:35:53 +01:00
pngwn
2891fa5995
Ci fix 1234 ( #5012 )
...
* fix token
* fix token
2023-07-24 19:06:05 +01:00
pngwn
199d9cb7fc
fix token ( #5011 )
2023-07-24 18:47:38 +01:00
Abubakar Abid
b74f845303
Adds additional_inputs
to gr.ChatInterface
( #4985 )
...
* adding additional inputs
* add param
* guide
* add is_rendered
* add demo
* fixing examples
* add test
* guide
* add changeset
* Fix typos
* Remove label
* Revert "Remove label"
This reverts commit 1004285615
.
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-07-24 11:55:47 -04:00
Luke Cheng
4b0e98e40a
docs: Initiate the Chinese translation ( #4767 )
...
* docs: init for the chs translation
* docs: translate guides to Chinese. (#1 )
* 翻译文档
* update ChangeLog
* docs: add spaces with the heyspace tool
* 翻译文档
* docs: add spaces to the follow-up files
---------
Co-authored-by: Luke Cheng <2258420+chenglu@users.noreply.github.com>
* ignore cn dir in website
---------
Co-authored-by: TERRY LEE <59245973+liteli1987gmail@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-07-24 14:10:39 +02:00
pngwn
ad62cd9238
Fix changesets action ( #4998 )
...
* fix action
* tweak issue template
2023-07-22 12:50:57 +01:00
Abubakar Abid
dc07a9f947
Revert "Revert "Add download button for audio"" ( #4993 )
...
* Revert "Revert "Add download button for audio (#4977 )" (#4992 )"
This reverts commit ad99df4fdd
.
* removed changelog updates
* add changeset
* credit leuryr
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-07-22 03:20:29 +03:00
pngwn
9f857d2c01
remove changelog check ( #4996 )
2023-07-22 03:16:54 +03: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
Abubakar Abid
ad99df4fdd
Revert "Add download button for audio ( #4977 )" ( #4992 )
...
This reverts commit c58ea4780f
.
2023-07-21 08:00:33 +03:00
Leury Rodriguez
c58ea4780f
Add download button for audio ( #4977 )
...
* Add download button for audio
* Add summary to CHANGELOG
* Add bool param to gr.Audio for button visibility
* Update CHANGELOG
* formatting
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-21 07:43:15 +03:00
Abubakar Abid
683bdf7623
Release 3.38 ( #4991 )
...
* release
* changelog
* changelog
* changelog
* chatbot
* remove test
* Add code
* add min width to submit button
---------
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-07-21 00:57:35 +03:00
Dawood Khan
ad9fb84f05
Improve make_waveform
( #4918 )
...
* make waveform animate
* fixes
* changelog
* fix
* Update CHANGELOG.md
* format
* fix
* changes
* add animate flag
* format
* fixes
* demo
* fixes
* lint
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-20 23:47:48 +03:00
Freddy Boulton
c57a4e2729
Add css variable for controlling chatbot user message border accent ( #4989 )
...
* Add css variable
* Fix var name
* Add CHANGELOG
2023-07-20 16:47:01 -04:00
Abubakar Abid
f8e5bfa2d4
Converts "Submit" button to "Stop" button in ChatInterface while streaming ( #4971 )
...
* initial work
* changes
* changes
* undo routes
* cancel fix
* cancel fix
* remove unnecessary test
* formatting
* changelog
* remove extraneous test
* simplify
* remove no streaming
* changelog
* no progress on textbox
* show progress revert
* clog
* lint
* fixes based on review
* updated textbox props
* fix
* format
* test fix
2023-07-20 15:01:53 -04:00
aliabid94
b68aeea412
Improve gr.ChatInterface
UI, add autofocus to textbox ( #4978 )
...
* changes
* changes
* lint
* fix tests
* fix
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-20 14:44:52 +03:00
Freddy Boulton
3dc9a65815
Use state in ChatInterface ( #4976 )
...
* Use state in chatinterface
* Changelog
* Fix tests
* use chatbot_state for everything
* lint
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-20 14:08:50 +03:00