Commit Graph

5167 Commits

Author SHA1 Message Date
Freddy Boulton
a828b6088c
Make Client Jobs Iterable (#3762)
* Add iterator

* Break if done

* Add test for early termination
2023-04-05 14:19:05 -04:00
Abubakar Abid
7c1db51d95
changes (#3760) 2023-04-04 15:16:40 -07:00
Freddy Boulton
9325cba14c
Get Intermediate Results from Python Client (#3694)
* 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 intermediate results to python client

* Type check

* Typecheck again

* Catch exception:

* Thinking

* Dont read generator from config

* add no queue test

* Remove unused method

* Fix types

* Remove breakpoint

* Fix code

* Fix test

* Fix tests

* Unpack list

* Add docstring

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-04 17:58:25 -04:00
Abubakar Abid
c4ad09b631
Adds a pypi release action for the gradio python client (#3743)
* release action

* fixes

* name

* Update version.txt

* Update version.txt

* update

* fixes

* version

* rename

* action

* fix token

* custom dir

* fixes

* change password

* revert back to token

* scripts

* remove twine
2023-04-04 13:51:51 -07:00
Freddy Boulton
070b304e09
CI tweaks (#3752) 2023-04-04 14:02:20 -04:00
Freddy Boulton
46ee226d8c
Add root_url to serializers in gradio_client (#3736)
* Add root_url to serializers

* Add url fix

* Respect fn parameter

* Fix docstring

* Add other test

* Pass to method
2023-04-04 13:35:12 -04:00
Freddy Boulton
1981c010c6
Access http token for ws connection (#3735)
* Access unsecure token

* CHANGELOG

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-04 06:57:44 -07:00
Freddy Boulton
b97a61b83a
Import Literal from typing extensions in client (#3741)
* Fix typing extensions

* Import typing_extensions

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-03 19:17:00 -07:00
Abubakar Abid
dbc61db4da
import (#3742) 2023-04-03 17:44:32 -07:00
Abubakar Abid
f50d6043db
Fix missing docstrings (new PR) (#3740)
* Move documentation for _js into docstring, not a stray comment

* Add missing argument docstrings (and remove non-existent ones)

* Add changelog entry

* updated docstrings

* changelog

* contributors

* changelog

* formatting

* removed _js

---------

Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-04-03 16:44:10 -07: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
Dawood Khan
96ef802fbd
Increase timeout for analytics request + remove exception print (#3647)
* increase timeout

* merge

* Add changelog

---------

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-04-03 13:53:58 -04: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
pngwn
48e8b113f4
node support for js client (#3692)
* bundle js client + gen types

* changeset

* changeset

* fix bugs

* fix deps

* fix deps

* format

* fix ci

* fix types
2023-04-03 14:33:01 +01:00
Abubakar Abid
f46f5f9867
Fix some bugs related to Python client (#3721)
* client format

* docs

* formatting

* fix tests

* fixed bug

* api endpoint changes

* fix tests

* fix tests

* formatting

* Add support for sessions [python client] (#3731)

* client

* add state and tests

* remove session param
2023-04-02 17:28:46 -05:00
Freddy Boulton
da7d1df585
Fix Serializer Mapping (#3722)
* Fix mapping and test

* Bump gradio version

* Revert gradio version bump
2023-04-01 14:07:15 -05:00
github-actions[bot]
ae6b49a1c3
New Version Docs (#3720)
* [create-pull-request] automated change

* Trigger Build

---------

Co-authored-by: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-03-31 09:26:59 -05: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
github-actions[bot]
13682c7bbc
New Version Docs (#3715)
* [create-pull-request] automated change

* fix changelog

---------

Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-30 16:55:46 -07:00
aliabid94
43680f1c7a
fix dropdowns, release 3.24 (#3713)
* changes

* changes

* Update version.txt
2023-03-30 16:38:08 -07: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
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