Commit Graph

500 Commits

Author SHA1 Message Date
aliabid94
f7f96cc042
changes (#2248) 2022-09-13 14:53:39 -07:00
Victor Muštar
72ee6f8b80
UI: update error message (#2213)
* update error message UI

* alternative layout

* inner error style

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-09-09 12:42:01 -07:00
Dawood Khan
072c4a3103
Textbox Shift + Enter key Refactor (#2084)
* enter key fix

* format
2022-09-08 17:02:03 -04:00
Abubakar Abid
bf1510165d
Support for iterative outputs (#2189)
* Support for iterative outputs (#2162) (#2188)

* added generator demo

* fixed demo structure

* fixes

* fix failing tests due to refactor

* test components

* adding generators

* fixes

* iterative

* formatting

* add all

* added demo

* demo

* formatting

* fixed frontend

* 3.2.1b release

* removed test queue

* iterative

* formatting

* formatting

* Support for iterative outputs (#2149)

* added generator demo

* fixed demo structure

* fixes

* fix failing tests due to refactor

* test components

* adding generators

* fixes

* iterative

* formatting

* add all

* added demo

* demo

* formatting

* fixed frontend

* 3.2.1b release

* iterative

* formatting

* formatting

* reverted queue everywhere

* added queue to demos

* added fake diffusion with gif

* add to demos

* more complex counter

* fixes

* image gif

* fixes

* version

* merged

* added support for state

* formatting

* generating animation

* fix

* tests, iterator

* tests

* formatting

* tests for queuing

* version

* generating orange border animation

* testings

* added to documentation

Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-09-08 07:35:31 -07:00
aliabid94
f8523868d0
Add accordion component (#2208)
* changes

* changes
2022-09-07 20:32:10 -07:00
Dawood Khan
83b2953c69
Quick Fix: Multiple file download not working (#2169)
* fix

* fix

* fixes

* format

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-09-07 17:44:50 -04:00
Freddy Boulton
a69fd1de13
Preserve Labels In Interpretation Components (#2166)
* Add label to interpretation

* Add defaults

* Fix default for slider
2022-09-07 14:43:08 -04:00
Dawood Khan
090622c2cc
fix (#2168) 2022-09-02 16:18:52 -04:00
aliabid94
b2a181d4b0
Show error on Connection drops (#2094)
* changes

* changes

* fix

* changes

* fix
2022-08-31 13:16:43 -07:00
aliabid94
f2ab162b5d
changes (#2147) 2022-08-31 12:34:54 -07:00
pngwn
fa65d330c1
safari fixes (#2138) 2022-08-31 10:56:18 -07:00
aliabid94
c4495a0a5e
fix (#2133) 2022-08-30 18:12:22 -07:00
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
pngwn
1e6ceb9543
Mask image (#1621)
* changes

* add masking to image

* added preprocessing for mask

* tweaks + improvements to masking

* make mask work with webcam input

* cleanup

* fix default image

* fix default value when source is upload

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-25 01:11:28 +01:00
Dawood Khan
b11ed64a06
text color + custom style fixes (#1626) 2022-06-23 20:55:16 -07:00
pngwn
f1a1e79be4
fix autoscroll (#1570)
* fix autoscroll

* fix formatting

Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-06-21 10:44:30 +01:00
Ian González
64a1bdc3b0
Fix text color for bold and code on dark theme (#1615)
Co-authored-by: Ian Gonzalez <ian.gl@protonmail.com>
2022-06-21 10:37:20 +01:00
pngwn
90eaf20aab
ensure iframe can detect dom changes within shadow root (#1599)
* ensure iframe can detect dom changes within shadow root

* formatting

* correctly reference document body

* switch to unscoping when inside an iframe

* formatting

* version

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-17 20:36:50 -07:00
aliabid94
6413b65328
fixes with HighlightedText, variables (#1563)
* changes

* removed comment things

* updated version

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-16 17:32:14 -07:00
aliabid94
cb2aa4a625
Hidden fix [hotfix] (#1585)
* fix

* Update Button.svelte
2022-06-16 17:22:09 -07:00
pngwn
8710d3a079
Wrap dataframe (#1571)
* add suport for table cell wrapping

* revert pkginfo change

* revert pkginfo change

* fixed tests

* formatting

* type hint

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-16 17:02:01 -07:00
aliabid94
5e7cf62a47
Fix visible (#1576)
* changes

* format

* change

* Update Blocks.svelte

* Update Render.svelte

* Update tokens.css
2022-06-16 16:49:54 -07:00
aliabid94
4d74206748
changes (#1577) 2022-06-16 11:16:18 -07:00
Ian González
d0b521510d
Manage a null value update on Dataframe (#1580)
Co-authored-by: Ian Gonzalez <ian.gl@protonmail.com>
2022-06-16 10:13:24 +01:00
Ian González
78af573990
Change the afterUpdate code in Plot to use a binding to get the div when using plotly (#1565)
Co-authored-by: Ian Gonzalez <ian.gl@protonmail.com>
2022-06-15 10:40:00 -04:00
Ian González
26745a88dc
Stop audio tracks of user media on the stop callback for the Audio component when using the microphone (#1562)
Co-authored-by: Ian Gonzalez <ian.gl@protonmail.com>
2022-06-14 17:07:27 +01:00
aliabid94
a3047ee838
broken HTML [hotfix] (#1558) 2022-06-13 17:20:35 -07:00
aliabid94
11b12d9456
Scrolling by default only in Interface, remove progress animation on streaming (#1499)
* changes

* changes

* format

* changes

* add relative to block

* changes

* ensure statustracker component is never rendered by render

Co-authored-by: pngwn <hello@pngwn.io>
2022-06-13 17:11:19 -07:00
aliabid94
caa6a4e687
rework visible, attach to all components (#1511)
* changes

* fix
2022-06-13 16:49:23 -07:00
Simon Duerr
fdbecafffb
Matplotlib max-h fix so that plots are not cut off (#1550)
`object-fit:contain` only works with `max-h` if they are set on the same element. I moved `max-h` to `img` and also increased the height a bit such that the plot has enough space and can adapt to the container height.

Fixes #1546
2022-06-13 16:32:17 -07:00
Abubakar Abid
cf027b68f4
Combines 2 PRs for testing (#1540)
* mount custom css to the web component (#1536)

* set configurable min height prior to loading (#1532)

* set configurable minheight prio to loading

* formatting

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

* release beta version for testing (#1541)

Co-authored-by: pngwn <hello@pngwn.io>
2022-06-10 20:11:40 -07:00
aliabid94
00e4b1436f
Allow styling height for Image and Video, also dynamic logic change (#1503)
* changes

* changes

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-10 19:56:07 -07:00
pngwn
f879a08f72
make file types match (#1538)
* make file types match

* revert kitchen_sink change
2022-06-10 18:51:19 -07:00
aliabid94
4564a8136c
Show error on error (#1500)
* changes

* changes

* formatting

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-10 12:55:30 -07:00
aliabid94
f41ebdd616
Fix multiple file upload (#1512)
* changes

* Update utils.ts

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-09 16:53:41 -07:00
aliabid94
c6ab13210e
changes (#1514) 2022-06-09 16:53:28 -07:00
aliabid94
636a9688ba
change (#1513) 2022-06-09 16:40:17 -07:00
aliabid94
f3e070541e
Fix Login (#1501)
* changes

* format
2022-06-09 16:15:08 -07:00
pngwn
7664d950e7
ensure form group styles correctly apply (#1477)
* ensure form group styles correctly apply

* removed log statement

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-07 15:42:03 -07:00
pngwn
cc6aeb6d72
distribute gradio as a web component (#1444)
* distribute gradio as a web component

* fix layout + loader + dark mode in embedded wc

* fix lockfile issue

* formatting

* prevent loader conflicts

* fix formatting
2022-06-07 11:11:44 -07:00
Ali Abdalla
42cee33dcf
API Docs with support for Blocks (#1397)
* backend

* updated PyPi version to 3.0.10

* updated PyPi version to 3.0.9b10

* fixes

* updated PyPi version to 3.0.9b11

* changes

* changes

* changes git push

* changes

* undo

* fixes

Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-06-06 09:10:42 -07:00
Chih-Yu Yeh
f6414d3c33
fix issue#1353 (#1457)
* fix issue#1353

* change logic

* changes

Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-06-06 07:58:19 -07:00
Abubakar Abid
71bcfdbe92
Callable blocks (#1437)
* format backend

* blocks callable

* call blocks

* format

* fixed upload

* fix mix

* formatting

* formatting

* formatting

* added serialization/deserialization for video

* formatting

* blocks

* formatting

* fix tests

* formatting
2022-06-02 15:37:25 -07:00
aliabid94
188d8bc65d
Allow async js fn (#1439)
* updated PyPi version to 3.0.10

* updated PyPi version to 3.0.9b10

* fixes

* updated PyPi version to 3.0.9b11

* fix update sript

* changes
2022-06-01 11:34:07 -07:00
pngwn
279df2322d
fix button styling (#1447) 2022-06-01 11:33:53 -07:00
pngwn
068132836c
Style updates (#1350)
* clean up python style api

* allow Box to be styled

* changes

* update style args and add md doc detailing

* cleanup

* add deprecation warnings

* fix

* formatting
2022-06-01 18:02:18 +01:00
Dawood Khan
7b9cba0e9e
File Cached Examples Fix (#1334)
* fix file cache examples issue

* format

* fix for tests

* format fix

* fix multiple files input

* format

* format

* fix preprocess example

* fix multiple file output

* remove single_file const

* fix tests + format

* renamed demo

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-01 12:23:12 -04:00
Abubakar Abid
576bd227fc
Fixes gr.Interface.load() (#1436)
* format backend

* changes

Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-06-01 08:35:33 +03:00
Radamés Ajna
6a6cea795f
set camera icon always stroke white (#1434) 2022-05-31 14:10:07 -07:00
pngwn
7b4ad81d59
update plot ui (#1405) 2022-05-30 15:21:36 +01:00
aliabid94
40ed4df9ad
fix examples [hotfix] (#1411)
* fix

* changes

* changes
2022-05-28 21:56:05 -07:00
Dawood Khan
2eaf61cf76
Integration tests (#1182)
* some integration tests

* more integration tests

* more tests

* update integration tests

* format
2022-05-27 04:53:50 -04:00
pngwn
55db5c187a
add cdn entrypoint (#1387)
* add cdn entrypoint

* cleanup
2022-05-27 02:17:13 +01:00
aliabid94
d35e06abe7
Minor cosmetic changes (#1383)
* changes

* pass tests

* change to source sans

* formatting

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-26 14:33:28 -07:00
aliabid94
3a7f9a3b1a
Allow users to return dicts for values (#1373)
* changes

* changes

* add visible flag
2022-05-24 23:30:24 -07:00
Victor Muštar
0ab254b82f
Mute examples videos (#1363)
* mute examples videos

* set attrs onmount for safari

Co-authored-by: Radames Ajna <radamajna@gmail.com>
2022-05-24 13:08:08 -07:00
Ömer Faruk Özdemir
e4b5d4c1b7
Reload mode on (#1278)
* reload-mode

-trys save

* reload-mode

- create minimal reloading example

* reload-mode

- create minimal reloading examples

* reload-mode

- amend

* reload-mode

- add user_mode

* reload-mode

- tweaks

* updated PyPi version to 3.0.3

* reloading

* reload

* formatting

* flexibility in naming

* added dev_mode flag to config

* added app id

* frontend changes

* changed debug level to warning to make less verbose

* Update ui/packages/app/src/main.ts

* fixed tests

* formatting

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-05-23 14:38:53 -07:00
Abubakar Abid
74703898c6
Model3d fix (#1342)
* fixing postprocessing

* fixed value

* formatting

* fixes

* model3d

* typing

* formatting

* formatting

* components

* fixed defaults

* fixed tests

* formatting

* removed unused import typing error

* fixed up model3d tests

* model3d

* formatting

* fix default value interactive bug

Co-authored-by: Dawood <dawoodkhan82@gmail.com>
2022-05-20 17:53:27 -07:00
pngwn
494c09a7be
Small bugs (#1324)
* initialise gallery images to None, fix icon

* dispatch submit event when pressing return on 1 line textbox

* Update ui/packages/app/src/components/Gallery/Gallery.svelte

* Update ui/packages/app/src/components/Gallery/Gallery.svelte

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-18 15:21:17 -07:00
pngwn
83a1bfd15a
fix tab error (#1329) 2022-05-18 15:20:41 -07:00
pngwn
096f4b5b56
add label to data frame (#1328) 2022-05-18 15:14:12 -07:00
pngwn
e535cd8a35
tweak bg colour (#1307) 2022-05-17 14:58:25 +01:00
pngwn
21e42d54b5
Remove image editor (#1308)
* remove tui image editor

* remove dep
2022-05-17 14:58:12 +01:00
aliabid94
e828a68c98
Website fixes (#1302)
* changes

* changes
2022-05-17 06:26:14 -07:00
aliabid94
13afd4c967
Fix default cleared value (#1300)
* changes

* changes

* chagnes

* fixed test

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-16 14:43:37 -07:00
pngwn
647b4f5ffa
img (#1297) 2022-05-16 21:53:22 +01:00
pngwn
79895e0e9d
ensure table works on mobile (#1277)
* ensure tables works on mobile

* remove logs

* formatting
2022-05-16 11:55:24 -07:00
aliabid94
2a93225952
Create Streamables (#1279)
* changes

* fix

* fix for vars too

* changes

* fix tests

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-16 11:51:09 -07:00
pngwn
a62879b8fe
Dm (#1284)
* fix

* more tweaks

* fix import
2022-05-16 19:34:08 +01:00
pngwn
e49cf6f72d
only affect links within the document (#1282) 2022-05-16 18:29:19 +01:00
pngwn
8b1a50775a
General tweaks (#1276)
* tweaks + radio fix

* remove unused prop

* revert demo

* ensure table renders empty strings and zeroes

* remove logs

* remove bundle stats
2022-05-16 18:22:09 +01:00
aliabid94
a4aa6a2cb9
Add embedded demos to website (#1270)
* adding gallery

* added netlify files

* new navbar design

* header section new design

* used by section new design

* cards section new design

* integrates with section new design

* customer stories section new design

* footer and gradient

* demos section new design

* docs fixes

* docs reorg

* docs reorg

* upgrading to tailwind 3

* tailwind config changes

* navbar new design

* fixing body on all pages

* Updating Guides  (#1012)

* updating getting started

* updated codecov version

* tweaks to gs

* added netlify file

* added netlify file

* website prebuild script

* increased code size

* blocks

* edits

* blocks_hello

* hello world

* guide

* merge main

* added flipper demo

* guide

* guide

* add guides

* tweak to refresh website

* header section new design

* demos section new design

* cards design

* used by section

* tweets section

* footer on all pages

* mobile responsive fixes

* mobile responsive fixes

* https fonts

* completed blocks guide

* unify components

* minor tweaks

* docs headers styling and navigation pane

* parameter code blocks

* styling description and input type

* parameter tables and other styling

* only documenting interactive components when possible

* guides

* embedding not working

* demos not working

* fixing demo code

* fixing demos

* demo fix

* updated demos

* updated demos

* ui update

* updated docstrings

* updated code snippets so they run

* updating docs

* Interface docs

* updating interface

* fixing parameters in interface.py

* required and defaults for interface, and styling

* fixing up interface (#1207)

* fixing up interface

* fixed interface methods

* formatting

* updating interface docs

* updating interface docs

* formatting

* docstring to load from docstrings

* fixed colors

* finalize interface content

* interface examples

* fixed examples

* added some blocks docs

* blocks

* component fixes

* reorganized some files (#1210)

* formatting

* added info for every component

* fixes

* blocks docs

* added blocks demos

* adding combined interfaces

* added parallel, series

* Doc: layout update (#1216)

* doc layout

* home spacing

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

* adding layouts

* layouts done

* added events for components

* formatting and https

* brings back dropdown and other components

* fix header ids

* moved ids and fixed nav

* added parameters for remaining component

* docstring fixes

* landing page demos

* demo window placeholder

* demo nav

* fixed test

* formatting

* demo code

* correctly importing gradio  css/js

* remove keyvalues

* modify launch script to move gradio assetS

* components embedded test

* correct demo name

* hide try demo and embedding

* local devserver changes

* create embedding json with configs

* changes

* fixes

* comment out layout docs

* demo work

* demo fixes

* demo embedding fixes

* typo

* jinja fix

* demo nav fix

* hide demo button

* formatting

* removed whitespace

* remove newline from parameter

* styling demo window

* copy work

* hide demo buttons

* remove index

* remove layouts from docs

* remove merge artifact

* merge dockerfile

* chagnes

* changes

* changes

* changes

* styling demo window

* revert most things

* whoops

* chagnes

* changes

* changes

* changes

* changes

* changes

* changes

* format

* changes

* fixed Dataset docstring

* fix component signature and add required

* adding string shortcuts

* fix small issues parameter docstringss

* string shortcuts

* fixed gallery and label values

* added for remaining parameters

* formatting

* extended embedded components

* typo

* remove capitalization from embeddings

* try examples button

* added demos for blocks and combining interfaces

* demos styling

* homepage update (#1275)

* spacing

* remove console.log

* demo window fixes

* new spaces

* shorten codeblock width

* fix plot

* better string shortcuts

* add embedding config for json

* remove console log

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
2022-05-16 11:45:38 -04:00
pngwn
b69e8cb151
maybe fix auth in iframes (#1261)
* maybe fix auth in iframes

* remove comment

* Update gradio/templates/frontend/index.html

* fix gitignore?

Co-authored-by: aliabid94 <aabid94@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-16 11:07:11 +01:00
pngwn
0c94b56b0a
Cdn assets (#1265)
* create dediacted cdn bundle with correct import behaviour

* tweak regex

* update publish script

* fix gitignore

* remove repeat incidences of version

* remove logs
2022-05-15 20:43:36 +01:00
pngwn
ed074f9cff
Static forms (#1264)
* refactor dynamic-static detection

* refactor dynamic-static detection
2022-05-15 18:44:15 +01:00
Dawood Khan
e26609e1a3
Issue #1160: Model 3D component not destroyed correctly (#1219)
* model3d fix

* formatting

* model3d fix

* formatting

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-15 00:51:43 -07:00
Abubakar Abid
63d0a28c08
Website Design Changes (#1015)
* adding gallery

* added netlify files

* new navbar design

* header section new design

* used by section new design

* cards section new design

* integrates with section new design

* customer stories section new design

* footer and gradient

* demos section new design

* docs fixes

* docs reorg

* docs reorg

* upgrading to tailwind 3

* tailwind config changes

* navbar new design

* fixing body on all pages

* Updating Guides  (#1012)

* updating getting started

* updated codecov version

* tweaks to gs

* added netlify file

* added netlify file

* website prebuild script

* increased code size

* blocks

* edits

* blocks_hello

* hello world

* guide

* merge main

* added flipper demo

* guide

* guide

* add guides

* tweak to refresh website

* header section new design

* demos section new design

* cards design

* used by section

* tweets section

* footer on all pages

* mobile responsive fixes

* mobile responsive fixes

* https fonts

* completed blocks guide

* unify components

* minor tweaks

* docs headers styling and navigation pane

* parameter code blocks

* styling description and input type

* parameter tables and other styling

* only documenting interactive components when possible

* guides

* embedding not working

* demos not working

* fixing demo code

* fixing demos

* demo fix

* updated demos

* updated demos

* ui update

* updated docstrings

* updated code snippets so they run

* updating docs

* Interface docs

* updating interface

* fixing parameters in interface.py

* required and defaults for interface, and styling

* fixing up interface (#1207)

* fixing up interface

* fixed interface methods

* formatting

* updating interface docs

* updating interface docs

* formatting

* docstring to load from docstrings

* fixed colors

* finalize interface content

* interface examples

* fixed examples

* added some blocks docs

* blocks

* component fixes

* reorganized some files (#1210)

* formatting

* added info for every component

* fixes

* blocks docs

* added blocks demos

* adding combined interfaces

* added parallel, series

* Doc: layout update (#1216)

* doc layout

* home spacing

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

* adding layouts

* layouts done

* added events for components

* formatting and https

* brings back dropdown and other components

* fix header ids

* moved ids and fixed nav

* added parameters for remaining component

* docstring fixes

* landing page demos

* demo window placeholder

* demo nav

* fixed test

* formatting

* demo code

* correctly importing gradio  css/js

* remove keyvalues

* modify launch script to move gradio assetS

* components embedded test

* correct demo name

* hide try demo and embedding

* local devserver changes

* create embedding json with configs

* changes

* fixes

* comment out layout docs

* demo work

* demo fixes

* demo embedding fixes

* typo

* jinja fix

* demo nav fix

* hide demo button

* formatting

* removed whitespace

* remove newline from parameter

* reverting comments

Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-05-13 19:48:46 -07:00
pngwn
97929ee795
ui apis for dalle-mini (#1258)
* ui apis for dalle-mini

* changes
2022-05-13 18:37:55 -07:00
pngwn
3a903d9e80
add global loader for gradio app (#1251)
* add global loader for gradio app

* trigger error state when config fails to load
2022-05-14 00:47:46 +01:00
Victor Muštar
523c3692c4
spacing (#1254) 2022-05-13 18:19:36 +01:00
pngwn
700c4fc9cf
Layout bugs (#1246)
* fix layout issues

* fix visible kwarg + demo tweak

* fix blocks error wwhen parent is not column or row
2022-05-13 15:47:50 +01:00
Radamés Ajna
1c3dffd291
Default Label label value (#1239) 2022-05-13 01:23:45 +01:00
pngwn
c00e9f9a85
ensure defaults height match for media inputs (#1236)
* ensure defaults height match for media inputs

* gallery tweak

* cleanup logs
2022-05-12 21:45:45 +01:00
pngwn
19afc1c70e
css tweaks (#1235)
* css tweaks

* backend for equal_height

Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-05-12 21:27:21 +01:00
pngwn
5ba2e06e69
Tweaks (#1230)
* tweaks

* tweaks

* tweak loader dark mode

* gallery tweaks
2022-05-12 19:24:28 +01:00
pngwn
2e31988718
tweaks (#1229)
* css tweaks

* tweak

* loader tweaks
2022-05-12 18:47:40 +01:00
aliabid94
33ef309451
Allow Custom CSS (#1170)
* changes

* css changes

* updated PyPi version to 2.9b24

* Revert "updated PyPi version to 2.9b24"

This reverts commit 48f678f491.

* Revert "css changes"

This reverts commit d31cd525a4.

* Revert "changes"

This reverts commit fadcb12ffe.

* reverting

* reverting

* changes

* changs

* Revert "changs"

This reverts commit 49d815f6fe.

* Revert "changes"

This reverts commit 481d7c21c4.

* changes

* format

* changes

* format

* test fix

* test fix

* test fix

* fix tests

Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-05-11 21:40:41 -07:00
aliabid94
5fc00b4567
Automatic word-break in highlighted text, combine_adjacent support (#1209)
* changes

* changes

* updated PyPi version to 2.9b26

* changes

* css tweaks (#1213)

* css tweaks

* more tweaks

* fix lint error

Co-authored-by: pngwn <hello@pngwn.io>
2022-05-11 20:09:25 +01:00
pngwn
0c422b75ea
ensure webcam video value is propogated correctly (#1218)
* ensure webcam video value is propogated correctly

* remove logs
2022-05-11 19:19:35 +01:00
pngwn
291e287302
fix placeholder prompt (#1215) 2022-05-11 08:56:22 -07:00
aliabid94
ce47c48ebc
Update component config (#1089)
* first commit

* changes

* restore defualt_value name

* changes

* rm value=

* rm value=

* rm value=

* changes

* changes

* changes

* rename default_val to value

* changes

* changes

* changes

* changes

* format

* changes

* changes

* format

* test fix

Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-05-10 17:11:43 -07:00
pngwn
11740dd329
add copy functionality to json (#1205)
* add copy functionality to json

* fix light mode
2022-05-10 18:02:06 +01:00
pngwn
4ca48284bb
hltext-label (#1204)
* show highttext label + tweaks

* show highttext label + tweaks
2022-05-10 17:01:36 +01:00
Victor Muštar
962a254a6b
WIP: Add dark mode support (#1187)
* add gray 950 to tailwind config

* overwrite global css for dark-mode

* add dark-mode to css tokens

* add dark-mode to components

* workbench dark-mode update

* checkbox tweak

* create icon components

* tweaks

* formatting

* formatting

* handle dark mode query params + system settings

* fix css

Co-authored-by: pngwn <hello@pngwn.io>
2022-05-09 17:26:09 -07:00
pngwn
4828e9af3b
wrap tab content in column (#1200) 2022-05-10 00:46:57 +01:00
pngwn
3fe954bd55
Table tweaks (#1195)
* ensure table scrolls

* tweaks

* fix overflow on columns

* layout tweaks
2022-05-09 16:18:13 +01:00
pngwn
94ab75dbec
962 dataframe (#1186)
* refresh dataframe

* add fixed rows + cols to dataframe

* tweaks

* validate dataframe headers + col_count

* cleanup

* cleanup

* make linter happy

* fix test

* fix test again

* fix test definitely this time

* implement file drop support for dataframe

* remove leftover files

* tweaks

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-08 21:55:02 -07:00
pngwn
936631c5b4
1183 component height (#1185)
* fix flex for layouts

* fix row form groups

* cleanup
2022-05-07 16:50:31 +01:00
pngwn
56222fbe2b
1148 loading status (#1164)
* update loader

* fix for non queued statuses

* remove logs

* Update demo/fake_gan/run.py
2022-05-05 20:05:05 +01:00
Radamés Ajna
a9610a4c9b
enable flex grow for box (#1165) 2022-05-05 19:28:34 +01:00
aliabid94
3e4ac376f5
Custom JS calls (#1082)
* first

* requested changes

* fix

* changes

* fixes

Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-05-04 09:02:29 -07:00