Commit Graph

398 Commits

Author SHA1 Message Date
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
pngwn
eca95a549d
Timeseries improvements (#1149)
* ensure chart works with decimal values + generatesaxis lines for values below 10

* add negative example

* use color palette for chart

* add colors kwarg to Timeseries

* fix test?
2022-05-03 14:05:17 -07:00
aliabid94
b0306e716d
Restore queue in Blocks (#1137)
* first commit

* format

* fix tests

Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-05-02 16:17:53 -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
Abubakar Abid
90f3aec388
Backend for optional labels (#1080)
* 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
2022-04-27 02:22:16 -07:00
Abubakar Abid
82e95e259c
Flagging fixes (#1081)
* only show flagging button if manual

* fixing flagging

* fixed flagging examples issue

* formatting

* cleanup

* fixed tests

* predictbody

* formatting

* fixed tests
2022-04-27 00:32:57 -07:00
Ömer Faruk Özdemir
72df62daea
remove-queue-from-events (#1056)
* remove-queue-from-events
- enable_queue exists just under Blocks.launch()

* remove-queue-from-events
- enable_queue exists just under Blocks.launch()

* remove-queue-from-events
- fix tests

* spaces-defaults (#1057)

* spaces-defaults
- enable_queue and cache_examples are activated in spaces in default option

* spaces-defaults
- tweaks
2022-04-26 00:35:47 +03:00
Abubakar Abid
5c34d91865
added better default labels to form components (#1040)
* added better default labels to form components

* updated default labels

* formatting

* fixed tests
2022-04-20 10:54:44 -07:00
Dawood Khan
c480fb0e0c
Model3D Examples fixes (#1035)
* fix examples

* fixes

* fix moddl3d examples

* format fixes

* fixed tests

* fix tests

* fix clearColor null

Co-authored-by: Dawood Khan <dawoodkhan@DawoodsWorkMBP.localdomain>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-20 11:43:21 -04:00
Ömer Faruk Özdemir
9cd4c3121f
textbox-autoheight (#1009)
* textbox-autoheight
- add max-lines to textbox

* textbox-autoheight
- reformat

* textbox-autoheight
- add demo

* textbox-autoheight
- tweaks on scripts

* textbox-autoheight
- fix tests

* textbox-autoheight
- fix tests

* textbox-autoheight
- fix tests

* textbox-autoheight
- convert default max_height from 100 to 20

* textbox-autoheight
- convert default max_height from 100 to 20
2022-04-20 14:25:47 +03:00
Abubakar Abid
ef8b97223d
Fixing import issues so that the package successfully installs on colab notebooks (#1027)
* updated PyPi version to 2.9.0b

* added to init

* moved media_data

* formatting

* updated PyPi version to 2.9.0b2
2022-04-19 11:27:32 -07:00
Abubakar Abid
671147c808
Update test_external.py (#1024) 2022-04-19 08:20:09 -07:00
Abubakar Abid
5eb8763bd5
fixed failing test on main (#1023) 2022-04-19 07:32:40 -07:00
Ali Abid
3dfc7262bc fixes 2022-04-19 02:15:53 -07:00
Ali Abid
7a1618accf fixes 2022-04-19 02:06:38 -07:00
Ali Abid
ba9eebf934 changes 2022-04-19 01:48:33 -07:00
Ali Abid
1089bc67ef test fixes 2022-04-19 01:35:17 -07:00
Ali Abid
7bf3283954 fix css 2022-04-19 01:05:47 -07:00
Ali Abid
0312c4043c format 2022-04-19 00:25:17 -07:00
Ali Abid
c15885f0cc merge master 2022-04-19 00:22:43 -07:00
Ali Abid
4f1947d8c7 merge in master 2022-04-18 18:36:43 -07:00
aliabid94
1c2f430a7e
Progress indicator bar (#997)
Create Status Tracker component to report progress on function calls

Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-04-15 02:20:19 -07:00
Ömer Faruk Özdemir
f51117487f
import hotfix (#1008) 2022-04-15 11:18:56 +03:00
Dawood Khan
873060a354
Image3D Examples Fix (#1001)
* fix 3d model examples

* format fix

* cache_examples in image demo

* fix cached examples

* fixed cached example bug

* fixed formatting

* fixed tests

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-14 23:23:02 -07: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
Ömer Faruk Özdemir
86ebd8af80
test-guideline (#990)
* test-guideline
- add backend test guidelines

* Update test/README.md

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

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-14 00:06:14 +03:00
pngwn
9cb40dc99a
ensure dataframe updates as expected (#981)
* ensure input  updates as expected

* ci debug

* ci debug

* ci debug

* fix broken path

* cleanup

* cleanup

* cleanup

* remove pkg-up

* fix dataframe

* ensure headers can be edited

* allow the table to render empty content without exploding

* fixed components and test components

* fixed test inputs and test outputs

* formatting

* Update test_components.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-13 21:53:35 +01:00
Ömer Faruk Özdemir
a1509850dc
Merge in Examples and cache_examples fixes
* soft reset and remove a commit,
then commit the further commits  again

* fix flagging for tests

* format fix

* fixes

Co-authored-by: Ali <aliabid94@gmail.com>
2022-04-11 13:18:42 -07:00
Ömer Faruk Özdemir
8eae59f494
Blocks page load (#963)
* Blocks load event implemented

* tweks

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-08 20:54:59 +03:00
Ömer Faruk Özdemir
dc6175a21d
tabbed-interface-rewritten (#958) 2022-04-08 12:13:56 +03:00
Ömer Faruk Özdemir
3c876c49ef add fake_gan demos with smaller pictures 2022-04-08 11:21:40 +03:00
Ömer Faruk Özdemir
023706136e add fake_gan demos with smaller pictures 2022-04-08 11:14:00 +03:00
Abubakar Abid
d722de0a79 replaced ASR model with one that works 2022-04-07 08:57:28 -07:00
Abubakar Abid
e3aeeb541e formatting 2022-04-07 08:23:55 -07:00
Abubakar Abid
5ca96c4e2e added timeseries output test 2022-04-07 07:55:38 -07:00
Ömer Faruk Özdemir
d8dd552cdb blocks-move-test-data
- add tests
2022-04-07 01:40:28 +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
Ömer Faruk Özdemir
22c4003119 blocks-components-test
- rename functions to test_component_functions
2022-04-05 23:35:04 +03:00
Abubakar Abid
826fceeae3 fixed carousel test 2022-04-05 13:24:14 -07:00
Abubakar Abid
29585482f7 fixed interpretation test 2022-04-05 13:14:52 -07:00
Abubakar Abid
19cf1e7153 fixing tests related to new way of doing interpretation 2022-04-05 12:58:17 -07:00
Abubakar Abid
67ced042af fixed error in merge 2022-04-05 12:30:37 -07:00
Abubakar Abid
2fdf26d7ac merged blocks-dev 2022-04-05 12:21:48 -07:00
Ömer Faruk Özdemir
ceee0fce9e blocks-components-test
- use deepcopy in the remaining tests as well
- update a failing test
- add processing utils to init for IDE to identify the function
2022-04-05 13:08:53 +03:00
Ömer Faruk Özdemir
9f7a48604b blocks-components-test
- finalize and document components tests
2022-04-05 12:54:17 +03:00
Abubakar Abid
8d19a964a2 formatting 2022-04-04 18:09:09 -07:00
Abubakar Abid
541041e299 merged blocks-dev 2022-04-04 17:48:15 -07: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
6a376ed02a fixed test 2022-04-04 11:04:35 -07:00