Commit Graph

667 Commits

Author SHA1 Message Date
Abubakar Abid
d3b7f73bcf
Update view api page to use Python client (#3765)
* Update view api page

* simplify

* update

* changes

* changes

* updated info

* formatting

* changes

* fixes

* save

* moved

* remove test input

* tweaks

* formatting

* add raw

* serialize

* fixes

* refactor

* fixes

* fixes

* Fetch api

* lower case

* view api

* fix tests

* format

* rough design

* readme

* api docs

* examples

* format

* formatting

* format

* version

* client changes

* formatting

* update client

* more example inputs

* api docs fixes

* remove notebook

* fix demo

* demo notebook

* styling on code snippet

* formatting

* fix audio, model3d

* format

* fix tests

* version

* cleanup

* format

* format

* format

* fixes

* version

* fix tests

* version

* format

* test

* format

* changelog

* changelog

---------

Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-04-13 16:20:33 -07:00
Greysuki
54af6ae290
Adding subtitles to gr.Video (#3673)
* v2 version now accepts video and subtitle format inputs.

* remove debug log and some format issue

* Update CHANGELOG.md

* Upload components.py and regenerate demo

* fix components and add comment to function

* fix postprocess return format

* changelog

* demo change to gr.Interface type

* fix file_types

* fixes

* added video serializer

* clean up preprocess

* clean up postprocess

* formatting

* frontend

* fixed serialization

* dataclass

* fix serialize

* version

* fix tests

* version

* changelog

* typing

* version

* changelog

* version

* versin

* fix tests

* fix tests

* backend

* test

* changes

* relax test

* fix demo

* notebook

* changes

* fix

* changes

* Update gradio/components.py

* Update client/python/gradio_client/client.py

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-04-11 16:06:48 -07:00
aliabid94
379b6f662e
Get Image click coordinates from .select (#3786)
* changes

* changes

* fix demo notebook

* changes

* changes

* chagnes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-10 14:47:33 -07:00
space-nuko
303b4dc0b5
Improve error messages for when argument lists mismatch (#3519)
* Improve error messages for when argument lists mismatch

* Fix comment

* Update changelog

* Fix typeerror

* Fix single output case

* Add argument validation tests

* Lint

* Move changelog to correct section

* Fix typo

---------

Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-04-07 13:22:42 -04:00
Abubakar Abid
5f8186218c
Document python client in gradio.app/docs (#3764)
* document py client

* more changes

* update docs

* changes

* fix tests

* formatting

* stash

* fix tests

* documentation

* more docs

* gradio client

* changes

* rework documentation

* add to docs

* modify dockerfile

* gradio client

* address feedback

* formatting

* gradio client version

* fix tests

* tweaks to website

---------

Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-04-06 12:58:42 -07:00
space-nuko
ebfce0f784
Make gr.Code support lines, expand to fill entire element (#3651)
* Make `gr.Code` support `lines`, expand to fill entire element

* Update changelog

* Fix typeerrors

* Fix test

* fix interactive bug with update

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-04-06 15:52:57 +01:00
Abubakar Abid
c0d70a7af5
Fix for default file name of recorded audio files (#3770)
* mic name

* changelog

* marked as flaky
2023-04-05 13:20:03 -07:00
Freddy Boulton
070b304e09
CI tweaks (#3752) 2023-04-04 14:02:20 -04:00
Aarni Koskela
ef3862e075
Switch linting to Ruff (#3710)
* Sort requirements.in

* Switch flake8 + isort to ruff

* Apply ruff import order fixes

* Fix ruff complaints in demo/

* Fix ruff complaints in test/

* Use `x is not y`, not `not x is y`

* Remove unused listdir from website generator

* Clean up duplicate dict keys

* Add changelog entry

* Clean up unused imports (except in gradio/__init__.py)

* add space

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-03 15:48:18 -07:00
Dan Sully
f868890cfe
Support IPv6 addresses for --server-name (#3695)
* Support IPv6 addresses for --server-name

* Update changelog now that I have a PR number.

---------

Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-04-03 13:34:15 -04:00
aliabid94
759fb3b1f2
Fix chatbot newline issue (#3717)
* changes

* changes

* changes

* changelog

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-31 07:46:27 -05:00
aliabid94
09aedce77c
Theme builder (#3664)
* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* Update CHANGELOG.md

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

* Update gradio/themes/builder.py

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

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-30 11:20:34 -07:00
Freddy Boulton
f97b5c0c72
Add orig_name field to video outputs (#3700)
* Add orig_name to video

* Fix test

* CHANGELOG

* Lint
2023-03-29 20:34:04 -04:00
Abubakar Abid
2a8c82de01
Documentation-related fixes to the python client (#3663)
* docstring

* add documentation

* added more serialization classes

* format

* info

* is valid

* formatting

* changes

* fixups

* fix tests

* machine readable

* formatting

* client

* format

* tweaks on printing

* version

* linting

* fix tests

* update pypi requirements

* updates

* type ignore'

* fixes

* formatting
2023-03-29 15:00:20 -07:00
Abubakar Abid
dc37ddb739
fix sort script (#3696)
* fix sort script

* formatting

* script
2023-03-29 16:39:40 -04:00
space-nuko
df98c443f7
Fix default parameters value and gr.Progress in same function (#3671)
* Fix default parameters value and gr.Progress in same function

* Update changelog

* Fix tests

* Format

* Expand tests for other types of special function arguments

* Augment SelectData tests

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-28 19:37:38 -07:00
Abubakar Abid
fec48570c7
Load upstream theme (#3641)
* theme loading

* upstream theme

* version

* format themes

* fixes

* tests

* one more test

* fix test

* address review
2023-03-28 13:34:27 -07:00
Freddy Boulton
ceb5853480
Raise errror if event queued but queue is not enabled (#3640)
* Raise Error

* CHANGELOG

* Add progress tracking validate_queue_settings

* Update gradio/blocks.py

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

* Fix test

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-27 18:01:02 -07:00
Abubakar Abid
b1f8d11e4e
Fix windows flake (#3650)
* fix windows flake

* format backend

---------

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-03-27 17:36:43 -07:00
space-nuko
212961ef6a
Support empty lists being used in gr.Dataframe (#3646)
* Support empty lists being used in `gr.Dataframe`

* Update changelog

* Add empty dataframe test

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-27 16:55:11 -07:00
space-nuko
e6ea19dee9
Add Windows CI (#3628)
* Add Windows CI

* Update changelog

* fix

* Skip one test on Windows

* Preserve virtualenv path

* Skip another test on Windows

* Make conditional flaky

* Requested changes

* consistent os

* cleanup

* fix test for windows

* remove unnecessary check

* lint

* lint

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-27 11:55:59 -07:00
Abubakar Abid
1c8d3cb05d
Simplify tests (#3608)
* simplify tests

* imports

* imports

* formatting

* removed cometml typing

* simplify

* changelog
2023-03-24 12:39:30 -07:00
Dawood Khan
811d26aab4
Use gradio-api-server for telemetry (#3488)
* analytics

* changelog

* remove interface analytics

* ip

* remove import

* format

* theme name

* theme analytics

* format

* changelog

* fixes

* format

* remove unused param

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-24 13:01:31 -04:00
Abubakar Abid
7a4e22b61a
Fixes Blocks exit issue (#3600)
* fix

* changelog

* blocks

* formatting
2023-03-24 09:48:32 -07:00
Abubakar Abid
6e6121a1ac
Sets up the Python gradio client (#3300)
* placeholder

* changelog

* added to readme

* client

* implement futures

* utils

* scripts

* lint

* reorg

* scripts

* serialization

* cleanup

* fns

* serialize

* cache

* callbacks

* updates

* formatting

* packaging

* requirements

* remove changelog

* client

* access token

* formatting

* deprecate

* format backend

* client replace

* updates

* moving from utils

* remove code duplication

* rm duplicates

* simplify

* galleryserializer

* serializable

* load serializers

* fixing errors

* errors

* typing

* tests

* changelog

* lint

* fix lint

* fixing files

* formatting

* type

* fix type checking

* changelog

* changelog

* Update client/python/gradio_client/client.py

Co-authored-by: Lucain <lucainp@gmail.com>

* formatting, tests

* formatting, tests

* gr.load

* refactoring

* refactoring'

* formatting

* formatting

* tests

* tests

* fix tests

* cleanup

* added tests

* adding scripts

* formatting

* address review comments

* readme

* serialize info

* remove from changelog

* version 0.0.2 released

* lint

* type fix

* check

* type issues

* hf_token

* update hf token

* telemetry

* docs, circle dependency

* hf token

* formatting

* updates

* sort

* script

* external

* docs

* formatting

* fixes

* scripts

* requirements

* fix tests

* context

* changes

* formatting

* fixes

* format fix

---------

Co-authored-by: Lucain <lucainp@gmail.com>
2023-03-23 15:33:44 -07:00
Freddy Boulton
926f3e21bf
Set theme name from load (#3595)
* Add name + test

* Add theme names

* CHANGELOG

* Delete theme in interface
2023-03-23 17:27:16 -04:00
Abubakar Abid
88afd684be
Makes some fixes related to TempFiles (#3523)
* temp file fixes

* changes

* fixing tests

* formatting

* fix

* fix chatbot processing

* tests

* get tests to pass

* fix code demo

* changelog

* fix multimodal
2023-03-21 09:37:24 -07:00
Abubakar Abid
c1b5d42cd2
Removes leading spaces from all lines of code uniformly in the gr.Code() component (#3556)
* code changes

* changelog
2023-03-20 22:07:46 -07:00
Freddy Boulton
6fbd25399e
Add theme sharing tutorial to guide (#3543)
* Add theme sharing guide

* Misc updates

* Use bullet points

* Fix typo in 3.7 requirements

* List all built-in themes in guide
2023-03-20 16:57:53 -04:00
Freddy Boulton
ce1837f68c
Separate dependencies for python 3.7 and 3.9 (#3548)
* Separate dependencies

* Lint

* Install in dep + revert

* Typo
2023-03-20 16:02:17 -04:00
Freddy Boulton
8ec2b0b98a
Sharing themes (#3428)
* Rebase

* Remove build hooks

* Working implementation

* Add semver + unit tests

* CHANGELOG

* Add to docs

* Rename push_to_hub and fix typos

* Fix gallery

* Fix typo

* Address comments + tests

* Update gradio/themes/app.py

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

* Import Base as Theme. Use DefaultTheme() as fallback

* Fix types

* Make version and token truly optional

* Add version dropdown + tests

* trigger

* Support private themes and org_names

* Fix org_name typo

* Update wheel

* Fix font loading and dumping

* fixing tests

* fix tests

* formatting

* version

* remove requirements

* remove requirements

* formatting

* fix tests

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-18 20:15:02 -07:00
aliabid94
8114202697
Use soft theme instead of glass theme in demo (#3503)
* changes

* changes

* changes

* changes

* changes

* Update gradio/themes/base.py

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

* Update gradio/themes/base.py

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* Update guides/03_building-with-blocks/06_theming-guide

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

* changes

* changes

* changes

* changes

* changes

* undo merge break

* changes

* changes

* changes

* fix

* theme_to_soft

* changes

* formatting

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-18 13:07:23 -07:00
space-nuko
52253b8bb1
Remove IOComponent.add_interactive_to_config (#3476)
* Remove `IOComponent.add_interactive_to_config`

* Move interactive mode conversion into postprocess

* Requested changes

* Update tests

* Fix test

* Fix test

* Fix test

* Fix test

* updating test file

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-18 08:13:19 -07:00
space-nuko
6ffa7f105e
Remove generate_sample() method (#3483)
* Remove `generate_sample()` method

* Add changelog entry

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-16 14:22:25 -07:00
aliabid94
373c8dd716
Add elem classes (#3466)
* changes

* changes

* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-15 14:01:53 -07:00
Radamés Ajna
226e87cd54
implement missing methods handle nested dict (#3459)
* implement missing methods handle nested dict

test for get 'user-agent'
extra example for gr.Requests

* missing notebook example

* add missing attributes, keys, values, items

* update changelog

* fix changelog
2023-03-14 15:15:12 -07:00
aliabid94
95bf08b2e2
Adding the .select event listener (#3399)
* changes

* changes

* changes

* changes

* changes

* changes

* changs

* changes

* changes

* changes

* changes

* changes

* changes

* preview

* fix notebook

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* Add type hints (#3403)

Co-authored-by: aliabid94 <aabid94@gmail.com>

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* change

* changes

* changes

* changes

* changes

* changes

* changes

* Update gradio/helpers.py

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

* doc update

* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-03-13 17:12:41 -07:00
Abubakar Abid
175dd160ec
Adds accepts parameter to Code component to control filepath/string (#3450)
* test

* wording

* remove show label

* show label

* adding example

* add examples

* make change

* Code
2023-03-13 13:59:23 -07:00
Dawood Khan
f8159aa5f4
Making the chatbot even more multimodal (#3413)
* multimodal chatbot

* notebook

* fix tests

* Update demo/chatbot_multimodal/run.py

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

* fix notebook

* changelog

* Update CHANGELOG.md

* Update gradio/components.py

* Update gradio/components.py

* Update gradio/components.py

* fixing security issue

* updating demo

* formatting

* demo notebooks

* changes

* typing

* changes

* changes

* changes

* add test

* fixes

* renaming demos

* fixed demo

* fixes

* fix demos

* chatbot

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-03-13 07:21:03 -07:00
aliabid94
092b7448e6
consecutive triggers with .then (#3430)
* changes

* changes

* changes

* changes

* changes

* changes

* changes

* Update guides/03_building-with-blocks/01_blocks-and-event-listeners.md

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

* Update gradio/blocks.py

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

* Update demo/chatbot_simple_demo/run.py

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

* Update demo/chatbot_simple_demo/run.py

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

* allow nest

* changes

* changes

* changes

* changes

* changes

* events

* formatting

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-11 20:38:22 -08:00
pngwn
11bb732f5d
add code component (#3421)
* add code component

* changes

* changes

* code

* add code to all_demos

* change remove prefix

* changes

* notebooks

* fix pythong types

* changelog

* cleanup

* Apply suggestions from code review

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

* add interactive kwarg

* fix focus

* changelog

* fix demo

* tests

* cleanup

* Update gradio/components.py

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

* change padding to compute from block label styles

* use neutral colours for sucess animation

* cleanup

* update document

* add changelog for fix

* fix documentation

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-10 17:52:17 +00:00
Dawood Khan
12fb005ac8
Analytics Refactor (#3342)
* hub telemetry

* more analytics

* format

* changelog

* Gradio Status Page  (#3331)

* add status page to error message

* changelog

* link to status page on website

* move link to the right

* merge

* merge

* Add option to display gallery in preview mode (#3345)

* Add code + api

* CHANGELOG

* dropdown (#3338)

* fix

* fixes

* format

* changelog

* Update gradio/components.py

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

* fix clear case

---------

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

* Some improvements to Flag (#3289)

* Fixes to button disable

* button

* formatting

* flagging fix

* fixes

* formatter

* changelog

* ormatting

* tests

* saving

* adding optionality for flagging

* updatest

* error catching

* updates

* changelog

* tests

* typing

* flag button

* formatting

* tests

* tests

* tests

* increased latency

* queue fix

* clear

* formatting

* fix

* fix tests

* Fix flaky external test (#3348)

* Fix flaky external test

* CHANGELOG

* Undo accidental diff

* Fix flaky external test

* CHANGELOG

* Undo accidental diff

* Remove from changelog

* Use bunny file

---------

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

* updates

* format

* more updates

* threading

* fixes

* Fix error when using backen_fn and custom js at the same time (#3358)

* Fix error when using backen_fn and custom js at the same time

* generate notebooks

* update changelog

* changes

---------

Co-authored-by: Ali Abid <aabid94@gmail.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>

* Fix File updating (#3375)

* Fix

* Remove line

* Add unit test

* CHANGELOG

* Remove comment

* Updated chat ui (#3370)

* test

* changes

* chagnes

* changes

* changes

* changes

* changes

* Update CHANGELOG.md

* changes

* Update demo/chatbot_multimodal/run.py

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

* Update demo/chatbot_simple_demo/run.py

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

* changes

* changes

* changes

---------

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

* fixes

* New Version Docs (#3376)

* [create-pull-request] automated change

* empty commit

* [create-pull-request] automated change

* empty commit

---------

Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>

* requirements

* test requirements

* Release 3.20.1 (#3390)

* release 3.20.1

* changelog

* merge

* New Version Docs (#3392)

* [create-pull-request] automated change

* trigger ci

---------

Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* merge

* Remove everything related to encryption (#3396)

* remove requirements

* deprecate encrypt

* remove flagging

* deprecate

* formatting

* lint

* Adds a Chinese translation for the `README` (#3394)

* add chinese readme

* add chinese readme

* update changelog

* fix render_readme and english readme

* generate readme

* remove template and quickstart files

* link to chinese from english

* fix assets paths

* link to english from chinese

* change file location

* fix link

* fix link

* fix link

---------

Co-authored-by: aliabd <ali.si3luwa@gmail.com>

* fix bad codeblock (#3401)

* Always set queue=False if every is None for load events (#3391)

* Always set queue=False if every is None

* CHANGELOG + linting

* Move to latest release section

* changelog

---------

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

* JS client take 2 (#3388)

* start

* change api

* integrate into gradio

* log

* try this

* format

* changes

* format

* fix css

* fix file

* fix #3282 avoid in-place dict updates (#3405)

* fix #3282 avoid in-place dict updates

* add tests and changelog for PR3405

* Fix markdown embedded component in docs (#3410)

* revert to old md component demo

* changelog

* Added a section on security (#3408)

* security

* added section on security

* security

* changes from review

* Fix local tests (#3411)

* document embed params

* fix tests

* cleanup

* cleanup

* cleanup

* revert

* changelog

* Document web component parameters (#3407)

* document embed params

* changelog

* iframe

* fixed review changes

* requirements

* fixes

* format

* format

* requirements

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Jialei <3217223+jialeicui@users.noreply.github.com>
Co-authored-by: Ali Abid <aabid94@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Uanu <92366232+uanu2002@users.noreply.github.com>
Co-authored-by: gitgithan <hanqi11991@hotmail.com>
2023-03-08 21:28:15 -05:00
Abubakar Abid
0036b2e0b0
Preserve uploaded file names (#3412)
* document embed params

* fix tests

* cleanup

* cleanup

* cleanup

* revert

* changelog

* changes

* merge

* fix paths

* uploaded files

* persist file names

* changelog

* formatting

* remove orig_name

* remove orig_name

* rm method

* pathlib

* remove test

* fix tests

* lint

* fix model3d issue

* remove zip

* fix tests

* fix tests

* formatting

* fix test

* fix test
2023-03-08 12:24:09 -08:00
Abubakar Abid
da9a9cfd35
Fix local tests (#3411)
* document embed params

* fix tests

* cleanup

* cleanup

* cleanup

* revert

* changelog
2023-03-07 14:30:04 -08:00
gitgithan
ee1a76fd10
fix #3282 avoid in-place dict updates (#3405)
* fix #3282 avoid in-place dict updates

* add tests and changelog for PR3405
2023-03-07 10:12:19 -08:00
Freddy Boulton
47d6231680
Always set queue=False if every is None for load events (#3391)
* Always set queue=False if every is None

* CHANGELOG + linting

* Move to latest release section

* changelog

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-06 18:27:04 -07:00
Abubakar Abid
22c9254a12
Remove everything related to encryption (#3396)
* remove requirements

* deprecate encrypt

* remove flagging

* deprecate

* formatting

* lint
2023-03-06 15:06:23 -08:00
aliabid94
608d3b6250
Python backend to theming (#2931)
* add theme + theme atoms

* audio

* buttons

* chatbot

* forms

* start file

* complete file

* fixup workbench

* gallery

* highlighted text

* label

* json

* upload

* 3d model

* atoms

* chart

* md + html

* image

* plot + build

* table

* tabs

* tooltip

* upload

* tweaks

* tweaks + more tooling

* tweaks to padding/ lineheight

* app components _ start api docs

* format, more api docs

* finish api docs

* interpretation

* todos

* tweaks + cleanup

* tweaks + cleanup

* revert range tweaks

* fix notebooks

* fix test

* remove tw

* cleanup + login

* fix gitignore

* fix types

* run css script

* fix progress + tweaks

* update demos

* add css build to static check workflow

* tweak ci

* fix tests

* tweak markdown

* tweak chatbot + file

* fix tabs

* tweak tabs

* cleanup

* fix api docs

* fix example gallery

* add gradient to toast

* fix min height for interfaces

* revert tab changes

* update notebooks

* changes

* changes

* change

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* change

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* fix

* changes

* changes

* changes

* changes

* changes

* changes

* undo radius

* undo radius

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* change

* undo

* Add absolute imports

* mock theme in tests

* clean

* changes

* changes

---------

Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-06 12:52:31 -08:00
or25
75a1adee93
fixing issue #3178 (#3227)
* Update interface.py

 if the first param is self, trim the param list

* Update CHANGELOG.md

* update and add test

* update and add test

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-03-06 11:27:47 -08:00
Freddy Boulton
6242b2700e
Fix flaky external test (#3348)
* Fix flaky external test

* CHANGELOG

* Undo accidental diff

* Fix flaky external test

* CHANGELOG

* Undo accidental diff

* Remove from changelog

* Use bunny file

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-28 14:24:07 -05:00