Commit Graph

388 Commits

Author SHA1 Message Date
Ron Au
78d94cff1d
feat(samples table/gallery): Crop thumbs to square (#2109) 2022-08-30 17:40:18 -07:00
pngwn
609021b15b
2092 df ex (#2125)
* improve preview of dataframe examples

* support tsv dataframe examples

* parse only [artial file + fix light mode]

* color-tweak
2022-08-30 21:56:59 +01:00
aliabid94
99833d506e
Refactoring Layout: Adding column widths, forms, and more. (#2097)
* changes

* changes

* fix

* change

* change

* changes

* changes

* changes

* changes

* change

* remove test config outputs

* fix wflow

* attempt root user

* attempt root user

* attempt root user

* attempt root user

* changes

* changes

* changes

* changes

* changes

* change

* changes

* change

* Update gradio/layouts.py

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

* changes

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-08-29 19:51:01 -07:00
Dawood Khan
4816e3fb12
Fix: Download button does not respect the filepath returned by the function (#2073)
* download fix

* tweaks

* formatting

* added orig filename

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-08-29 13:39:15 -07:00
Abubakar Abid
4d58ae79b3
Improvements to State (#2100)
* state

* state fix

* variable -> state

* fix

* added state tests

* formatting

* fix test

* formatting

* fix test

* added tests for bakcward compatibility

* formatting

* config fix

* additional doc

* doc fix

* formatting
2022-08-29 09:53:05 -07:00
Freddy Boulton
6219dc7b0c
Fix infinite request issue (#2070)
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-08-27 15:06:18 -07:00
Dawood Khan
43c7e8a4a4
Fix TimeSeries examples not properly displayed in UI (#2064)
* fix

* fix

* format

* fixes

* type fixes

* pr fixes

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-08-27 14:45:09 -07:00
Abubakar Abid
f2733d8f94
Fix issues related to demos in Spaces (#2086)
* skip demos in all_demos that don't run

* hack for spaces

* put import back

* added audio debugger demo

* audio fix

* fixed audio debugger

* testing

* test

* remove prints

* fix

* fix

* removed import
2022-08-26 16:35:47 -07:00
apolinario
a87f20bd54
Encourage people to keep trying when queue full (#2076) 2022-08-24 14:32:30 -07:00
Abubakar Abid
88e9c19c27
Cleaning up the way data is processed for components (#1967)
* remove preprocess_example

* removing methods

* added path support for images

* fixes

* video

* formatting

* fixing preprocess

* fixes

* removed from audio

* fixed file

* formatting

* serialization

* foramtting

* formatting

* removed save flag / restore flag

* formatting

* removed flagging

* removed

* load value

* fixing typing

* fixes, typing

* fixes

* file

* handling images

* formatting

* fixed serializing for flagging

* formatting

* json

* temp file

* removed processing

* changed processing

* fixed temp FINALLY

* flagging works

* fix examples test

* formatting

* async examples

* working on mix

* comment out failing test

* fixed interface problem

* fix kitchen sink deprecation warning

* gallery examples

* fixes

* fixes to serialization

* fixing label serializing

* fixed file serialization

* kitchen sink restored

* outbreak forecast updated

* formatting

* formatting and api mode

* fix 1 test :/

* fixing tests

* fixed components tests

* remvoed test files

* formatting

* fixed examples

* fixes

* formatting

* restored certain files

* added encryption

* fixed syntax mistake

* formatting

* fixed 1 test

* clean up interface

* formatting

* fixed route tests

* more fixes

* formatting

* formatting

* fixing pipeline

* format frontend

* format backend

* tweaks

* fix

* fix final test?

* merged

* Sanitize for CSV (#2017)

* sanitize for csv

* added sanitization logic

* fixed examples

* turn cache off

* fixed example caching with optional inputs

* fixed review problems

* fixed Interface.load

* updating the tests

* updating the tests

* fix

* fixed seriailizing

* testing

* rewrite run prediction

* formatting

* await

* fixes

* formatting

* finally fixed mix

* fixed tests

* formatting

* formatting

* deserialize fix

* formatting

* fixes

* fixes

* fix

* fix tests

* fixes

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2022-08-23 08:31:04 -07:00
aliabid94
1510cb73cc
Queue error fix & custom errors (#2047)
* changes

* format

* changes

* changes

* custom error

* change

* change

* change

* changes

* change

* fe fix

* changes

* changes
2022-08-22 11:05:55 -07:00
aliabid94
e9b4584ffb
fix (#2053) 2022-08-22 02:43:36 -07:00
Abubakar Abid
6545c33731
dataset-fixes (#2041)
* dataset-fixes

* remove

* added label parameter to examples
2022-08-19 18:56:48 -05:00
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
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
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
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
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
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
Ali Abid
0e4931fbe2 changes 2022-07-26 15:11:08 -04:00
pngwn
f4552a2264
ensure falsey values are set to null for images (#1891)
* ensure falsey values are set to null for images

* cleanup
2022-07-26 14:26:00 -04:00
Dawood Khan
cd0d520696
Plot Component Integration Test (#1859)
* plot integration tests

* format

* remove files
2022-07-25 12:48:59 -04:00
Dawood Khan
babbb7eb41
Add new i18n tokens (#1751)
* add new i18n tokens

* fixes

* fixes

* format
2022-07-22 21:32:55 +01:00
Ali Abid
0920710779 change 2022-07-22 12:49:21 +01:00
pngwn
817819d7a1
Fix the types (#1843)
* fix types

* fail CI when typechecking fails

* maybe fix

* more fix

* remove all rferences to theme

* fix login
2022-07-21 19:12:46 +01:00
aliabid94
597d22e7b0
changes (#1828) 2022-07-19 11:37:07 -07:00
Dawood Khan
dc8dd5e1be
File component: list multiple files and allow for download #1446 (#1681)
* fix multiple files

* display multiple files

* support display of multiple files

* fix multiple file output display

* format

* revert pnpm-lock.yaml

* fixes
2022-07-17 06:59:20 -04:00
Asheer Rizvi
d164c52b3c
fix: added transparent background for dark mode. (#1780) 2022-07-15 09:05:45 +01:00
pngwn
c323aac274
add example component for color picker (#1779) 2022-07-13 16:35:43 +01:00
pngwn
a18c7ddf04
allow data frame to change number of columns (#1716)
* allow data frame to change number of columns

* allow data frame to change number of columns

* fix types

* fix tests

* handle case when headers are not present

* fix tests

* fix tests finally

* reinstate demo

* address review comments

* tweak test for fix
2022-07-12 11:35:20 +01:00
Dawood Khan
8947e8f9a4
plotly animations (#1732)
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-07-11 15:40:15 -07:00
pngwn
8c4e134094
allow users to update the current tab from python SDK (#1709)
* allow users to update the current tab from python SDK

* rename var

* ensure tabs work when no selected or id kwargs are passed

* update xray config

* update test

* update test again

* Apply suggestions from code review

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

* change false to None

* update test configs

* fix test

* fix test

* update global tab selection

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-07-07 15:37:51 +01:00
aliabid94
70ebf698fa
Live website changes (#1578)
* fix audio output cache (#804)

* fix audio output cache

* changes

* version update

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

* Website Tracker Slackbot (#797)

* added commands to reload script

* catch errors with git pull

* read new webhook from os variable

* correcting bash

* bash fixes

* formatting

* more robust error checking

* only sends success if git changes

* catching error from script

* escaping error text to send with curl

* correct text escaping for error message

* fix search bug in guides (#809)

* Update getting_started.md (#808)

* Fix type of server returned by `Launchable` (#810)

* `Launchable` returns a FastAPI now

* Update .gitignore

* Add a missing line to getting started (#816)



Former-commit-id: 81e271ca22 [formerly 96f203108b]
Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f

* Add a missing line to getting started (#816)



Former-commit-id: 81e271ca22 [formerly 81e271ca22 [formerly 96f203108b]]
Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f
Former-commit-id: b5112c3f42

* Add a missing line to getting started (#816)



Former-commit-id: 81e271ca22 [formerly 81e271ca22 [formerly 81e271ca22 [formerly 96f203108b]]]
Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f
Former-commit-id: b5112c3f42
Former-commit-id: bce6f9c4c5

* Add a missing line to getting started (#816)



Former-commit-id: 81e271ca22 [formerly 81e271ca22 [formerly 81e271ca22 [formerly 81e271ca22 [formerly 96f203108b]]]]
Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f
Former-commit-id: b5112c3f42
Former-commit-id: bce6f9c4c5
Former-commit-id: feba0888e3

* Add a missing line to getting started (#816)

* Clean-History
- Remove 51MB file with this commit


Former-commit-id: 34b6a2325d613eeef622410f2d1ff3d869d3133c

* Clean-History
- Remove 51MB file with this commit


Former-commit-id: 34b6a2325d613eeef622410f2d1ff3d869d3133c
Former-commit-id: dd700c33cc

* Clean-History
- Remove 51MB file with this commit


Former-commit-id: 34b6a2325d613eeef622410f2d1ff3d869d3133c
Former-commit-id: dd700c33cc
Former-commit-id: 0d80e6a056

* Clean-History
- Remove 51MB file with this commit


Former-commit-id: 34b6a2325d613eeef622410f2d1ff3d869d3133c
Former-commit-id: dd700c33cc
Former-commit-id: 0d80e6a056
Former-commit-id: 20523b0519

* changes

* changes

* Homepage: header image size (#1347)

* image size

* image in local assets

* add dall-e mini banner

* undo ui changes

* changes

* changes

* updates

* updates

* changes

* changes

* changes

* h11 dependency

* add npm build-mac

* expand demo button to all classes

* add demos to docstrings

* add anchor tags to headers

* add required tag to param table

* add consistent styling for headers

* skip param beginning with underscore from docs

* skip kwargs param from docs

* remove types in param docstring

* override signature to reflect usage

* add supported events

* add step-by-step guides

* fix guide contribution link

* add related spaces

* fix img styling on guides

* pin quickstart, advanced, and block guides to top

* margin fix

* autogenerated copy buttons for all codeblocks

* changes

* documentaiton

* format

* launch

* formatting

* style changes

* remove backticks

* changes

* changes

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: Julien Chaumond <julien@huggingface.co>
Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>
Co-authored-by: Ali <ali.abid@huggingface.co>
Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-07-06 16:22:10 -07:00
pngwn
92889b7b93
1220 mirror webcam (#1686)
* support webcam mirroring for images

* flip video in preprocessor

* finalise webcam mirroring

* address review comments

* fix formatting

* improve video UI

* fix tests

* fix tests again
2022-07-05 17:30:02 +01:00
Luigi Cerone
8f89270f50
Color picker (#1695)
* Add new colorpicker component skeleton

* Updated colorpicker skeleton with some functionalities

* - Fix default input color

- Change input style

* Add colorpicker demo

* Add tests and code format

Co-authored-by: mfumanelli <fumanellimartina@gmail.com>
2022-07-05 08:50:17 +03:00
pngwn
609de11ce8
add markdown and html support to dataframe (#1684)
* add markdown and html support to dataframe

* fix bug, address review comments

* fix test

* fix test

* rename parser instance variable
2022-07-04 10:27:48 +01:00
pngwn
a2b84199d8
detect all types of null default value (#1685)
* detect all types of null default value

* fix test

* address review comments
2022-07-01 19:23:02 +01:00
Dawood Khan
eb42fc3cf8
Kitchen Sink Integration tests (#1588)
* tests

* more tests

* more tests

* remove files
2022-07-01 01:27:47 -04:00
Dawood Khan
7030a2a6cf
Fix example image thumbnail size (#1627)
* fix example image thumbnail size

* format

* remove cache examples

* add classes to token.css

* add small image
2022-07-01 01:27:35 -04:00
pngwn
2c6d62f96c
fix embedding css (#1671) 2022-06-30 15:59:30 +01:00
pngwn
8cfee0b86a
fix overflow (#1661) 2022-06-29 15:19:57 +01:00