Abubakar Abid
fee3d527e8
Adds column_widths
to gr.Dataframe
and hide overflowing text when wrap=False
( #5894 )
...
* changes
* added prop
* add changeset
* table
* null case
* fix tests
* add story
* format
* lint
* add changeset
* Update js/dataframe/shared/Table.svelte
Co-authored-by: aliabid94 <aabid94@gmail.com>
* add support for ints
* added test
* docstring
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabid94 <aabid94@gmail.com>
2023-10-16 16:14:11 -07:00
Abubakar Abid
c4ba832b31
Remove deprecation warning from gr.update
and clean up associated code ( #5890 )
...
* update
* add changeset
* remove
* add changeset
* test
* update
* changes
* revert
* fix tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-10-15 17:58:06 -07:00
Abubakar Abid
a55b809423
Add styling (e.g. font colors and background colors) support to gr.DataFrame
through the pd.Styler
object ( #5877 )
...
* colors
* add changeset
* revert
* revert
* colors
* move box shadow
* done
* lint
* lint
* fixes
* lint
* added focused false
* revert focus
* revert focus
* revert focus
* revert focus
* revert focus
* apply style to td instead
* dataframe
* lint
* test
* Update js/dataframe/shared/Table.svelte
Co-authored-by: aliabid94 <aabid94@gmail.com>
* notebooks
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabid94 <aabid94@gmail.com>
2023-10-12 15:45:55 -07:00
D V
5f1cbc4363
Add support for gr.Request to gr.ChatInterface ( #5819 )
...
* Add support for gr.Request to gr.ChatInterface
* add changeset
* gr.ChatInterface: loose check for gr.Request
* add request test
* update test and chat_interface
* chat interface
* fix test
* formatting
* fixes
* fix examples and add test
* remove .update usage
* revert interface changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-10-10 13:48:20 -07: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
Yuichiro Tachibana (Tsuchiya)
7b63db2716
Convert async methods in the Examples class into normal sync methods ( #5822 )
...
* Convert async methods in the Examples class into normal sync methods
* add changeset
* Fix test/test_chat_interface.py
* Fix test/test_helpers.py
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-10-06 11:05:11 -07:00
Abubakar Abid
a0d3cc45c6
Fix gr.SelectData
so that the target attribute is correctly attached, and the filedata is included in the data attribute with gr.Gallery
( #5798 )
...
* fix select
* add changeset
* add changeset
* restore
* refactor
* add pytest
* typo
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-10-05 12:53:52 -07:00
Srijan Sahay Srivastava
37e70842d5
added try except block in state.py
( #5790 )
...
* added try except block in `state.py`
added try except block in `state.py` which will raise a "ValueError"
* add changeset
* updated `state.py` and added test for deepcopy
updated `state.py` and added test for deepcopy named test_initial_value_deepcopy in `test/test_components.py`
* lint
* test fix
* explain test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-10-05 12:33:15 -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
Dawood Khan
e842a561af
Fix new line issue in chatbot ( #5755 )
...
* fix new line
* add changeset
* line breaks param
* add changeset
* fix test
* Update gradio/components/chatbot.py
* Update gradio/components/dataframe.py
* Update gradio/components/markdown.py
* add changeset
* fix static markdown
* lint
* line breaks
* fixes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-10-02 20:44:58 -07:00
Abubakar Abid
2a5b9e03b1
Added support for pandas Styler
object to gr.DataFrame
(initially just sets the display_value
) ( #5569 )
...
* adding precision to df
* add changeset
* docstring
* precision
* add changeset
* fix
* fixes
* add changeset
* add visual test
* lint
* fixes
* lint
* format
* add changeset
* ts changes
* analytics
* dataframe typing
* typing
* demo
* fix
* lint
* interactive dataframe
* dataframe
* fix typing
* add test
* upgrade pandas version
* fix pandas version
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-10-02 14:02:03 -07:00
Abubakar Abid
caf6d9c0e1
Set share=True for all Gradio apps in Colab by default ( #5767 )
...
* Set share=True for all Gradio apps in Colab by default
* add changeset
* fix tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-10-02 12:51:56 -07:00
Hannah
8f0fed857d
Improve chatbot accessibility and UX ( #5699 )
...
* add a11y changes and css tweaks
* add a11y changes and css tweaks
* change like/dislike/copy buttons ux
* cleanup
* add laout param
* tweak
* add changeset
* fill icon on click
* text alignment tweak
* format + test
* fix browser test
* avatar tweaks
* add stories
* tweak
* tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-10-02 19:29:20 +02:00
Abubakar Abid
dba651904c
Fix for deepcopy errors when running the replica-related logic on Spaces ( #5722 )
...
* fix changelogs
* pass
* add changeset
* test
* config
* change
* fixes
* route utils
* add changeset
* add changeset
* add lock
* print
* route url
* replicas
* replicas
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-28 10:59:31 -07:00
Abubakar Abid
d626c21e91
Fully resolve generated filepaths when running on Hugging Face Spaces with multiple replicas ( #5668 )
...
* print
* add changeset
* url
* routes
* routes
* test
* test
* add to / route
* comment
* root_url approach
* replica url
* print
* print
* test
* revert
* fixes
* changes
* replica url fix
* lint
* routes
* routes
* fix
* docstring
* add changeset
* add changeset
* add changeset
* modify in place
* add test
* unit tests
* fix copy
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-27 12:58:31 -07:00
Abubakar Abid
6b8c8afd98
Fix incorrect behavior of gr.load()
with gr.Examples
( #5690 )
...
* testing
* fixes
* chat fix
* lint
* add changeset
* fix
* simplify
* simplify
* spacing
* remove print
* docstring
* dataset
* lint
* add changeset
* fix test
* add test
* added test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-26 12:20:34 -07:00
aliabid94
e1874aff81
Add gr.on
listener method ( #5639 )
...
* changes
* changes
* changes
* changes
* changes
* add changeset
* changes
* changes
* changes
* 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-09-25 15:25:16 -07:00
Yuichiro Tachibana (Tsuchiya)
9f9af327c9
[Refactoring] Convert async functions that don't contain await
statements to normal functions ( #5677 )
...
* [Refactoring] Convert async functions that don't contain `await` statements to normal functions
* add changeset
* add changeset
* fix tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-09-25 13:58:01 -07:00
Abubakar Abid
7c34b434aa
Fix width and height issues that would cut off content in gr.DataFrame
( #5616 )
...
* fix dataframe height
* fix widths
* add changeset
* fixes
* format
* case
* add changeset
* dataframe docstring
* format
* fix ts
* test components
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-25 10:33:19 -07:00
Dawood Khan
faad01f8e1
Add render_markdown
parameter to chatbot ( #5604 )
...
* disable markdown
* add changeset
* pr fixes
* format
* add changeset
* new line
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-09-22 11:53:09 -07:00
aliabid94
21c7225bda
Improve plot rendering ( #5642 )
...
* changes
* add changeset
* changes
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-09-22 15:32:49 +00:00
Charles Bensimon
9ccc4794a7
Use ContextVar instead of threading.local() ( #5625 )
...
* Use ContextVar instead of threading.local()
* Test
* add changeset
* Revert "Use ContextVar instead of threading.local()"
This reverts commit 2a76eb46e3
.
* delete changeset
* Un-revert "Use ContextVar instead of threading.local()"
This reverts commit 1481ce027b
.
* add changeset
* Add Request in LocalContext
* Sync + Async test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-21 13:20:47 -07:00
Freddy Boulton
fb5964fb88
Fix bug in example cache loading event ( #5636 )
...
* Fix event setup in Examples
* Add code
* add changeset
* no same port
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-20 15:03:55 -04:00
Abubakar Abid
3414023379
Allow Gradio apps containing gr.Radio()
, gr.Checkboxgroup()
, or gr.Dropdown()
to be loaded with gr.load()
( #5633 )
...
* fix dataframe height
* fix
* lint
* add changeset
* restore
* add changeset
* added comments for clarity
* fix tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-20 11:54:19 -07:00
aliabid94
da05e59a53
Removing .update and get_config, attempt 2 ( #5240 )
...
* changes
* add changeset
* changes
* changes
* Update many-tips-create.md
* notebooks
* chanegs
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changew
* changes
* changes
* changes
* changes
* chanegs
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* Revert "changes"
This reverts commit 0868c25c56
.
* changes
* changes
* changes
* changes
* changes
* changes
* change
* changes
* chaneges
* changes
* chagnes
* changes
* changes
* changes
* changes
* changes
* fix typing
* changes
---------
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 Abdalla <ali.si3luwa@gmail.com>
2023-09-18 21:17:06 -07:00
Abubakar Abid
acdeff57ec
Allow multiple instances of Gradio with authentication to run on different ports ( #5588 )
...
* Allow gradio auth to work across different ports
* lint
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-18 12:25:47 -07:00
Abubakar Abid
ba64082ed8
Fix preprocess for components when type='index' ( #5563 )
...
* fix preprocess for components when type='index'
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-14 12:54:19 -07:00
Abubakar Abid
301c787821
allow gr.Image() examples to take urls ( #5537 )
...
* allow gr.Image() examples to take urls
* add changeset
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-13 21:30:58 -07:00
Abubakar Abid
81c9ca9a2e
Fix .update()
method in gr.Dropdown()
to handle choices
( #5529 )
...
* Fix .update() method in gr.Dropdown()
* add changeset
* oops docstring
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-13 11:25:37 -07:00
Hannah
d112e2611b
Allow interactive input in gr.HighlightedText
( #5400 )
...
* add preprocess param to highlighted_text.py
* add params
* static tweaks
* add interactive highlight container
* highlight selection logic
* allow editing label value and move shared funcs
* add changeset
* remove py code
* wait for input render
* remove redundant event listeners
* accessibility enhancements and remove label logic
* add keyboard navigation and interaction
* merge adjacent empty elements and split input element
* add interactive support for scores mode
* remove merge adjacent logic and move to frontend
* tweak
* add changeset
* format backend
* tweaks
* backend test tweaks
* set the interactive default to None
* BE tweak
* unit tests and stories
* be formatting
* fix label errors
* tweak
* fix tests
* fix tests
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-09-12 18:47:16 -07:00
Abubakar Abid
05715f5599
Adds a filterable
parameter to gr.Dropdown
that controls whether user can type to filter choices ( #5508 )
...
* dropdown
* changes
* add changeset
* refactor
* cleanup
* dropdown
* more refactoring
* fixes
* simplify, docstring
* restore active_index
* split into two files
* new files
* simplify
* single select dropdown working
* single select dropdown almost working
* dropdown
* multiselect
* multiselect wip
* multiselect
* multiselect
* multiselect
* interactive working
* dropdown
* lint
* add changeset
* type
* typing
* fix multiselect static
* dropdown
* stories and tests
* split stories
* lint
* add changeset
* revert
* add changeset
* fix x
* dropdown
* lint, test
* backend fixes
* lint
* fix tests
* lint
* fix final test
* clean
* review fixes
* dropdown
* lint
* lint
* changes
* typing
* fixes
* active index null bug
* adding filterable parameter to dropdown
* dropdown
* lint
* add changeset
* add changeset
* svelte
* fix test
* add changeset
* added warning
* lint
* fix tests
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-12 18:36:29 -07:00
Dawood Khan
8909e42a7c
Adds autoscroll
param to gr.Textbox()
( #5488 )
...
* autoscroll param
* add changeset
* fix
* test fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-12 18:25:03 -04:00
Abubakar Abid
afcf3c48e8
Do not expose existence of files outside of working directory ( #5510 )
...
* reorder for security
* add changeset
* routes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-12 12:29:09 -07:00
Abubakar Abid
82ec4d2622
Allow interface with components to be run inside blocks ( #5496 )
...
* allow interface to run inside blocks
* fix test
* change
* add changeset
* format
* fixes
* fixes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-12 12:25:46 -07:00
Abubakar Abid
ddc02268f7
Allows the gr.Dropdown
to have separate names and values, as well as enables allow_custom_value
for multiselect dropdown ( #5384 )
...
* dropdown
* changes
* add changeset
* refactor
* cleanup
* dropdown
* more refactoring
* fixes
* simplify, docstring
* restore active_index
* split into two files
* new files
* simplify
* single select dropdown working
* single select dropdown almost working
* dropdown
* multiselect
* multiselect wip
* multiselect
* multiselect
* multiselect
* interactive working
* dropdown
* lint
* add changeset
* type
* typing
* fix multiselect static
* dropdown
* stories and tests
* split stories
* lint
* add changeset
* revert
* add changeset
* fix x
* dropdown
* lint, test
* backend fixes
* lint
* fix tests
* lint
* fix final test
* clean
* review fixes
* dropdown
* lint
* lint
* changes
* typing
* fixes
* active index null bug
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-12 09:58:18 -07:00
Chaitanya Giri
aad7acd712
Add sort to bar plot ( #5427 )
...
* Add sort to bar plot
* remove reverse parameter from barplot class
* add changeset
* Rename sort_by to sort in BarPlot class
* Add test
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-07 15:54:32 -04:00
Freddy Boulton
7ab4b70f68
api_open does not take precedence over show_api ( #5436 )
...
* Fix bug
* Fix
* add changeset
* Add code
* Fix docstring
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-07 13:22:55 -04:00
Yuichiro Tachibana (Tsuchiya)
c77f05abb6
Fix the Queue to call API endpoints without internal HTTP routing ( #5165 )
...
* [WIP] Replace the HTTP call to /api/predict with a function call
* Extract shared logics into route_utils.*
* Fix Queue.call_prediction() to return the output dict and raise exceptions
* Remove run_predict()
* Create route_utils.call_process_api()
* Check Blocks.api_open and return 404 if it's false
* Refactoring on queueing.py
* Refactoring on queueing.py, renaming data to body
* Fix the if block of availability check in the predict() endpoint handler
* Put the code of clearning pending streams into route_utils.call_process_api
* Format gradio/routes.py
* Fix queueing.Queue.reset_iterators() not to call an HTTP endpoint
* Remove ququeing.Queue.queue_client, which is no longer used
* Fix with static type analysis
* Remove gradio.utils.AsyncRequest, which is no longer used
* add changeset
* Remove PEP604-syntax which is not supported by Python<3.10
* Fix gradio/queueing.py
* Remove AsyncRequest test cases
* Fix queueing and routes test cases
* Fix
* Replace Queue.server_url with .server_app and remove methods related to the old .server_url
* Revert `gradio_api_url` because building the document fails
* Add __future__.annotations to route_utils.py
* Update gradio/queueing.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Format
* Mark the `gradio_api_url` parameter of `mount_gradio_app()` deprecated
* Fix Queue.call_prediction to convert the output to a plain object
* Add a `except asyncio.CancelledError` handler to avoid printing stack trace for task cancellation
* Move the call of `route_utils.restore_session_state` into `route_utils.call_process_api`
* exception class
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-09-05 15:33:15 -07:00
Freddy Boulton
83cde9b9e3
Fix dataset demo ( #5390 )
...
* Fix as_example for ChecboxGroup
* add changeset
* add changeset
* Add code
* delete changeset
* Add ntoebook
* Exception
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-05 11:47:10 -04:00
Dawood Khan
abf1c57d7d
Like/Dislike Button for Chatbot ( #5391 )
2023-09-01 19:20:55 -04:00
Abubakar Abid
79d8f9d891
Adds height
and zoom_speed
parameters to Model3D
component, as well as a button to reset the camera position ( #5373 )
...
* add params in backend
* tweaks
* add changeset
* updates
* tweaks
* lint
* cleanup
* fix tests
* add reset button
* add changeset
* lint
* add changeset
* add changeset
* lint
* add changeset
* faster
* add changeset
* undo website
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-31 12:24:22 -07:00
Mehdi Bahri
4ccb9a86f1
Makes it possible to set the initial camera position for the Model3D
component as a tuple of (alpha, beta, radius) ( #5266 )
...
* Allow setting alpha
* Allow setting beta and radius
* Formatting
* Change to tuple of (alpha, beta, radius)
* Renamed parameter
* Formatting
* add changeset
* add to update
* Change to tuple of (alpha, beta, radius)
* Renamed parameter
* Formatting
* Docstring for Model3D
* rename parameter
* add changeset
* type
* 180
* dupe
* 180
* linting
* lint
* lint
* add test
* Formatting in docstring + added what unit the angles are
* Added babylon types to model3d's package.json
* pnpm lockfile
* Type narrowing of helperCamera + assumed not null
* refactor
* docstring
* lint
* type checking
* fix test
---------
Co-authored-by: Mehdi <mehdi.bahri@epicgames.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-29 17:02:05 -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
Dawood Khan
05892302fb
Adds kwarg to disable html sanitization in gr.Chatbot()
( #5304 )
...
* disable sanitize
* add changeset
* Fix devcontainer postCreateCommand (#5289 )
* add chmod commands to grant execute permissions to each script before running them
* increase the memory limit
* Increase memory requirement to 8
* Setting a minimum specification for codespace machines
* Rotate axes labels on LinePlot, BarPlot, and ScatterPlot (#5305 )
* add chmod commands to grant execute permissions to each script before running them
* increase the memory limit
* Increase memory requirement to 8
* Setting a minimum specification for codespace machines
* Added label_angle parameter to LinePlot
* add the x_label_angle and y_label_angle to the postprocess
* Add x_label_angle and y_label_angle to ScatterPlot
* Add x_label_angle and y_label_angle to BarPlot
* Remove postCreateCommand update from this PR, it is in its own PR
* Remove custumization on the devcontainer, it is on another PR
* Remove extra line on the devcontainer, it is on another PR
* add changeset
* update the parameter definition in the docstring
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* `make_waveform()` twitter video resolution fix (#5296 )
* waveform res fix
* add changeset
* add changeset
* Improve audio streaming (#5238 )
* changes
* changes
* add changeset
* add changeset
* chages
* Update silver-clowns-brush.md
* changes
* chagers
* changes
* Update silver-clowns-brush.md
* change
* change
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
* Tweaks to `icon` parameter in `gr.Button()` (#5285 )
* button
* add changeset
* fix
* add changeset
* add changeset
* types
* type fix
* formatting
* fix based on review
* fix unit tests
* stories
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* test
* test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabid94 <aabid94@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* 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>
* Create event listener table for components on docs (#5298 )
* changes
* changes
* remove languages from code docs
* fix img path in guide
* rework event listeners
* add changeset
* remove console log
* name it event arguments
* Update js/_website/src/lib/components/EventListeners.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update js/_website/src/lib/components/EventListeners.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* requested changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* merge
* fix (#5308 )
* only start listening for events after the components are mounted (#5312 )
* only start listening for events after the components are mounted
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Restores missing part of bottom border on file component (#5313 )
* removes missing part of bottom border on file component
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (#5177 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Test Blocks.svelte footer copy (#5307 )
* test test
* fix test
* tweak
* tweak test name
* ensure login form has correct styles (#5324 )
* fix changelog generation (#5328 )
* Add ignore scripts to pnpm i in pypi action (#5316 )
* add json generation to prepare
* add changeset
* remove pnpm prepare
* add changeset
* bring back prepare, add ignore scripts
* delete changeset
* add to right commadn
* add frozen lockfile to gh_action_pypi
* remove unused gh_action_pypi script
* remove unused scripts
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* ensure dropdown stays open when identical data is passed in (#5323 )
* ensure dropwdown stays open when new data is passed in
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix ci again again again (#5329 )
* fix changelog generation
* fix changelog generation
* fix
* chore: update versions (#5326 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix ci again again again (#5330 )
* fix changelog generation
* fix changelog generation
* fix
* fix script
* Fix ci again again again (#5331 )
* fix changelog generation
* fix changelog generation
* fix
* fix script
* fix script
* Fix ci again again again (#5332 )
* fix changelog generation
* fix changelog generation
* fix
* fix script
* fix script
* fix vars
* Fix ci again again again (#5333 )
* fix changelog generation
* fix changelog generation
* fix
* fix script
* fix script
* fix vars
* fix vars
* Fix Checkbox select dispatch (#5340 )
* Fix bug
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Minor bug fix sweep (#5284 )
* changes
* changes
* add changeset
* changes
* changes
* fix box changes on website
* add changeset
* changes
* changes
* Revert "changes"
This reverts commit 189b4e844a
.
* chanegs
* changes
* changes
* changes
* changes
* add changeset
* Update fancy-bats-deny.md
---------
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>
* Fix: wrap avatar-image in a div to clip its shape (#5319 )
* fix: wrap avatar-image in a div to clip its shape
and add data url support
* add changeset
* revert get file from data url
* add changeset
---------
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (#5341 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* add kwarg to markdown
* add changeset
* config
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Faiga Alawad <faiga.alawd91@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabid94 <aabid94@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: Keldos <Keldos.ljw@gmail.com>
2023-08-29 00:26:29 -04:00
Dawood Khan
c5bf91385a
Add chat bubble width param ( #5334 )
...
* chat width
* add changeset
* fixes
* fix
* test
* reformat
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-28 20:48:52 -04:00
pngwn
fe057300f0
delegate gradio events via a custom event dispatcher ( #5279 )
...
* delegate gradio events via a custom event dispatcher
* improve md perf + share code
* fix df markdown
* prevent model3d from rerending too frequently
* tweaks
* fix more event bugs with video
* add changeset
* optimise handle mount
* does this do anything
* fix
* remove old dispatches
* fix dropdown position
* oops
* fixes
* fix tests
* fix types
* format
* fix markdown code
* add changeset
* fix typecheck
* fix typecheck
* fix demos
* notebooks
* fix tests
* changer
* maybe this
* fixes
* add changeset
* fix chatbot alignment mobile
* fix chantbot
* add changeset
* changeset
* changeset
* storybook
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-23 21:48:10 +01: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
Dawood Khan
a0f22626f2
make_waveform()
twitter video resolution fix (#5296 )
...
* waveform res fix
* add changeset
* add changeset
* Improve audio streaming (#5238 )
* changes
* changes
* add changeset
* add changeset
* chages
* Update silver-clowns-brush.md
* changes
* chagers
* changes
* Update silver-clowns-brush.md
* change
* change
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
* Tweaks to `icon` parameter in `gr.Button()` (#5285 )
* button
* add changeset
* fix
* add changeset
* add changeset
* types
* type fix
* formatting
* fix based on review
* fix unit tests
* stories
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* test
* test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabid94 <aabid94@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-23 14:45:49 -04:00
Abubakar Abid
a74605572d
Add height parameter and scrolling to gr.Dataframe
( #5283 )
...
* add height and scrolling to dataframe
* add changeset
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-22 14:42:02 -07:00
Dawood Khan
92282cea6a
Chatbot Avatar Images ( #5258 )
...
* avatar images
* images
* add changeset
* fixes
* format
* type fix
* test fix
* format
* fixes
* tuple
* change to tuple
* test fix
* remove index file
* fixes
* save
* test fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-21 17:15:59 -04:00
Abubakar Abid
f49028cfe3
Move markdown & latex processing to the frontend for the gr.Markdown and gr.DataFrame components ( #5268 )
...
* changes
* katex
* add changeset
* dataframe
* add changeset
* latex in dataframe
* add changeset
* lint
* lint
* stories and types
* stories
* type
* restore lock
* pnpm lock
* fix backend tests
* xray configs
* test files
* test utils
* fix utils
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-21 06:54:20 -07:00
Abubakar Abid
c39f06e16b
Fix .update()
for gr.Radio()
and gr.CheckboxGroup()
( #5254 )
...
* fix dynamic -> interactive
* fix checks
* add changeset
* add changeset
* fix changeset
* fix linting issues
* Fix update choices
* add test
* fix'
* revert
* revert
* Delete curly-hands-carry.md
* 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-18 07:58:33 -07:00
Abubakar Abid
f344592aeb
Allows setting a height to gr.File
and improves the UI of the component ( #5221 )
...
* file
* file downlaod
* add changeset
* added story
* lint
* fix test
* add changeset
* margin
* fixes
* lint
* modify
* lint
* add changeset
* revert
* revert
* add changeset
* Delete Chatbot.stories.svelte
* revert
* revert
* add changeset
* redesign
* lint
* fixes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-17 18:43:12 -07:00
Abubakar Abid
c57d4c232a
gr.Radio
and gr.CheckboxGroup
can now accept different names and values (#5232 )
...
* radio
* radio checkboxgroup
* add changeset
* type
* fix tests
* types
* fix unit test
* Update gradio/components/radio.py
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Update gradio/components/checkboxgroup.py
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* fix review
* examples
* backend
* type fixes
* fix test
* fixed example
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2023-08-16 11:27:39 -07:00
Artem Kotov
1ecf88ac5f
fix #5229 ( #5235 )
...
* fix #5229
* add changeset
* add simple test for #5229 similar to default one
* Lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-08-16 10:36:45 -04:00
Abubakar Abid
87f1c2b4ac
Allow gr.Interface.from_pipeline()
and gr.load()
to work within gr.Blocks()
( #5231 )
...
* add test
* external
* fixed in external
* add changeset
* close demo
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-15 22:28:19 -07:00
Freddy Boulton
e8fd4e4ec6
Completely hide api page if show_api=False ( #5219 )
...
* Add code
* add changeset
* type check
* CHANGELOG
* Update dirty-snails-love.md
* Add test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-15 10:07:53 -04:00
Lucain
947d615db6
Sign in with Hugging Face (OAuth support) ( #4943 )
...
* first draft
* debug
* add print
* working oauth
* inject OAuth profile + enable OAuth when expected + some doc
* add changeset
* mypy
* opt
* open in a new tab only from iframe
* msg
* add changeset
* Apply suggestions from code review
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fix injection + gr.Error
* allow third party cookie when possible
* add button to sign in/sign out button
* feedback changes
* oauth as optional dependency
* disable login/logout buttons locally
* nothing
* a bit of documentation
* Add tests for Login/Logout buttons
* Apply suggestions from code review
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* mention required dependencies
* fix package
* fix tests
* fix windows tests as well
* Fake profile on local debug
* doc
* fix tets
* lint
* fix test
* test buttons
* login button fix
* lint
* fix final tests
---------
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>
2023-08-10 15:12:40 -04:00
Jiri Puc
80be7a1ca4
chatbot conversation nodes can contain a copy button ( #5125 )
...
* chatbot conversation nodes can contain a copy button
* add changeset
* the newly added chatbot copy message button is now called show_copy_button
* chatbot's Copy component styling improved
* chatbot's Copy component - typing fix
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-10 10:11:26 -04:00
Hannah
144df459a3
Add show_edit_button
param to gr.Audio
( #5149 )
...
* add show_edit_button param
* add changeset
* formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-09 16:38:07 -04:00
Freddy Boulton
80727bbe2c
Fix dataset features and dataset preview for HuggingFaceDatasetSaver ( #5135 )
...
* Add tests
* Use hf token
* lint
* add changeset
* Add empty string for None
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-09 14:14:12 -04:00
Abubakar Abid
0dc49b4c51
Add support for async functions and async generators to gr.ChatInterface
( #5116 )
...
* add support for async functions and iterators to ChatInterface
* fix api
* added support to examples
* add tests
* chat
* add changeset
* typing
* chat interface
* anyio
* anyio generator
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-08 15:57:55 -04:00
Charles Bensimon
56b02279ce
Set env with MonkeyPatch ( #5134 )
2023-08-08 12:33:02 -04:00
Charles Bensimon
97d804c748
[Spaces] ZeroGPU Queue fix ( #5129 )
...
* Properly set max_size and concurrency_count for ZeroGPU
* ZeroGPU concurrency_count warning
* Test
* add changeset
* Lint
* Sure, typing_extensions is a third-party ..
* Fix and refactor
* Black
* Empty commit
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-08 12:18:45 -04:00
sweep-ai[bot]
34f6b22efb
Strip leading and trailing spaces from username in login route ( #5104 )
...
* Update gradio/routes.py
* Update test/test_routes.py
* consolidate test
* add changeset
* update sweep yaml
---------
Co-authored-by: sweep-ai[bot] <128439645+sweep-ai[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-04 17:37:34 -04: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
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
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
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
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
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
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
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
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
Hannah
a0efc1180d
Add show_download_button
to gr.Image() ( #4959 )
...
* add show_download_button param
* add static image story
* chlog
* fix test
* typo
* add default value
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fix test
* fix another test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-19 19:00:02 +01:00
Charles Bensimon
a0b87cb6b3
Filter-out special args when setting Interface component labels ( #4956 )
...
* Filter-out special args when setting Interface component labels
* CHANGELOG
* Regression test
* Revert "Filter-out special args when setting Interface component labels"
This reverts commit f82e9ba2f2
.
* Unrevert
This reverts commit 3361321eaa
.
* Empty commit
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-19 17:54:39 +03:00
Abubakar Abid
5a511f02af
A high-level ChatInterface
abstraction ( #4869 )
...
* push
* chat interface
* remove video artifact
* changes
* restore
* changes
* more functions
* clean
* chat interface
* chat interface
* Update gradio/chat_interface.py
* nit
* changes
* api fix
* chat interface
* guide
* guide
* changes
* fixes
* Added ChatInterface Examples for Langchain, OpenAI Streaming, and HF's Text Generation Inference (StarChat)
* docstring
* tests
* tests
* tests
* tests
* rename
* guide
* chatbot
* conclusion
* demo notebooks
* clog
* test
* chat interface
* fixes
* functional test
* test
* notebook
* guides
* typing
* docstring
* script
* upgrade pyright
* upgrade pyright
* Update CHANGELOG.md
* revert pyright upgrade
* typing
* redirects
* Update CHANGELOG.md
* guide
* guide
* readme
* screenshot
* add to readme
* quickstart
* readme
* Added transformers open-source LLM example using ChatInterface
* Minor nits to guide
* Minor tweak to test - use connect fixture
* website fixes
* nav
* guide
* fix tests'
* fix
* type
* clear
* chat interface
* fix test
* fix guide
* handle edge case
* edge case
* typing
* fix example caching with streaming
* typing
---------
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Yuvraj Sharma <48665385+yvrjsharma@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-07-17 13:22:47 -04:00
Abubakar Abid
b16732ffb2
Add RTL support to Textbox
, Markdown
, Chatbot
( #4933 )
...
* add rtl support
* redo
* remove param
* clog
* fix backend tests; add textbox story
* add textbox story
* fix textbox story
* fixed textbox story, markdown
* markdown story
* format
* fixes'
* Update CHANGELOG.md
* update docstrings
* fix tests
* fix static checks
* fix tests
2023-07-17 12:53:23 -04:00
Abubakar Abid
e90ad010ad
Allow caching generators and async generators ( #4927 )
...
* helpers
* helpers
* async and tests
* docstring
* changelog
* type
* typing
* helpers
2023-07-14 19:38:22 -04:00
aliabid94
9137f1caa0
Speed up gradio.launch, especially when there's no internet ( #4905 )
...
* changes
* changes
* changes
* Revert "changes"
This reverts commit cbebf39157
.
* lint
* fix tests
* an
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-14 15:45:52 -04:00
Freddy Boulton
431140b903
Fix bug related to preprocessing URLs for video ( #4904 )
...
* Support urls
* Add unit test
* CHANGELOG
* Bump client version
* use url_like
2023-07-12 21:46: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
Abubakar Abid
a82eee5733
Quick fixes to video test ( #4870 )
...
* push
* test components
* remove test file
* added monkeypatch
2023-07-11 10:29:14 -04:00
Freddy Boulton
6436e4ea5b
Refactor some python tests ( #4834 )
...
* Refactor
* Remove tests
* Fix image file
* trigger ci
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-10 13:40:46 -04:00
Freddy Boulton
0f8e25cd65
Fix gr.Warning/gr.Info when using generators + interface ( #4823 )
...
* Fix bug
* Fix notebook
* Add test
* Lint backend
2023-07-06 19:37:20 -05:00
Aarni Koskela
87e14e38b5
decode_base64_to_image: don't crash if EXIF data is broken ( #4764 )
...
* decode_base64_to_image: don't crash when if EXIF data is broken
* Simplify EXIF transposition to not read the EXIF data twice
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-06 10:35:08 -05:00
aliabid94
b8eb481473
Share button ( #4651 )
...
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* restore
* merge
* del image'
* update pnpm lock
* changes
* changes
* changes
* changes
* changes
* Update CHANGELOG.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* fix
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* chagnes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2023-07-05 19:50:17 -05: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
Abubakar Abid
56da69619c
Fix for analytics error ( #4738 )
...
* added exception
* fix
* changelog
* format
* blocks
* format
* Update gradio/exceptions.py
Co-authored-by: Aarni Koskela <akx@iki.fi>
* review fixes
* formatting
---------
Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-06-30 16:16:55 -05:00
Sunil Kumar Dash
e38496ec1e
Support path objs in components ( #4581 )
...
* Added support for Path objs in components(Video, Geallery, chatbot)
* added tests for pathlib.Path objs in Video, chatbot, Gallery
* added changes to docstrings and type annotations
* changelog
* formatting
* video
* fixing video docstring
* update
* Update test/test_components.py
* Update test/test_components.py
* formatting
* remaining components
* add pathlib to tests
* fix test
* formatting
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-29 16:54:35 -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
Jeb
d85fddf677
Updated components with 'info' attribute to update when update() is called on them. ( #4715 )
...
* updated components with 'info' attribute to update when update() is called on them.
* added change to CHANGELOG.md
* updated CHANGELOG.md with correct format ending
* fix test
* changelog
---------
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-29 11:09:55 +01:00
Freddy Boulton
2baf33c33f
Fix Wrong Deprecation Warning message for type/plot parameter ( #4709 )
...
* Add code
* CHANGELOG
* Fix
* Add to changelog
2023-06-28 15:02:01 -04:00
Ilya Trushkin
b5121a96b2
Forward tqdm
constructor arguments to Progress
component ( #4475 )
...
* Forward tqdm constructor arguments to Progress component
Signed-off-by: Ilya Trushkin <ilya.trushkin@intel.com>
* lint
* reorder args
* added tests
---------
Signed-off-by: Ilya Trushkin <ilya.trushkin@intel.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-26 09:26:28 -05:00