Commit Graph

443 Commits

Author SHA1 Message Date
Julien Chaumond
c99a323ccf
Embeds: support <gradio-app host="julien-c-coqui.hf.space"></gradio-app> (#2692)
* to support `<gradio-app host="julien-c-coqui.hf.space"></gradio-app>`

* Fix iframe srcs

* prettier

* missed ones with `gradioiframe`

* embeds

* changelog

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-11-22 14:12:14 -06:00
Dawood Khan
b5f22671a2
Add Upload Button (#2591)
* add upload button

* upload button

* changelog

* Update CHANGELOG.md

* format

* update file component

* upload button fixes

* label

* remove fileupload changes

* remove file component changes

* restore lock file

* pnpm lock file

* Update CHANGELOG.md

* fixes

* fixes

* more fixes

* fix tests

* fixes

* lockfile

* fix test

* Update gradio/components.py

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

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-11-21 13:34:31 -05:00
aliabid94
084b2b832e
Make login page UI consistent (#2684)
* changes

* changes

* changes

* capitalize login
2022-11-21 12:01:57 -06:00
Victor Muštar
70227354e6
UI update: API documentation page (#2652)
* changes

* update UI

* ui update

* add font weight 600 to google font <link>

* import paths

* changes

* changes

* changes

* changes

* Update ui/packages/app/src/ApiDocs.svelte

Co-authored-by: Victor Muštar <victor.mustar@gmail.com>

* changes

* changes

* changes

* changes

* changes

* changes

Co-authored-by: Ali Abid <aabid94@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-11-20 16:21:01 -06:00
pngwn
4b57984ead
add password and email textbox types (#2653)
* add password and email textbox types

* changelog + fix tests

* formatting

* fix tests maybe

* fix tests

* add more tests

* whatever

* weird thing
2022-11-15 22:23:47 +01:00
pngwn
fd31726666
only use min height for md and html when loading (#2623) 2022-11-09 20:48:17 +01:00
Ali Abdalla
a80084f3df
Dropdown for seeing docs as latest or main (#2544)
* support docs for pip and git

* upload spaces with gradio wheel

* aws

* upload wheel to aws

* fix error in docker compose

* fix dockerfile

* fix dockerfile

* fix upload demos

* fix upload demos

* styling

* fake change

* remove check_version

* fixes

* fix buttons

* fix navigation on main

* add github action

* build version docs in docker

* fix path and docker errors

* add requests

* fix command

* more docker fixes

* more docker fixes

* no prerelease

* fix restart demos

* undo fake changes, and fix build_version

* fix variable

* fix mistake

* add how to build from main

* new line to requirements

* fix instructions

* Update CHANGELOG.md

* duplicate line in Dockerfile

* switch to github actions, use separate pages

* fix issues in github action

* fix path for github action

* more fixes

* more fixes

* fix github action

* add template

* fix demos template

* update release notes for 3.9

* add -A

* refactor

* keep old version htmls

* unpin gradio version in requirements

* Update website/homepage/src/docs/template.html

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

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-11-08 13:02:05 +01:00
aliabid94
91abb3ae11
Allow gradio embeds in colab without share (#2455)
* changes

* change

* changes

* changes

* changes

* Update colab.html

* update version

* changes

* Update gradio/templates/colab.html

Co-authored-by: pngwn <hello@pngwn.io>

* changes

* changes

* changers

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* revert

* changes

* changes

* changes

* strings

* formatting

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2022-11-03 15:51:30 -07:00
Abubakar Abid
43f5cf5f30
Load example from external Spaces (#2594)
* started

* loading examples

* saves

* fixes

* formatting

* iocomponent

* added support to other components

* fixed tests

* added video support

* added 1 test

* more changes

* reverted components.py

* remaining components

* formatting

* fixes

* fixes

* tests

* fixed ability to load multiple spaces
2022-11-03 12:35:56 -07:00
Vladimir Repin
ad62a8a8a3
Fixed upload dialog being showed after pressing "x" button (#2577)
* Fixed upload dialog being showed on clear #2476

* Changelog update

* Formatting fix

* click replaced with disable_click

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
2022-11-02 16:28:38 -07:00
pngwn
17cd9b59bd
fix embed protocol (#2571)
* fix embed protocol

* changelog

* version

* Commit from GitHub Actions (Upload Python Package)

* version

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: GH ACTIONS <abidlabs@users.noreply.github.com>
2022-10-31 12:08:45 -07:00
pngwn
36e383a9f0
fix spaces (#2567)
* fix spaces

* changelog

* tweak

* only mess with ws url in embed mode

* version

* always disregard embedding apps path when embedding

* version

* version

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-10-30 07:39:27 -07:00
Dawood Khan
28b7d7de8f
fixes plotly whitespace (#2548)
* fix plotly whitespace

* changelod
2022-10-27 16:12:21 -04:00
camenduru
cf7d44591f
fix #2536 (#2538)
* fix #2536 

thanks @pngwn

* fix #2536

* fix #2536

* changelog

Co-authored-by: pngwn <hello@pngwn.io>
2022-10-27 14:57:39 +01:00
Abubakar Abid
933feb48ad
Remove special ws path for spaces (#2528)
* remove special ws path for spaces

* changelog
2022-10-26 12:55:32 -07:00
Dawood Khan
83a038ea7a
Load Event Trigger (#2456)
* load event

* fixes

* reformat

* changelog fixes

* rename to uploadable

* formatting

* format

* add cancels

* Update CHANGELOG.md

* Create CHANGELOG.md

* Update CHANGELOG.md

* add batch
2022-10-25 20:58:12 -04:00
pngwn
5a090de94a
prevent invalid targets of events from crashing app (#2534)
* add sourcemaps to build

* logs

* filter falsey values from target_instance map

* actually fix it this time

* changelog + cleanup

* format
2022-10-26 00:57:13 +01:00
Dawood Khan
834d945b1a
Fixes plotly css issues (#2486)
* fix plotly css

* changelong
2022-10-24 11:13:41 -04:00
pngwn
c08b12a487
fix loading states for markdown and html (#2499)
* fix loading states for markdown and html

* cleanup

* cleanup
2022-10-24 12:38:58 +01:00
Dawood Khan
8a34a799d6
clear timeseries fix (#2487) 2022-10-18 16:09:33 -04:00
Freddy Boulton
dae17bb75a
Fix video mirroring issue (#2475)
* Fix video flip + test

* CHANGELOG

* Fix python 3.7 mock syntax

* Fix python 3.7 syntax

* Use .stem

* Lint
2022-10-18 11:07:03 -04:00
pngwn
f79a76ca8f
add status tracker to md and html (#2474)
* add status tracker to md and html

* changelog

* changelog
2022-10-17 22:00:01 +01:00
Freddy Boulton
831ae1405f
Cancel events from other events (#2433)
* WIP

* Use async iteration

* Format + comment

* Very hacky WIP

* Fix synchronization

* Add comments + tidy up implementation

* Remove print

* Fix rebase

* Lint

* Disconnect queue when cancelled

* Add stop button for interface automaticallY

* Unit tests + interface fixes

* Skip some tests on 3.7

* Skip in 3.7

* Fix skip message

* Fix for python 3.7

* Add stop variant to button variant type union

* CHANGELOG

* Add demos/gifs to the changelog
2022-10-14 18:43:24 -04:00
pngwn
78ab2c8e67
fix interactivity of value-less components with no dependencies (#2459)
* fix interactivity of value-less components with no dependencies

* changelog

* changelog fix

* changelog fix

* changelog fix

* formatting
2022-10-14 17:12:42 +01:00
Dawood Khan
1d18ddae66
Add blur event to textbox and number (#2448)
* add blur event to textbox and number

* changelog

* fixes

* fix blur for number

* reformat
2022-10-12 23:53:05 -04:00
Abubakar Abid
e935f105e1
Improvements to gr.Dataset (#2437)
* Adding example components

* formatting

* formatting
2022-10-12 15:48:53 -05:00
pngwn
ed4f3e4ffd
add snapshot testing (#2438)
* add snapshot testing

* bump ci image

* tweak

* tweak

* fix gitgignore

* fix gitgignore

* dedicated snapshot script

* clean up tests

* tweaks

* fix ci

* fix script

* oops

* fix
2022-10-12 17:30:42 +01:00
pngwn
996cd8b814
1711 image upload (#2410) 2022-10-07 19:21:21 +01:00
pngwn
8f43b6218b
add option to control page title, default to false (#2400)
* add option to control page title, default to false

* changelog

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-10-07 15:32:40 +01:00
phi
a36dcb5975
Resolve Gallery base64 representation issues (#2265) 2022-10-07 06:08:30 +01:00
aliabid94
ac378d0875
Stream works now (#2351)
* changes

* changes

* lazy load streaming deps

* lazy load streaming deps

* cleanup

* fix last chunks of streaming

* add changelog

* add changelog

* add changelog

* add changelog

* updated streaming demo

* renamed sst

* changes

Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-10-05 14:11:47 -07:00
Dawood Khan
b59c45160d
Clamps values for typeable slider input when out of range (#2380)
* warning for slider type input

* fix value on blur

* remove unnecesary classes

* update changelog

* Update CHANGELOG.md
2022-10-05 14:30:40 -04:00
aliabid94
1f5efa7efa
Reworking layout styling (#2291)
* changes

* changes

* changes

* changes

* changes

* changes

* version

* changes

* formatting

* version

* remove group hack

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* test

* changes

* changes

* changes

* changes

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-10-03 18:01:41 -05:00
Ian González
662a811689
Catch the permission exception on the audio component (#2330)
* Catch the permission exception on the audio component and fail gracefully

* Run autoformatter on src/Audio.svelte

* Revert "Run autoformatter on src/Audio.svelte"

This reverts commit e53af15cdd.

* Run autoformatter

* use gradio error message

* convert to try catch, fix types

* cleanup

Co-authored-by: Ian Gonzalez <ian.gl@protonmail.com>
Co-authored-by: Ali Abid <aabid94@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
2022-09-29 15:33:22 +01:00
Dawood Khan
55e6f40f80
Typeable value on gradio.Slider (#2329)
* typeable number slider

* fix hardcoded files in test configs

* test

* test fix
2022-09-26 23:00:02 -04:00
aliabid94
a05f32c8f1
Add captions to galleries (#2284)
* changes

* fix demo

* change

* changes

* test

* testing demo

* testing demo

* testing demo

* changes

* change

* changes

* merge

* changes

* fix

* changes

* changes

* changes

* Update gradio/components.py

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

* Update gradio/components.py

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

* Update gradio/components.py

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

* chnages

* changes

* changes

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-09-26 19:56:16 -07:00
Freddy Boulton
9f7dd05b72
Start queue when gradio is a sub application (#2319)
* First stab at it

* Use util methos

* lint

* Test

* Fix formatting

* Try out setting predict endpoint from websocket request

* lint

* Fix bug

* Address comments - remove server and port

* Skip in 3.7

* Fix documentation

* Add default 🤦

* docs tweak

* Add back imports that were deleted by wrong linter version

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-09-23 16:01:44 -04:00
Dawood Khan
3a4a82634e
Fix: Dataframe column headers are reset when you add a new column (#2318)
* headers fix

* format fix
2022-09-23 13:50:08 -04:00
Abubakar Abid
cecaf1a635
Sketching + Inpainting Capabilities to Gradio (#2144)
* templates

* working on backend

* formatting

* Sketching fe (#2184)

* fix scaling on sketch + bg img

* tweaks

* ketch updates

* cursor style

* sketchpad

* fixes

* ensure background is white for bw sketch

* fix everything

* re-enable demos

* updated demo and changed from dict to str

* beta release

* fix bugs, tweak webcam source

* re-anable demos

* fix clear button and tab changing

* maybe fix test

* maybe fix test again maybe

* various fixes

* fix img uplaod + color sketch

* remove lazy brush but keep smoothing

* fix sketch bg

Co-authored-by: pngwn <hello@pngwn.io>
2022-09-23 13:14:56 +02:00
Abubakar Abid
6c33eed976
Promotes postprocess and preprocess to documented parameters (#2293)
* changes

* Delete media_data.py.isorted

* fixes in other files

* fixes in other files

* added for grid

* removed status tracker

* removed status tracker

* added deprecation warning

* formatting
2022-09-19 19:38:17 -05:00
aliabid94
72c52ebc9f
Attach visible kwarg to all components (#2247)
* change

* remove visible for tabitem

* change
2022-09-15 11:51:18 -07:00
Dawood Khan
42a9c2688f
Fix Multiple File Examples (#2267)
* fix multiple file examples

* format

* fix

* change demo name zip_files

* change func names
2022-09-15 14:40:59 -04:00
Freddy Boulton
f346118133
Show view api button even if there are no named api routes in the app (#2250)
* Show message when no named api routes

* Lint

* Change text slightly

* Add show_api to launch method + fix text

* Undo changes to demos

* Change url example
2022-09-15 11:11:31 -04:00
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