Commit Graph

4783 Commits

Author SHA1 Message Date
Freddy Boulton
3530a86433
Fix bokeh Plots (#3212)
* Add implementation

* Simpler approach

* Fix extra updates

* Fix python tests

* CHANGELOG + add bokeh plot demo

* Center content

* Fix value=bokeh case

* Add image to changelog

* Add notebook file

* Undo accidental changes

* Add missing plot type

* Fix type hints

* Fix requirements

* Lint

* Fix requirements

* remove lorenz

* Fix notebooks

* Remove bokeh demo

* Fix plot

* Don't use beforeUpdate

* FIx demo: Add load_event + bump bokeh>3.0

* Only load bokeh if needed

* Fix tests

* lint

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-17 16:47:06 -05:00
Abubakar Abid
a2b80ca5c6
FRP version fix (#3221)
* frp version fix

* changelog

* formatting
2023-02-17 14:47:39 -06:00
pngwn
1e99873fa5
1957 embed pretty (#3205)
* changes

* changes

* fix all things

* fix root

* fix ids

* tweaks

* twaks

* handle whitespace

* tweaks and fix checks

* revert demo change

* formatting

* formatting

* regen notebooks

* add eager attribute

* tweaks + formatting

* changelog

* fix

* fix

* fix css stuff

* tweak timeout when pollig

* format

* tweak

* format
2023-02-17 18:51:00 +00:00
Dawood Khan
9c08bb92c5
Add ability add a single message from the bot/user side (#3165)
* chatbot fices

* chagnelog

* remove starts_with

* more fixes

* added chatbot multimodal demo

* fix height

* height

* update demo

* changelog

* format

* format

* Update gradio/components.py

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

* fix

* format

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-17 13:02:41 -05:00
Freddy Boulton
791418a0a7
Fix clear event (#3218)
* Fix clear event

* CHANGELOG
2023-02-17 10:20:57 -05:00
Abubakar Abid
d15590d49c
Persistent FRP (#3149)
* start

* adding share_token

* added token

* revert older changes

* revert older changes

* fixes

* revert

* print

* changes

* version

* changelog, version

* fix tests
2023-02-16 16:31:16 -06:00
Abubakar Abid
752ec0ef6a
Cache temp files created from base64 data (#3197)
* changes

* added workflow

* fix action

* fix action

* fix action

* changelg

* formatting

* fix

* Delete benchmark-queue.yml

* Delete benchmark_queue.py

* changelog

* lint

* fix tests

* fix tests

* fix for python 3.7

* formatting
2023-02-15 17:24:48 -06:00
aliabid94
74f75f004a
Fix Table entry for Pinyin (#3206)
* changes

* changes
2023-02-15 13:13:55 -08:00
Abubakar Abid
74d9080fcd
Miscellaneous warnings and errors (#3194)
* changes

* added workflow

* fix action

* fix action

* fix action

* warning for filetypes

* miscellaneous warnings and errors

* Delete benchmark-queue.yml

* Delete benchmark_queue.py

* changelog

* warning

* formatting

* changelog

* formatting
2023-02-14 16:21:09 -06:00
Freddy Boulton
4307d7e809
Dispatch change event for "Clear All" with multiselect (#3195)
* Dispatch change

* CHANGELOG

* Fix changelog
2023-02-14 14:50:27 -05:00
Freddy Boulton
3d9226a8e6
Fix loading files from embedded spaces (#3177)
* Use root

* CHANGELOG
2023-02-14 13:31:43 -05:00
Abubakar Abid
d3371ec7d3
Fixes gr.utils.delete_none (#3188)
* changes

* added workflow

* fix action

* fix action

* fix action

* fixed delete none

* Delete benchmark-queue.yml

* Delete benchmark_queue.py

* changelog

* fixing tests

* format
2023-02-13 15:28:43 -06:00
Omar Sanseviero
dd5d7630be
Add a section on how to run a Gradio app locally (#3170)
* Update 01_quickstart.md

* Update CHANGELOG.md

* Update 01_quickstart.md

---------

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-02-13 13:13:15 -05:00
Maxime Vidal
a4db6edd42
Fixed typos in function descriptions (#3168)
* Fixed typos in function descriptions

* updated changelog.md
2023-02-10 13:26:05 -05:00
Freddy Boulton
c06b4eab16
Bar Plot Component (#3157)
* Add code - first draft

* Getting better

* Work out the bugs

* Fix docstrings

* CHANGELOG

* Fix test

* Generate notebooks

* Add unit test

* Undo website package.lock

* Fix demo

* Fix notebooks

* Fix docstrings

* Improve example in CHANGELOG

* Address comments + feedback

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-09 16:42:25 -05:00
wfng92
f92109621a
Keep pnginfo metadata for gallery (#3150)
* Keep pnginfo metadata for gallery

* add test to pil_to_file for keeping image metadata

* Update CHANGELOG.md

* formatting

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-09 10:20:50 -08:00
Ali Abdalla
1bc817a600
Sort components in docs by alphabetic order (#3152)
* alhabetic ordering of components

* changelog
2023-02-08 19:07:23 -08:00
Ali Abdalla
559de6eee9
Fix demos page css and add close demos button (#3151)
* close button for demo window

* fix demos page css, replace stable diffusion

* changelog

* demo notebook

* add scrollbar for demo window

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-08 18:54:48 -08:00
Ali Abdalla
190687e716
Changes to W&B guide (#3153)
* changes to guide

* changlog

* changlog fix credit to scott
2023-02-08 13:29:37 -08:00
github-actions[bot]
ba67036df8
New Version Docs (#3147)
* [create-pull-request] automated change

* empty commit

---------

Co-authored-by: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-02-07 13:45:55 -08:00
Abubakar Abid
c9282c4c0a
version 3.18.0 (#3141)
* version 3.18.0

* changelog
2023-02-07 13:14:22 -08:00
Freddy Boulton
71f6117f6f
Fix darkmode toggle on native plots (#3146)
* Fix darkmode

* CHANGELOG

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-07 15:55:31 -05:00
Dawood Khan
921ff1c47a
A few dropdown fixes (#3145)
* dropdown fixes

* changelog

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-07 12:48:31 -08:00
Ali Abdalla
0773205fdb
Better docs navigation on mobile (#3112)
* fix responsiveness of embedded lineplot

* regenerate notebook

* nav button and sidebar

* better styling

* fix broken quickstart link

* fix styling on close button

* styling

* undo assets change

* changelog

* refactor code

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-07 12:42:57 -08:00
Freddy Boulton
1306ab3865
Fix examples pagination (#3144)
* Fix font color and layout

* CHANGELOG
2023-02-07 15:30:30 -05:00
Dawood Khan
3d3ec119e8
Fixes interactive output image cannot be set when in edit mode (#3135)
* cropper fix

* Update CHANGELOG.md
2023-02-07 12:49:50 -05:00
Abubakar Abid
85e8f3070c
Sagemaker check (#3137)
* kaggle check

* add tests

* sagemaker

* changelog

* type check

* update test requirements
2023-02-07 08:25:24 -08:00
Abubakar Abid
f37d17089d
Fixes components when loading private spaces (#3068)
* file routes

* adding access token

* add reverse proxy

* adding access token

* context

* rewrite

* frontend

* formatting

* changelog

* formatting

* fix tests

* fixed image issue

* fix frontend

* os removal

* Update test_external.py

* fixes to normalise

* version

* fixes so that functions work

* lint

* formatting
2023-02-07 07:55:51 -08:00
Abubakar Abid
f062c7e1fd
Adds a demo / information about how to create demos with variable #s of outputs (#3127)
* added demo

* added to guide

* changelog

* notebooks

* update demo
2023-02-06 11:38:54 -08:00
Freddy Boulton
9beb15b3ec
Turn Submit Button into Cancel Button for Interfaces with generators (#3124)
* Switch back from stop button

* Add unit test

* CHANGELOG

* Fix test

* lint

* Reset UI after exception
2023-02-06 14:30:21 -05:00
Freddy Boulton
ec2b68f554
Update docs on equal_height param for Rows (#3125)
* Update docs

* CHANGELOG
2023-02-06 14:21:59 -05:00
Freddy Boulton
50d24a854e
Emit warning when using an interface in reload mode (#3126)
* Add warning

* CHANGELOG

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-06 10:00:35 -05:00
Max Audron
84afc51484
add argument to allow serving files from additional directories (#3075)
* add argument to allow serving files from additional directories

* tweaks

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-05 18:04:26 -08:00
Abubakar Abid
a0248f26dd
Example caching now works with components without a label attribute (e.g. Column) (#3123)
* add non io component support for example caching

* chaneglog
2023-02-03 16:46:56 -08:00
pngwn
a23bc03aeb
ensure video resets state correctly when a new src is loaded (#3117)
* improve is playing, remove console error

* add video demo to all_demos

* fix demo

* fix bug

* changelog + notebooks

* cleanup

* fix choppy video resizing

* reduce flashing due to prediction request, video loading + rendering

* fix notebooks

* changelog
2023-02-03 17:36:31 +00:00
Dawood Khan
63d5efcfc4
Chatbot Guide Update (#3023)
* chatbot guide

* guide update

* changelog

* demo updates

* demo fix

* notebook fix

* format

* guide fixes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-03 12:13:15 -05:00
Freddy Boulton
da4c46c33a
Change image url for fake diffusion demos (#3120)
* Change image url
:

* Fix demos

* CHANGELOG

* Use s3 link
2023-02-03 11:21:41 -05:00
Freddy Boulton
9b15e9a1f8
Update docs to explain how reload mode can be used with queue/auth (#3089)
* Add note to guide

* Add more explanation

* Undo changes

* CHANGELOG

* Make work with queue + fix docs

* Changelog fix

* Add unit test

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-02 15:39:45 -05:00
Abubakar Abid
431a987d61
Fixes URL resolution on Windows (#3108)
* windows urls

* changelog

* formatting
2023-02-02 08:47:17 -08:00
Dhruv Nair
04484621c2
Add guide for Comet and Gradio (#3058)
* initial commit for comet guide

* Add video clips

* fix typos and links

* add edit panel gif

* rename markdown file for guide

* update video tags

* update changelog

---------

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-02-02 11:17:58 -05:00
Abubakar Abid
f3b3736596
Guide on 4 kinds of interfaces (#3003)
* guide on 4 kinds of interfaces

* interfaces

* changelog

* added demo

* added demos and edited markdown

Added standard and unified interface demos, along with updates to the markdown.

* updated notebooks

Updated notebooks with markdown changes and bug fixes

* interfaces

* moved location of guide

* ranemd

* renamed

* removed demo

* updated blocks code to interfaces

* upload requirements.txt file

* Delete run.ipynb to add another notebook file

upload and replace

* Add run.ipynb via upload option

Notebook for unified interface demo

* fixed typo

* fixes

* update demos

* notebooks

---------

Co-authored-by: yuvraj sharma <48665385+yvrjsharma@users.noreply.github.com>
2023-02-02 07:58:29 -08:00
github-actions[bot]
4a8381312f
New Version Docs (#3116)
* [create-pull-request] automated change

* trigger ci

---------

Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-02-02 10:03:39 -05:00
Abubakar Abid
1aec8e0a96
release v3.17.1 (#3115) 2023-02-02 04:45:27 -08:00
Greysuki
cd7370d9eb
Final? (#3098)
Co-authored-by: pngwn <hello@pngwn.io>
2023-02-02 12:16:38 +00:00
aliabid94
f434058dd4
Fix gallery grid (#3107)
* changes

* changes

* changes

* generate notebook

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-02 03:47:03 -08:00
Freddy Boulton
792289cdf7
Fix example gallery mode (#3090)
* Fix example gallery mode

* CHANGELOG
2023-02-01 12:09:39 -05:00
Freddy Boulton
42ad0cbe45
Enable gradio to work on kaggle (#3101)
* enable share kaggle

* Add test

* CHANGELOG

* Add image to changelog
2023-02-01 11:53:53 -05:00
Christopher Akiki
4d94d4b3a5
[Minor] Correct link (#3109)
* Correct link

* Update CHANGELOG.md
2023-02-01 11:21:16 -05:00
aliabid94
26056e5d72
Fix change event listener (#3095)
* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2023-02-01 15:51:38 +00:00
pngwn
70a705c817
only mount fonts in prod mode (#3100)
* only mount fonts in prod mode

* cleanup

---------

Co-authored-by: aliabid94 <aabid94@gmail.com>
2023-02-01 01:09:39 +00:00