Commit Graph

13 Commits

Author SHA1 Message Date
Freddy Boulton
119c834331
Faster reload mode (#5267)
* This works

* Add code

* Final touches

* Lint

* Fix bug in other dirs

* add changeset

* Reload

* lint + test

* Load from frontend

* add changeset

* Use key

* tweak frontend config generation

* tweak

* WIP ipython

* Fix robust

* fix

* Fix for jupyter notebook

* Add checks

* Lint frontend

* Undo demo changes

* add changeset

* Use is_in_or_equal

* python 3.11 changes and no if __name__

* Forward sys.argv + guide

* lint

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-29 17:29:15 -04:00
pngwn
1419538ea7
Refactor component directories (#5074)
* asd

* changes

* fix everything

* cleanup

* add changeset

* fix casing

* lockfile

* fix casing

* fix ci, enable linting

* fix test

* add changeset

* add changeset

* delete changeset

* fix dirs

* fix casing

* fix notebooks

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-03 23:01:18 +01:00
Freddy Boulton
95ea19d65f
Dont format on save for vscode (#5058)
* Add code

* Dont format on save

* Delete prettier line
2023-08-01 13:13:08 -04:00
pngwn
085ff0394d
update deps + fix tests (#4675)
* update deps + fix tests

* tweak

* fixes

* changes

* fix everything

* fix checks

* fix

* log

* remove logs

* try this
2023-06-28 22:40:53 +01:00
pngwn
1b4cb3300b
Eslint (#4593)
* make eslint work

* add vscodes recommendations + settings

* more

* format

* add to ci but ignore failures

* fix

* fix lockfil

* fix

* Update .config/.eslintrc.cjs

Co-authored-by: Aarni Koskela <akx@iki.fi>

* implement review suggestions

* typo

* fix

* tweak

* add globals and fix client linting

* fix type errors

---------

Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-06-22 11:25:27 +01:00
Abubakar Abid
4729457929
Add a gr.ClearButton (#4456)
* clear button

* restore

* button in interface

* changelog

* fixes

* simplify

* changes

* components

* changed dropdown behavior

* fix label

* add tests

* update demos

* changelog

* changelog

* restore

* formatting

* revert dropdown

* frontend changes

* other fixes

* changelog

* update guide

* future

* fix tests

* fix tests

* fix tests

* changelog

* update guide
2023-06-13 19:18:14 -05:00
pngwn
963c2d26ee
3712 js client (#3899) 2023-05-12 16:22:25 +01:00
Freddy Boulton
c4a884a9a7
Fix flaky interface test (#4168)
* Fix test

* Lint

* Fix vs code lint
2023-05-11 10:53:45 -05:00
Yuichiro Tachibana (Tsuchiya)
29d3d81e54
Fix the prettier.ignorePath field in the VSCode workspace settings (#4164)
Co-authored-by: pngwn <hello@pngwn.io>
2023-05-11 13:58:44 +01:00
pngwn
ae4277a9a8
move files (#3605)
* move files

* commit the rest of the files

* fix lockfile

* fix workflow

* fix type errors

* fix tests

* only run ci when certain files change

* run correct test command in ci

* version

* fix pypi script

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-27 16:12:58 -07:00
Freddy Boulton
8ec2b0b98a
Sharing themes (#3428)
* Rebase

* Remove build hooks

* Working implementation

* Add semver + unit tests

* CHANGELOG

* Add to docs

* Rename push_to_hub and fix typos

* Fix gallery

* Fix typo

* Address comments + tests

* Update gradio/themes/app.py

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

* Import Base as Theme. Use DefaultTheme() as fallback

* Fix types

* Make version and token truly optional

* Add version dropdown + tests

* trigger

* Support private themes and org_names

* Fix org_name typo

* Update wheel

* Fix font loading and dumping

* fixing tests

* fix tests

* formatting

* version

* remove requirements

* remove requirements

* formatting

* fix tests

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-18 20:15:02 -07:00
pngwn
d6fbc32ed1
Theme base 2 (#2840)
* add theme + theme atoms

* audio

* buttons

* chatbot

* forms

* start file

* complete file

* fixup workbench

* gallery

* highlighted text

* label

* json

* upload

* 3d model

* atoms

* chart

* md + html

* image

* plot + build

* table

* tabs

* tooltip

* upload

* tweaks

* tweaks + more tooling

* tweaks to padding/ lineheight

* app components _ start api docs

* format, more api docs

* finish api docs

* interpretation

* todos

* tweaks + cleanup

* tweaks + cleanup

* revert range tweaks

* fix notebooks

* fix test

* remove tw

* cleanup + login

* fix gitignore

* fix types

* run css script

* fix progress + tweaks

* update demos

* add css build to static check workflow

* tweak ci

* fix tests

* tweak markdown

* tweak chatbot + file

* fix tabs

* tweak tabs

* cleanup

* fix api docs

* fix example gallery

* add gradient to toast

* fix min height for interfaces

* revert tab changes

* update notebooks

* fix generating status animation

* fix weird table scrollbar that only appears on freddy's computer

* format

* fix dataset in gallery mode

* cleanup

* fix notebooks

* tweaks

* fix notebooks

* change

Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-01-17 12:47:40 -08:00
Abubakar Abid
e0a64e5b55
added interactive parameter to components (#992)
* added interactive parameter to components

* respect interactive prop

* fixed input tests

* fixed output tests

* fixed test_components.py

* fixed test blocks

* fixed test utils

* fixed formatting

* update test configs

* fix textbox static output

* static audio output

* static video output

* cleanup

* static inmage output

* Static Timeseries

* cleanup outptus fopr markdown _ html

* ensure dataframe can load in static mode

* tweaks

Co-authored-by: pngwn <hello@pngwn.io>
2022-04-14 15:12:30 +01:00