Commit Graph

4347 Commits

Author SHA1 Message Date
aliabid94
029637cef9
Queue maximum length (#2036)
* changes

* format

* changes

* changes
2022-08-18 18:29:51 -04:00
aliabid94
0474e460ad
Fix space embedding w queue [hotfix] (#2035)
* change

* fix

* change

* change

Co-authored-by: Ali <ali.abid@huggingface.co>
2022-08-17 22:02:06 -07:00
Ali Abdalla
247cf2b5a1
Fix loading status on website (#2027)
* fix loading status, remove website skipping

* fixed formatting

* use generated index on landing page

* fix typing

* actually fix typing

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-08-17 20:10:31 -07:00
Abubakar Abid
cd95c60b88
release 3.1.5 (#2033) 2022-08-17 15:35:58 -05:00
Dawood Khan
13915f9c11
[Integration Tests] Update a demo's config.json as part of integration test (#2005)
* add script to create configs for test demos

* no message

* fixes

* fixes

* fix

* test fix

* test fix

* format

* fix
2022-08-17 15:43:26 -04:00
aliabid94
b1dfc9a172
Release new queue beta (#1969)
* queue-refactor-backend (#1489)

* queue-refactor-backend

- create a template for the new design

* queue-refactor-backend

- clean after the old queue

* queue-refactor-backend

- add basic test to websocket endpoint

* queue-refactor-backend

- small fix

* queue-refactor-backend

- debugs&fixes&finalizations
- test the flow with postman

* queue-refactor-backend

- tweaks on websocket closing

* queue-refactor-backend

- cleanup

* queue-refactor-backend

- cleanup & tweaks

* queue-refactor-backend

- cleanup & tweaks

* queue-refactor-backend

- cleanup & tweaks
- correct the exception handling

* queue-refactor-backend

- add websockets dependency

* queue-refactor-backend
- reformat

* queue-refactor-backend
- add single event test

* queue-refactor-backend
- tweaks
- remove outdated tests

* queue-refactor-backend
- reformat

* queue-refactor-backend
- reformat

* queue-refactor-backend
- reformat

* queue-refactor-backend
- add Queue configurations to Blocks.launch()
- add live_queue_update to send estimations whenever a job gets fetched from the Queue

* queue-refactor-backend
- add Queue configurations to Blocks.launch()
- add live_queue_update to send estimations whenever a job gets fetched from the Queue

* queue-refactor-backend
- tweaks

* queue-refactor-backend
- make SLEEP_WHEN_FREE shorter

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

* Add estimation parameters to queue (#1889)

* - tweaks on Estimation

* version

* Revert "version"

This reverts commit bd1f4d7bfe.

* some fix and tweaks

* implement queue frontend (#1950)

* implement queue frontend

* fix types

* fix ws endpoint in build mode

* cleanup

* Queue tweaks (#1909)

* tweaks on estimation payload

* Queue keep ws connections open (#1910)

* 1. keep ws connections open after the event process is completed
2. do not send estimations periodically if live queue updates is open

* fix calculation

* 1. tweaks on event_queue

* fix issue - create new ws for each request

* format

* fix

* fix tests

* fix tests

* tets

* test

* changes

* changes

* changes

* change'

* wtf

* changes

* changes

* file perms

* Release queue beta v1 (#1971)

* - release the new queue

* - bypass the issue in the tests
- rewrite the lost part in the codebase

* - add concurrent queue example (#1978)

* rank_eta calc

* Queue fixes (#1981)

* change

* format

* - comment out queue tests as they dont work well

* - reformat

* Update gradio/event_queue.py

Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>

* changes

* changes

* change

* weird fix

Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>

* release-queue-v3 (#1988)

* Fix frontend queuing to target secure WSS (#1996)

* change

* format

* changes

* queue-concurrency-tweaks (#2002)

1. make gather_data and broadcast_estimation sequential instead of concurrent because they were deleting elements at the same time and raising expections which was lowering the performance

* Update Queue API, documentation (#2026)

* changes

* changes

* fixes

* changes

* change

* fix

Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
2022-08-17 11:17:56 -07:00
Dawood Khan
5fa94e5f4c
Better empty state for the gr.Gallery component (#2021)
* add empty gallery icon

* increase height
2022-08-16 14:12:21 -04:00
Freddy Boulton
75b51808e2
Convert video to playable format if ffmpeg installed (#2003)
* Add implementation + tests

* Add comments'

* Add warning

* Update docs

* Refactor logic

* 3.7 fix attempt

* Fix 3.7 take 2

* Return original video if the conversion fails

* Use ffmprobe + restrict scope of exception

* Fix for windows

* Fix tests
2022-08-16 13:21:13 -04:00
Freddy Boulton
8e24d5d646
Deploy All Demos to Spaces on PRs (#2012)
* Add step to deploy to spaces on release

* Import package not modules

* Lint

* Hacky solution

* Add app file

* Github actions script

* Fix bucket url

* Update versioning

* Fic typo in script

* Change path

* Fix quote

* Clean up action

* Fix keys

* Formatting + comment

* Fix all_demo creation

* lint ui

* Get latest pypi version and use only 20 demos

* Test version change works correctly

* Fix gradio version

* Fix typo

* Use github sha to rebuild on every commit

* Get sha the proper way

* Change where env is accessed

* Fix typo in cp

* Undo changes to version.txt

* Add matrix transpose
2022-08-16 12:07:20 -04:00
Freddy Boulton
21f9da9380
Automatically deploy kitchen sink to spaces on release (#1994)
* Add step to deploy to spaces on release

* Import package not modules

* Lint

* Add comment on slack
2022-08-12 11:51:36 -04:00
Abubakar Abid
a424832ec1
Fix async tests (#2000)
* fix examples test

* formatting

* async examples

* working on mix

* comment out failing test

* fixed interface problem

* fixes
2022-08-11 12:08:06 -07:00
Ömer Faruk Özdemir
4e218fe00f
async-interface-fix (#1845)
* async-interface-fix

- support async in interface with workarounds
- make mix.Parallel async and concurrent

* async-interface-fix

- fix & tweaks

* fix interpretation

* async-interface-fix

- fix mix

* async-interface-fix

- fix tests
- tweaks

* async-interface-fix

- take TODO notes on interface related to refactoring

* async-interface-fix

- fix test_mix

* async-interface-fix

- test create_app

* fix series

* fix series

* reformat

* fix interface test

* - fix tests by moving them async

* - bypass the test

* - bypass the test

* - bypass the test

* - bypass the test without closing it

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-08-10 18:29:14 -04:00
Freddy Boulton
393c1f47d5
Fix invalid wav file error when converting from microphone to file (#1987)
* ;q
:wq

* Add demo

* Add unit test

* Fix test

* Slight refactor

* Lint

* Delete some recordings - import module not method
2022-08-09 16:40:31 -04:00
Freddy Boulton
c49a4264df
Fix local website build (#1980)
* Fix Dockerfiles

* Use local build

* Copy front-end instead of cdn

* frontend

* Fix build
2022-08-09 10:25:03 -04:00
Freddy Boulton
d7c1a9eec4
Prevent Dataframe post-processing from changing dtypes (#1979)
* Fix datetime logic python

* Fix docstring

* Add demo

* Update test
2022-08-08 21:28:07 -04:00
Abubakar Abid
5fe02164f9
Fixes to gr.Examples (#1952)
* still working

* remove exampleset logic

* wip

* added tests and fix

* fixed header issue

* more tests

* formatting

* removed print

* Update gradio/examples.py

* used context managers

* more readable

* removed unnecessary start index

* formatting
2022-08-08 10:35:26 -07:00
Abubakar Abid
0cdb9b564c
Fix screenshot gif (#1966)
* fix screenshot

* fix gif
2022-08-08 09:52:21 -07:00
Ali Abdalla
1ba956af74
remove broken audio demo (#1963) 2022-08-05 20:22:45 -07:00
Freddy Boulton
1fcff2d710
Allow Users to set random value on sliders on app load (#1935)
* Allow value=random for slider

* Commit all files

* Remove commented out breakpoint

* Remove unused imports

* Always bypass queue

* Lint

* Add randomize parameter

* Update docstring

* Add load_fn logic

* Add new random logic

* Add kitchen sink random

* Add random kitchen sink

* Fix tests + lint

* Add test all components accept load_fn

* Update docstring

* Address final comments

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-08-05 18:51:03 -04:00
Ali Abdalla
359a62b255
fix add-copy js (#1959) 2022-08-05 13:15:28 -07:00
Abubakar Abid
eae445e340
3.1.4 release (#1956)
* version

* 3.1.4b

* release 3.1.4
2022-08-05 11:30:19 -07:00
Abubakar Abid
b271890c72
Release 3.1.4b (#1955)
* version

* 3.1.4b
2022-08-05 09:53:06 -07:00
Abubakar Abid
f46e95d7e0
Fixes to TabbedInterface (#1951)
* tabbed

* formatting

* fixed test

* fixed based on review
2022-08-04 18:46:15 -07:00
Ali Abdalla
d4272b3fdb
Better navigation and search in docs (#1884)
* expand nav bar to include subclasses and methods

* only show sub-links during the section

* add search

* add hotkeys

* override default shortcuts

* styling

* added x button

* broken style block

* refactoring and fixing errors

* esc key shortcut for exit

* svg file instead of b64

* using @apply
2022-08-04 18:23:20 -07:00
Ali Abdalla
f93f4c9cfe
Referencing guides in docstrings and other fixes (#1905)
* tie guides to docs in docstrings

* reference guides in more sections

* fix missing guides in interface and blocks

* fix broken html div

* remove pinned metadata for ordering

* fix annoying comma space in guide tags

* retrigger codecov check

* fix guides bug in flagging

* add controlling layout guide to row, column, and tab
2022-08-04 17:55:09 -07:00
Ali Abdalla
361837753c
Embedding the spaces on the landing page using web components (#1899)
* convert from iframes to web components

* add copy buttons to codeblocks
2022-08-04 17:36:12 -07:00
Freddy Boulton
299ba1bd1a
Fix bug where you cannot cache examples with Interface.load (#1949)
* Possible fix

* Remove breakpoint

* Implementation

* Add unit test

* Fix test

* Lint

* Add _api_mode to interface signature
2022-08-04 20:20:44 -04:00
Ali Abdalla
2903b74160
Add link to Github on nav bar (#1907)
* Add link to Github on nav bar

* fix icon color

* better responsiveness

* fixed responsive issues
2022-08-04 16:55:46 -07:00
Artin Mohammadi
3aacc4b3a9
A new face for the Sultan of ML deployment (#1943)
* File to display citation in the repo

* The README template updated

* Quickstart guide updated

* Smart code for smart rendering

* The new face of the king

* Typo fix and making executable

* `PIP` to lower case and knowing sentences

* Updating the CircleCI and Codecov badges

* Fix missing commas

* Replacing single quotes with double quotes
2022-08-04 10:48:17 -07:00
Freddy Boulton
c316cda746
Enable flagging/caching examples for Gallery (#1938)
* Cache examples for gallery

* Add unit test

* Store all gallery samples under the same sub directory
2022-08-03 17:38:01 -04:00
Dawood Khan
0c2e5c8184
Fixes: Model3D component loads forever when used as input and cache_examples=False (#1939)
* fix loading issue

* format
2022-08-03 17:03:01 -04:00
Freddy Boulton
ab18e07ff0
Add Events to docs page (#1892)
* Add Events to docs page

* Remove artifacts after rebase

* Add Load to events section as well

* Lint

* Add comments explaining underscore params in events

* Add events for all components

* Set is_class=False

* true -> True

* Specify which corner the rounded param relates to

* make the first sentence of style more descriptive

* Add sentence about only using in gradio blocks

* Add more description to container param
2022-08-03 15:09:08 -04:00
pngwn
3a58dd1924
default to a single table row (#1936) 2022-08-02 22:02:49 -07:00
pngwn
a039810e51
fix pnpm filters for 7.x (#1927)
* fix pnpm filters for 7.x

* update ci to use pnpm 7

* try a thing

* reinstall types

* usin pnpm dlx instead of pnpx

* usin pnpm dlx instead of pnpx

* explicitly add playwright as dependency

* update lockfile

* update ci

* update ci

* install same version of @playwright/test and playwright

* fix browser downloads
2022-08-02 12:02:06 -07:00
Dawood Khan
653b54d3c0
fix file download name (#1921) 2022-08-02 18:55:41 +01:00
aliabid94
d7db15fb07
Fix broken frontend when iframed (#1933)
* Updated version to 3.1.3a4

* Updated version to 3.1.3a5

* version change

* fix styl
2022-08-02 09:36:50 -07:00
aliabid94
59cf32e0f4
Still fixing 3 1 3a (#1932)
* changes

* changes

* changes
2022-08-02 08:23:37 -07:00
aliabid94
2a113b20f3
Release 3 1 3a (#1931)
* changes

* changes
2022-08-02 08:17:47 -07:00
aliabid94
e295fee54d
release 3.1.3a (#1930) 2022-08-02 08:01:34 -07:00
aliabid94
16826ee9cc
Fix broken API page (#1919)
* chagnes

* frontend_fix

* changes

* changes

* changes

* changes

* changes

* fixed typing

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-08-01 18:15:55 -07:00
aliabid94
95cb8a78b4
Fix dark mode with apps smaller than window size (#1926)
* changes

* changes
2022-08-01 18:15:41 -07:00
Dawood Khan
bccf7c4006
fixes tab plot issue (#1925) 2022-08-02 00:39:58 +01:00
pngwn
5d03174e44
Always return headers from postprocess (#1893)
* always return data/headers from dataframe postprocess

* add demo back

* handle case of no new headers but different length list

* fix tests

* change

* change

* added unit tests

* formatting

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-08-01 15:57:31 -07:00
Artin Mohammadi
bdced314bc
Scripts become much easier to read and understand (#1918)
* Being nice to the user

* Front-end builder, CircleCI runner, and Gradio installer updated

* The testing scripts updated

* Front-end runner and the website launcher updated

* The formatters updated

* GitHub Actions and PyPI uploader scripts updated

* Updating the URLs

* Removing commented codes

* Delete a blank line
2022-08-01 15:17:03 -07:00
Freddy Boulton
db1ff439a7
Fix docs (#1908)
* Fix docs

* Fix ner demo

* refactoring script templates

* remove linksnav in guides

Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2022-07-29 16:21:05 -04:00
Abubakar Abid
a52af7c483
How data flows through an app (#1897)
* added info on preprocessing/postprocessing

* preprocessing/postprocessing
2022-07-28 16:57:27 -04:00
aliabd
35d809c788 fix merge conflicts 2022-07-28 14:28:52 -04:00
Ali Abdalla
5a350a1ded
fix image size in getting started (#1901) 2022-07-28 13:44:11 +01:00
Ali Abdalla
3ef4d4da4c
Fix default value in docs for objects (#1900) 2022-07-28 13:43:17 +01:00
Abubakar Abid
5ee2122834
Suggestion: add more info on update() (#1896)
* more on update'

* Move example to docstring

Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2022-07-27 14:46:13 -04:00