Commit Graph

5097 Commits

Author SHA1 Message Date
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
Ali Abdalla
1229f3b001
Fix outdated sharing your app guide (#3699)
* fix embed this space screenshot

* fix use via api

* changelog

---------

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-03-29 19:49:40 -04:00
Freddy Boulton
03a11fcd3c
Add download button for video (#3581)
* Add download buttom

* Add missing imports

* CHANGELOG

* Update CHANGELOG.md

* Trigger CI

* Fix visibility

* Try to fix ci

* Fix deps

* download button change

* Lint

---------

Co-authored-by: Dawood <dawoodkhan82@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-29 19:30:00 -04:00
Ali Abdalla
3aa189c678
Fix broken spaces in docs (#3698)
* fix examples in sentence_builder

* fix sklearn error in titanic demo

* regenerate notebooks

* changelgo
2023-03-29 16:03:22 -07:00
Freddy Boulton
f73155ed42
Add status for Python Client Jobs (#3645)
* Add status + unit test (flaky) for now

* Install client

* Fix tests

* Lint backend + tests

* Add non-queue test

* Fix name

* Use lock instead

* Add simplify implementation + fix tests

* Restore changes to scripts

* Fix README typo

* Fix CI

* Add two concurrent test
2023-03-29 18:41:12 -04:00
space-nuko
cbb84927a7
Only give same values .selected class in gr.Dropdown (#3644)
* Only give same values .selected class in gr.Dropdown

* Update changelog

* Requested changes

* Format

* Update changelog

* isort

* Update js/form/src/DropdownOptions.svelte

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2023-03-29 23:10:43 +01: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
space-nuko
2f160e2b90
Only wrap single JS return value if not already an array (#3594)
* Only wrap single JS return value if not already an array

* Update CHANGELOG

* pin

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-29 14:40:03 -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
space-nuko
61b9a58175
Hide dropdown if in single-select mode (#3678)
* Hide dropdown if in single-select mode

* Update changelog

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-28 19:21:51 -07:00
Freddy Boulton
0b91a3363b
Add job for python client ci (#3674)
* Add job + lint

* Fix path

* Fix path

* Fix path

* Checkout

* Add test requirements

* Fix syntax

* Fix test

* Lint

* Fix deps + README

* Move dependency
2023-03-28 18:52:56 -04: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
Omar Sanseviero
a46b1806bb
Nit in ValueError (#3669)
* Nit in ValueError

* CHANGELOG

---------

Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-03-28 13:23:15 -04:00
Luo Peng
becada8795
Correct the documentation of gr.File component (#3660)
This closes #3658.

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-28 01:54:38 -07:00
Ali Abdalla
0df03a051f
Copy everything in website Dockerfile, fix build issues (#3659)
* dockerfile

* copy everything from repo

* correct dir

* changelog
2023-03-28 00:59:39 -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
pngwn
ae4277a9a8
move files (#3605)
* move files

* commit the rest of the files

* fix lockfile

* fix workflow

* fix type errors

* fix tests

* only run ci when certain files change

* run correct test command in ci

* version

* fix pypi script

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-27 16:12:58 -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
Freddy Boulton
108a66bbd1
Fix embedded demos (#3638)
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-27 08:33:57 -07:00
Dawood Khan
1aa2317a5f
Fixes chatbot autoscroll + Textbox lines > 20 issue (#3637)
* fixes

* changelog

* Update gradio/components.py

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

* Update CHANGELOG.md

* Update CHANGELOG.md

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-27 08:24:33 -07:00
Ali Abdalla
99fc2dd30f
fix issue with missing version (#3632)
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-03-27 11:04:36 -04:00
pngwn
0d9a08bf64
ensure css loads before mounting app (#3573)
* ensure css loads before mounting app

* changelog

* fix tests

* change?

* changelog
2023-03-27 15:52:07 +01:00
Omar Sanseviero
cecd5a2526
Add docs for HF Json saver (#3604)
* Add docs for flagging

* Fix params

* CHANGELOG

---------

Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-03-27 10:40:07 -04:00
Abubakar Abid
c9b8a0c484
A few small fixes to docs / demos (#3611)
* fixes

* remove binaries

* doc

* changelog

* typing

* run on windows

* cancels

* added clarifications
2023-03-24 16:28:38 -07:00
pngwn
4c00103dea
fix wc error in dev mode (#3572)
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-24 16:35:51 -04: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
Freddy Boulton
9d3f58b898
Translate "or" for i18n (#3599)
* Translate or for i18n

* CHANGELOG
2023-03-24 11:02:05 -04: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
f2fb69ec29
Trigger event when Slider number input is released (#3589)
* Add event

* Add unit test

* CHANGELOG
2023-03-23 17:59:56 -04: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
pngwn
7856382de6
ignore app (#3587) 2023-03-22 22:41:06 +00:00
pngwn
76c45999bb
update gradio/client readme (#3584) 2023-03-22 18:07:17 +00:00
pngwn
57a0aa194f
fix npm publish (#3582)
* fix npm publish

* correct repo name
2023-03-22 17:53:35 +00:00
pngwn
1e0dd0f1d5
change (#3580) 2023-03-22 15:26:48 +00:00
pngwn
245f80537f
change (#3579)
* change

* change
2023-03-22 15:16:02 +00:00
pngwn
87ec239b14
change (#3578)
* change

* change
2023-03-22 14:42:58 +00:00
pngwn
2d22d4f028
change (#3577)
* change

* formatting
2023-03-22 14:27:14 +00:00
pngwn
6c2b3d1bca
fix ci (#3576) 2023-03-22 14:00:50 +00:00
pngwn
320b46d8d8
fix ci (#3575) 2023-03-22 13:54:03 +00:00
pngwn
e553558a47
3404 publish js client (#3574)
* publish ci setup

* publish ci setup
2023-03-22 13:46:23 +00:00
Freddy Boulton
7140903dd6
Fix darkmode text color for altair plots (#3555)
* dont apply formatting for non-native plots

* CHANGELOG

* Remove unused diff
2023-03-21 19:32:33 -04:00
Ali Abdalla
053504a691
Remove extra $demo from theme guide (#3563)
* remove extra

* changelog
2023-03-21 12:53:47 -07:00
Ali Abdalla
ab95f0551e
Mobile responsive iframes in themes guide (#3562)
* make demos mobile responsive

* changelog
2023-03-21 11:52:34 -07:00
Abubakar Abid
6c8aeed58f
Theme guide fixes (#3561)
* fixes

* changelog

* changelog

* changelog

* fix
2023-03-21 10:44:25 -07:00