Commit Graph

51 Commits

Author SHA1 Message Date
Freddy Boulton
ed2781d8d7
Re-enable Example pagination on the front-end (#2861)
* Pass samples_per_page to examples

* Add to changelog

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-20 17:10:23 -05:00
Abubakar Abid
010827e211
Refactoring to replace unittests with pytests (#2610)
* replace pytests with unittests

* formatting

* test blocks

* fixed test/blocks

* test components

* working on test components

* test components

* test components almost fixed

* removed unittest

* linting

* fix remaining tests

* lint

* formatting

* changelog
2022-11-08 01:37:55 +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
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
Abubakar Abid
2942e24aa3
Quick fix for partial functions (#2235)
* fix for partial

* added test

* fixed tests by adding self
2022-09-12 17:58:17 -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
Abubakar Abid
f46e95d7e0
Fixes to TabbedInterface (#1951)
* tabbed

* formatting

* fixed test

* fixed based on review
2022-08-04 18:46:15 -07:00
Abubakar Abid
a1c391668a
Exposing examples as a component for Blocks (#1639)
* examples as component

* renamed examples

* simplify internal logic

* fix tests

* cleanup

* fixed parallel and series

* cleaning up examples

* examples

* formatting

* fixes

* added unique ids

* added demo

* formatting

* fixed test_examples

* fixed test_interfaces

* fixed tests

* removed test from now

* raise ValueError for bad parameter values

* fixing series

* fixed series

* formatting

* speed up by preprocessing examples

* fixed parameter validation logic
2022-07-06 11:23:35 -07:00
Freddy Boulton
8c9a9a9696
Fix interpretations (#1655)
* add postprocess method on component

* Add test

* Change input in external.

* Revert accidental change
2022-06-29 18:24:27 -04: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
aliabid94
c50a2b021a
Sharing fix for assets (#1208)
* changes

* format

* typo

* updated PyPi version to 2.9b33

* Update PKG-INFO

* removed

* formatting

* fixes

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-11 16:27:58 -07:00
Abubakar Abid
4bd609bcc0
A few small fixes (#1171)
* allow markdown to be set dynamically

* moved markdown to output section

* added aliases for component names

* added aliases

* fixed optional

* formatting

* tests

* tests

* tests
2022-05-06 00:29:02 -07:00
Abubakar Abid
8ad401ba33
Blocks rendering fix (#1102)
* optional labels

* added prop

* Added IOComponent class

* get component fix

* fixed component function

* fixed test components

* formatting

* fixed output tests

* working on blocks tests

* fixed test blocks

* cleanup

* merged

* unrender

* add article

* formatting

* fixed render()

* added demo

* formatting

* merge main

* formatting

* cleanups
2022-04-28 01:51:54 -07:00
Ömer Faruk Özdemir
930c4a3fa6
clean-deprecated-parameters (#1090)
* clean-deprecated-parameters

- resolve conflicts

* clean-deprecated-parameters

- fix tests

* clean-deprecated-parameters

- fix tests

* clean-deprecated-parameters

- resolve conflicts

* clean-deprecated-parameters

- refactor blocks.py

* clean-deprecated-parameters

- remove capture_session support

* clean-deprecated-parameters

- fix get_component_instance

* clean-deprecated-parameters

- fix tests

* clean-deprecated-parameters

- reformat

* clean-deprecated-parameters

- fix tests

* clean-deprecated-parameters

- fix tests

* clean-deprecated-parameters

- resolve conflicts

* clean-deprecated-parameters

- resolve conflicts

* Update gradio/deprecation.py

* Update gradio/deprecation.py

* Update gradio/deprecation.py

* removed some incorrect kwargs

* formatting

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-28 01:12:40 -07:00
Ömer Faruk Özdemir
dc6175a21d
tabbed-interface-rewritten (#958) 2022-04-08 12:13:56 +03:00
Ömer Faruk Özdemir
6274b9099e
blocks-move-test-data (#927)
* blocks-move-test-data
- move test_data under gradio

* blocks-move-test-data
- typo

* blocks-move-test-data
- fix tests
2022-04-06 13:55:51 +01:00
aliabid94
5c44ae3536
Restore Interpretation, Live, Auth, Queueing (#915)
Restore Interpretation, Live, Auth, Queueing

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-04 15:47:51 -07:00
Abubakar Abid
12db19e6ab brought back interface examplest test 2022-03-25 11:34:55 -07:00
Abubakar Abid
721e2db8ee removed external tests 2022-03-24 13:39:39 -07:00
Abubakar Abid
1d316d38a1 commented external, removed context 2022-03-24 13:32:04 -07:00
Abubakar Abid
41197a6a59 removed examples test 2022-03-23 14:16:53 -07:00
Ömer Faruk Özdemir
4c5e116709 Format-The-Codebase
- add a format script
- solve a conflict between flake8 and black
2022-02-10 11:12:26 +03:00
Ömer Faruk Özdemir
972c66e09b Format-The-Codebase
- solve the flake8 warnings
2022-02-09 22:52:26 +03:00
Ömer Faruk Özdemir
82cb2de626 Accelerate Tests
- add coverage to the circleci
- combine the divided tests into single folder
- update requirements
2022-02-09 08:50:00 +03:00
Ömer Faruk Özdemir
bb6805e25f Accelerate Tests
- Create local and cloud test folders and move all the tests with duration > 1 second to the cloud tests.
- Update scripts
2022-02-07 14:29:55 +03:00
Ömer Faruk Özdemir
cc0cff893f Format The Codebase
- black formatting
- isort formatting
2022-01-21 16:44:12 +03:00
Abubakar Abid
c3cb06a17c fixed tests 2022-01-04 12:58:37 -05:00
Abubakar Abid
bd433577b6 added typing; deprecated capture_session; fixed test 2021-12-25 08:35:45 -06:00
Abubakar Abid
3d4306adca fixed tests 2021-12-21 14:20:43 -06:00
Abubakar Abid
118315fe4b fixed tests; had to remove one from utils 2021-12-21 13:40:22 -06:00
Abubakar Abid
33c345fce2 fixed Ali's comments 2021-12-21 11:33:04 -06:00
Abubakar Abid
77998232b0 added remaining pipelines 2021-12-20 17:59:07 -06:00
Abubakar Abid
8dc11093b9 significant cleanup and test fixes 2021-12-16 09:43:31 -06:00
AK391
6cbfbb3d9b add test for capture session 2021-11-16 20:28:13 -05:00
AK391
30ed40afb7 tests for integration and fixes bug 2021-11-11 22:43:27 -05:00
AK391
569c1d0b42 inline option and example tests 2021-11-10 22:40:57 -05:00
Abubakar Abid
55c4fb3727 patched test interface 2021-11-10 08:24:57 -06:00
AK391
ceeb475a00 fix test issues 2021-11-09 22:34:08 -05:00
AK391
d3a9057ad3 Merge remote-tracking branch 'upstream/master' 2021-11-09 21:20:36 -05:00
Abubakar Abid
d09b24ae5f fixed tests based on Ali's feedback 2021-11-09 12:30:59 -06:00
Abubakar Abid
424d390319 fixed tests so they do not trigger analytics 2021-11-09 08:48:55 -06:00
AK391
5e1b9baf51 more tests 2021-11-09 00:02:37 -05:00
AK391
00e79fdaa5 more tests 2021-11-05 20:10:37 -04:00
AK391
dcb660b5a2 test update inferface 2021-11-04 19:59:29 -04:00
Abubakar Abid
b23d5a6484 examples can handle non-nested list if single input interface 2021-11-04 06:27:18 -05:00
Abubakar Abid
2cfacb1503 fixed failing test 2021-11-04 06:04:44 -05:00
Abubakar Abid
8beae1f982 minor tweaks 2021-11-04 05:53:33 -05:00
AK391
7fe7672361 changes 2021-11-03 17:30:36 -04:00
AK391
a7ba75b85e updates interface test 2021-10-26 19:26:50 -04:00
AK391
3c3a33d3c5 test update inferface 2021-10-25 15:29:55 -04:00