Abubakar Abid
4030f28af6
Allows updating the dataset of a gr.Examples
( #8745 )
...
* helpers
* add changeset
* changes
* add changeset
* changes
* tweak
* format
* example to docs
* add changeset
* fixes
* add tuple
* add changeset
* print
* format
* clean'
* clean
* format
* format backend
* fix backend tests
* format
* notebooks
* comment
* delete demo
* add changeset
* docstring
* docstring
* changes
* add changeset
* components
* changes
* changes
* format
* add test
* fix python test
* use deep_equal
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-15 09:19:52 -07:00
Yuichiro Tachibana (Tsuchiya)
2d179f647b
Set the default format of gr.Plot as png for Wasm mode ( #8774 )
...
* Set the default format of gr.Plot as png for Wasm mode
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-14 18:33:03 +09:00
pngwn
d51dd2ce17
chore: update versions ( #8767 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-12 12:48:12 -07:00
pngwn
2b4636e75c
Fix width of assistant's chatbot bubble ( #8766 )
...
* fix width
* add changeset
* format
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-12 19:38:26 +00:00
pngwn
1b74e214b9
chore: update versions ( #8663 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-12 11:54:28 -07:00
pngwn
26cdd0ffe0
Revert chatbot styling ( #8758 )
...
* fix
* fix
* add changeset
* add changeset
* tests
* Fix button panel (#8762 )
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2024-07-12 18:35:08 +01:00
pngwn
078663a3a4
Fix issue with virtual module in custom components ( #8761 )
...
* fix bug
* add changeset
* fix really
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-12 18:34:41 +01:00
pngwn
c1ecfde50e
8394 df hidden items ( #8763 )
...
* fix bug
* fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-12 18:19:43 +01:00
Freddy Boulton
5e36144232
Add guides for msg format and llm agents ( #8750 )
...
* Add guides
* add changeset
* Add code
* Add code
* Add notebook
* rename msg_format to type
* Fix docs
* notebooks
* missing link
* Update guides
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-12 11:53:28 +00:00
Dawood Khan
d21d8ee0cf
Fixes Plotly is rendered smaller in a hidden gr.Tab
( #8740 )
...
* resize
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-11 19:11:03 -07:00
Yuichiro Tachibana (Tsuchiya)
077743c456
Refactoring <gradio-lite /> component making the code simpler and fixing a Playground mode bug ( #8693 )
...
* Create <LiteIndex /> component that contains the initialization logic and manages <Index /> and <Playground />
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-11 19:00:01 -07:00
aliabid94
1500b89e13
Allow app to fill width ( #8651 )
...
* changes
* add changeset
* changes
* changes
---------
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-11 12:53:36 -07:00
Hannah
31a876d027
Fix Share to community
button for images ( #8737 )
2024-07-11 18:15:53 +01:00
Dawood Khan
0482453fd5
Chatbot LaTeX Crash Fix ( #8658 )
...
* latex fix
* format
* add changeset
* fix demo (#8696 )
* Better spacing for codeblocks on docs (#8686 )
* styling for codeblocks
* add changeset
* formatting
* add changeset
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Add search to website (#8624 )
* Update action.yml (#8702 )
* Model3D point cloud and wireframe display modes (#8687 )
* display modes
* add changeset
* test fixes
* lint
* Update gradio/components/model3d.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* solid
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix playground to display errors (#8689 )
* Fix the Playground on the website to trigger run_code() and install() with debounce and to display errors
* Remove an unused function, make_full_screen()
* Format demo/hello_world/run.py
* Update notebook
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* GRADIO_ALLOWED_PATHS & GRADIO_BLOCKED_PATHS comma separated environme… (#8705 )
* GRADIO_ALLOWED_PATHS & GRADIO_BLOCKED_PATHS comma separated environment variables
* GRADIO_ALLOWED_PATHS & GRADIO_BLOCKED_PATHS comma separated environment variables
* add changeset
* Document GRADIO_ALLOWED_PATHS and GRADIO_BLOCKED_PATHS
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Ensure JS client `status_callback` functionality works and improve status messages (#8699 )
* * bind handle_space_success
* ensure status callbacks work correctly
* add changeset
* test fixes + refactor
* tweak
* test
* Revert "test"
This reverts commit db1afc40b4
.
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Documents auth in the guides, in the view API page, and also types the Blocks.config object (#8720 )
* auth docs
* changes
* add changeset
* add changeset
* add changeset
* type
* changes
* snippets
* import
* add changeset
* changes
* fix typing
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* remove on mount
* merge
* remove onmount
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
Co-authored-by: cocktailpeanut <121128867+cocktailpeanut@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-07-11 12:28:27 -04:00
Yuichiro Tachibana (Tsuchiya)
3a6142fa48
Lite load perf ci ( #8222 )
...
* Update Lite E2E test setup to measure the performance of the initial app loading
* [TMP] Run test-functional on this branch
* Update CI to read the perf result
* add changeset
* Comment the performance result
* [TMP] hardcode the PR number to test posting the comment
* Revert "[TMP] hardcode the PR number to test posting the comment"
This reverts commit 4270dac77c
.
* Revert "Comment the performance result"
This reverts commit df4c29fcda
.
* Add debug echo
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-11 08:30:05 -07:00
Hannah
1b5b5b0b43
Bind fetch
and stream
in JS client ( #8714 )
...
* bind `fetch` and `stream`
* add changeset
* add tests
* tweak
* fix test
* test
* tweak .close() logic
* add changeset
* format
* change fake word
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-11 14:35:56 +00:00
Abubakar Abid
ee497d5c3c
Perform CORS validation when the request has a cookie ( #8743 )
...
* Perform CORS validation when the request has a cookie
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-11 06:57:48 -07:00
Freddy Boulton
a9307c6452
Chatbot generating scroll and click fix ( #8748 )
2024-07-11 15:10:55 +02:00
pngwn
e834d302e4
ensure @gradio/client
always returns the correct data ( #8716 )
...
* ensure data is alwat returned as expected
* add changeset
* update test data
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-11 13:15:10 +01:00
pngwn
a6b3c6ce4e
Ensure @gradio/client
's submit
iterator releases as expected ( #8715 )
...
* close the iterator when the prediction stream completes
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-11 12:01:08 +01:00
Freddy Boulton
740364e5ce
Add guide on best practices for ZeroGPU limits with the python client ( #8656 )
...
* Add guide
* typos
* add changeset
* add changeset
* styling and fix bad id
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2024-07-11 10:58:05 +02:00
aliabid94
e3c7079e38
gr.DateTime component ( #8713 )
...
* changes
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* Update gradio/components/datetime.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* changes
---------
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-10 20:55:45 -07:00
Abubakar Abid
b736c8db34
Refactor gr.ParamViewer
to use HTML <details>
and other tweaks ( #8744 )
...
* changes
* changes
* revert demo change
* add changeset
* changes
* format
* fixes
* param viewer
* update demo
* add changeset
* docstrings
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-10 17:58:28 -07:00
Abubakar Abid
fb0daf3730
Improvements to gr.Examples
: adds events as attributes and documents, them, adds sample_labels
, and visible
properties ( #8733 )
...
* events
* examples
* add changeset
* format
* add changeset
* add changeset
* format
* changes
* Update gradio/components/dataset.py
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Update gradio/helpers.py
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* add test
* Update test/test_helpers.py
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* changes
* format
* add to interface as well
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-07-10 16:35:36 -07:00
Freddy Boulton
d15ada9a1c
Fix multimodal textbox custom components ( #8719 )
...
* Add code
* add changeset
* Add code
* Update comment
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-10 13:09:08 +02:00
Freddy Boulton
4221290d84
Support Message API for chatbot and chatinterface ( #8422 )
...
* first commit
* Add code
* Tests + code
* lint
* Add code
* notebook
* add changeset
* type
* Add client test
* type
* Add code
* Chatbot type
* Add code
* test chatbot
* fix e2e test
* js tests
* Consolidate Error and Tool message. Allow Messages in postprocess
* Rename to messages
* fix tests
* notebook clean
* More tests and messages
* add changeset
* notebook
* client test
* Fix issues
* Chatbot docs
* add changeset
* Add image
* Add img tag
* Address comments
* Add code
* Revert chatinterface streaming change. Use title in metadata. Address pngwn comments
* Add code
* changelog highlight
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-10 11:08:06 +00:00
Abubakar Abid
936c7137a9
Documents auth in the guides, in the view API page, and also types the Blocks.config object ( #8720 )
...
* auth docs
* changes
* add changeset
* add changeset
* add changeset
* type
* changes
* snippets
* import
* add changeset
* changes
* fix typing
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-08 18:58:07 -07:00
Hannah
012da05287
Ensure JS client status_callback
functionality works and improve status messages ( #8699 )
...
* * bind handle_space_success
* ensure status callbacks work correctly
* add changeset
* test fixes + refactor
* tweak
* test
* Revert "test"
This reverts commit db1afc40b4
.
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-08 12:01:18 +01:00
cocktailpeanut
280a3f4afe
GRADIO_ALLOWED_PATHS & GRADIO_BLOCKED_PATHS comma separated environme… ( #8705 )
...
* GRADIO_ALLOWED_PATHS & GRADIO_BLOCKED_PATHS comma separated environment variables
* GRADIO_ALLOWED_PATHS & GRADIO_BLOCKED_PATHS comma separated environment variables
* add changeset
* Document GRADIO_ALLOWED_PATHS and GRADIO_BLOCKED_PATHS
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-05 21:55:11 +00:00
Yuichiro Tachibana (Tsuchiya)
edcd5748f6
Fix playground to display errors ( #8689 )
...
* Fix the Playground on the website to trigger run_code() and install() with debounce and to display errors
* Remove an unused function, make_full_screen()
* Format demo/hello_world/run.py
* Update notebook
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-05 16:37:27 +09:00
Dawood Khan
bc1d45d874
Model3D point cloud and wireframe display modes ( #8687 )
...
* display modes
* add changeset
* test fixes
* lint
* Update gradio/components/model3d.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* solid
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-04 14:06:41 -07:00
Ali Abdalla
ba59bb824f
Add search to website ( #8624 )
2024-07-03 21:57:11 -07:00
Ali Abdalla
64ac05b111
Better spacing for codeblocks on docs ( #8686 )
...
* styling for codeblocks
* add changeset
* formatting
* add changeset
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-03 16:46:23 -07:00
Paillat
a92c3e8015
Warn against Falsy credentials ( #8683 )
...
* fix(auth): Disallow Falsy credentials
Allowing Falsy auth credentials will cause problems later, for example in `hmac.compare_digest(input_password.encode(), correct_password.encode())` as NoneType has no `encode` method. Moreover, allowing empty passwords would make no sense from a security point of view.
* fix(auth): Produce warning instead of raising an error
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-02 14:46:38 -04:00
Abubakar Abid
c946c6f31a
Allow supplying custom gr.Chatbot
with events to gr.ChatInterface
( #8677 )
...
* allow chatbot.like
* changes
* add changeset
* add to docs
* add to docs
* fix
* fix
* add changeset
* add changeset
* move to chatinterface docs
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-02 14:13:33 -04:00
Gina Wu
3b8238c2e2
Add c/cpp code support ( #8665 )
...
* Add c/cpp code support
* lint
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-01 11:44:50 +00:00
aliabid94
2943d6d688
Add Timer component ( #8505 )
...
* chagnes
* add changeset
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* change
* add docs
* add changeset
* remove demo
* add changeset
* add changeset
* changes
* changes
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* Update gradio/components/timer.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* changes
---------
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-06-28 16:53:44 -07:00
pngwn
12f81fcaed
chore: update versions ( #8622 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-28 12:39:54 -04:00
Dawood Khan
c34839293f
Multimodal textbox buttons alignment ( #8637 )
...
* button spacing
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-28 12:04:27 -04:00
Hannah
9b8840ab5f
Ensure chatbot messages are visible to screenreaders ( #8631 )
...
* fix aria label for message.type
* add changeset
* tweak
* improve aria-label for files
* copy tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-28 12:03:44 -04:00
Hannah
4b6c8b1c00
ensure File
objects are handled in JS client handle_file
( #8649 )
...
* amend `File` datatype logic
* add changeset
* amend test
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-28 16:41:44 +01:00
pngwn
3896398480
Ensure copy button on chatbot shows when appropriate ( #8655 )
...
* fix copy button
* add changeset
* fix boolean logic
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-28 12:26:37 +00:00
magical-l
9933e538c9
Update file_explorer.py for str type height
( #8645 )
...
* Update file_explorer.py for str type `height`
`height` can be str
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-27 05:40:23 +00:00
Abubakar Abid
ea6482cc89
remove chatbot_multimodal
demo from gr.Chatbot
documentation page ( #8632 )
...
* remove demo
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-26 12:17:55 -04:00
Freddy Boulton
c12f82a36d
Bugfix: Allow multiple files to be uploaded via multimodal textbox ( #8608 )
...
* Add code
* Add file_count parameter to MultimodalTextbox
* add changeset
* Update fresh-years-feel.md
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-26 12:14:25 -04:00
Ali Abdalla
4c6e4e0ba9
Fix CORS issues with Lite Component Demos ( #8623 )
...
* fix erros
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-25 22:36:58 -07:00
Abubakar Abid
b6fa6b543f
Add docs for .on()
, .then()
, and .success()
, as well as the subclasses of gr.EventData
( #8604 )
...
* more helpers
* add changeset
* add changeset
* lint
* trigger list
* add example
* docstring
* dependency
* add changeset
* events
* document subclasses
* fix syntax
* event data svx
* add changeset
* selectdata
* lint
* key up data
* 2 more
* on
* other placeholders
* lint
* address reviews
* tweak
* Update js/_website/src/lib/templates/gradio/04_helpers/01_eventdata.svx
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-06-26 03:14:07 +00:00
pngwn
8d425ee777
chore: update versions ( #8613 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-25 12:18:25 -04:00
pngwn
4cfb6eebf6
chore: update versions ( #8523 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-25 11:54:46 -04:00
Freddy Boulton
9204d86ed4
Add guide on cleaning up state and file resources ( #8610 )
...
* WIP
* Add guide
* add changeset
* notebook
* No log in
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-25 11:52:35 -04:00