Commit Graph

5460 Commits

Author SHA1 Message Date
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
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