Commit Graph

5437 Commits

Author SHA1 Message Date
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
Abubakar Abid
c93c317bb8
chat interface example code fix (#4984) 2023-07-20 14:05:46 +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
देवांश वार्ष्णेय
fdc9ca2ddf
enhancement: Added support for new command 'gradio environment' (#4915)
* enhancement: Added support for new command 'gradio environment' in cli.py

* added change to the Upcoming Release section

* Add to Issue template

* making the output look a bit nicer

* format

* Use project_name

---------

Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-19 12:42:01 -04: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
Hannah
224b596314
Fix cropped videos CSS bug (#4946)
* add width/height to video wrap

* add comment on progress

* add video story

* upload utils linting

* fix a11y violations

* chlog

* add width/height args

* remove on changes chromatic flag

* test

* remove test
2023-07-19 09:32:32 +01:00
Ali Abdalla
1d1dba1851
Fix responsive issues with docs, guides and changelog (#4833)
* fix right nav bar docs

* make guides responsive

* make changelog responsive

* much better side navbar
2023-07-19 03:56:12 +03:00
Abubakar Abid
3222688f7a
fix langchain, openai examples (#4961) 2023-07-18 15:54:15 -04:00
Freddy Boulton
5dba3b2217
Run pyright on components directory (#4948)
* apply pyright components

* Add code

* CHANGELOG

* format

* Add configuration

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-18 13:31:53 -04:00
pngwn
181c6721b6
chore: update versions (#4781) 2023-07-18 07:17:59 +01:00
Ali Abdalla
f5b300fd3e
regenerate jsons (#4952) 2023-07-18 03:08:55 +03:00
Abubakar Abid
1f5c090cb5
Release 3.37 (#4947)
* version

* ltr
2023-07-17 14:52:39 -04:00
aliabid94
edde958e32
fix (#4949) 2023-07-17 14:29:01 -04: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
Freddy Boulton
7b18891aae
Client: Support endpoints that return layout components (#4871)
* Add code

* CHANGELOG

* Add code

* Use set

* Modify _setup_serializers instead

* Push up code

* Remove from serializing

* Add gradio_client changes

* Update requirements.txt
2023-07-17 13:21:54 -04:00
aliabid94
f2fd37ee59
Fix gr.Group, container=False (#4916)
* changes

* changes

* changes

* changes

* changes

* fix

* changes

* changes

* Deploy group demo

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-07-17 10:05:46 -07:00
Charles Bensimon
c409cd5c73
Queue max_size defaults to Block's max_threads on ZeroGPU Spaces (#4937)
* Queue max_size defaults to Block's max_threads on ZeroGPU Spaces

* More readable ?

* CHANGELOG
2023-07-17 12:57:14 -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
Hannah
7f6d0e19ad
Fix images being cut off within a gr.Row()'s children (#4896)
* apply missing flex to Row component

* remove redundant !important

* changelog

* add (sort of a) row test

* remove import
2023-07-17 17:08:17 +01:00
Hyoung-Kyu Song
e6cf145fc9
Fix the expired image link used in theme builder (#4944)
* fix the expired image link

* update CHANGELOG.md

* Update gradio/themes/app.py

change the image link same as the original one

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Update gradio/themes/app.py

change the image link same as the original one

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* apply lint

* equalize the default image link with app.py

* equalize default image links in building theme

* equalize default image links in demo notebook

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-17 11:51:01 -04:00
pngwn
6d40cdc7c5
remove-file (#4938) 2023-07-17 11:55:30 +01: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
pngwn
9641c216e7
remove three types (#4923) 2023-07-14 18:03:34 +01:00
aliabid94
3474122cb3
Fix API page code snippets in safari (#4924)
* changes

* changes
2023-07-14 09:53:42 -07:00
renovate[bot]
b39bc26644
Update typescript-eslint monorepo to v6 (#4865)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-14 12:31:53 -04:00
pngwn
3a4b1d8f8b
move all of the chatbot component in to js/chatbot (#4900)
* changes

* fix test

* changes
2023-07-13 17:41:47 +01:00
Ali Abdalla
315d7f4283
Add gr.Group to docs (#4913)
* add group

* exclude js/_website from workflow and add echo pr test

* fix path / remove echo

---------

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-07-13 17:28:30 +03: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
Freddy Boulton
d3e1d272d5
Fix flaky ui test (#4906)
* Debug

* Upload screenshots

* Fix path

* turn on verbose mode

* turn on verbose mode

* turn on verbose mode

* await click

* cleanup

* trigger ci

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-07-12 21:08:36 -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
Hannah
d48f463cd4
Update chromatic job with build details (#4856)
* move chromatic to push event and change message

* output test

* test

* tweak

* get PR for push event

* changes

* omit forks and check label using gh action

* tweak

* workflow tweaks

* test tweak

* remove test output

* add pending comment

* tweak message

* newline

* only run chromatic workflow if pushed files are in js folder

* test

* remove test

* update workflow path filter with theme files

Co-authored-by: pngwn <hello@pngwn.io>

* add chromatic workflow to path filter

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-07-12 18:21:39 +01: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
Freddy Boulton
59b492a082
Fix loading spaces with api_name=False (#4886)
* Fix api_name=False

* Add more to test
2023-07-12 11:09:06 -04:00
pngwn
def42d0669
update pr comment (#4893) 2023-07-12 11:53:14 +01:00
pngwn
b6480c3903
update pr comment (#4892) 2023-07-12 11:44:20 +01:00
pngwn
fd3837df3c
add wheel install instructions to PR comment (#4890)
* change

* change

* change
2023-07-12 11:28:24 +01:00
Freddy Boulton
4bf301324b
Lint website (#4879) 2023-07-11 21:00:52 -04:00
Abubakar Abid
abd0ced3db
Fixes .change() in Video, Audio, Image (#4793) 2023-07-11 16:56:46 +01: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
Ali Abdalla
3e9f5407ae
fix path to gradio.svg (#4877) 2023-07-11 13:21:44 +03:00
Freddy Boulton
c17b91e114
Fix flaky e2e test (#4864)
* Split test into two

* Don't use await

* Dont use await
2023-07-10 15:53:09 -04:00
Ali Abdalla
5d080cdb74
Fix component events matrix in docs (#4863)
* fix events matrix

* regenerate json

* remove ordered_events

* remove hardcoded events

* mistake

* add end to docs
2023-07-10 20:52:14 +03: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
cd551f70dd
Bump version (#4861) 2023-07-10 12:32:49 -04:00
Yuichiro Tachibana (Tsuchiya)
c7e8ed1e1d
Remove an unnecessary line of .prettierignore (#4852)
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-07-10 11:45:23 -04:00
sweep-ai[bot]
f5e057b06e
Create sweep.yaml config file (#4854)
Co-authored-by: sweep-ai[bot] <128439645+sweep-ai[bot]@users.noreply.github.com>
2023-07-10 10:37:23 -05:00
Abubakar Abid
8613a52573
Quick update for the docstring in gr.Chatbot (#4860)
* push

* docstring

* remove file

* chatbot

* tweak
2023-07-10 10:35:09 -05:00