Commit Graph

3968 Commits

Author SHA1 Message Date
pngwn
e34210ccda
max_lines + autoheight for textbox (#1153)
* ensure autoheight always reruns when value changes

* implement lines + max_lines for textbox

* update demo

* fix test
2022-05-03 18:28:57 +01:00
pngwn
ce77c73551
add select event for tabitems (#1154) 2022-05-03 18:21:29 +01: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
pngwn
87dcdd7134
pin to pnpm 6 for now (#1147) 2022-05-02 12:27:26 +01:00
pngwn
1032313988
highlighted text colors (#1119)
* highlighted text colors

* fix document error
2022-05-02 09:41:34 +01:00
Dawood Khan
190858ffb2
Chatbot custom color support (#1092)
* add color functionality to chatbot text bubbles

* chagne chatbot background colors

* chatbot color fixes

* merge conflict fix

* format fix

* chatbot fixes

* format

* remove prints
2022-05-02 09:41:20 +01:00
Victor Muštar
5f6ff85106
Examples UI (#1121)
* add fonts

* Update tailwind.config.js

* Examples UI

* demos examples update

* text align

* prettier

* formatting

Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-05-02 09:38:18 +01:00
Abubakar Abid
122b988f45
made default value in textbox empty string (#1135)
* made defaultvalue in textbox empty string

* updated PyPi version to 2.9b12
2022-04-29 18:32:13 +01:00
Victor Muštar
9180e6ce2e
stacked form inputs css (#1134) 2022-04-29 11:43:47 +01:00
Ali Abdalla
391edc4350
ONNX guide fixes (#1131)
* contribution rendering

* fix links

* fix links
2022-04-29 05:32:13 +02:00
AK391
edb2798bb7
Guide for Gradio ONNX model zoo on Huggingface (#1073)
* Create Gradio_ONNX_on_Hugging_Face.md

* add titles and related spaces

* add clearer description

* add gradio description

* add contribution guide

* add spaces description

* add onnx models description

* first version of document related to onnx/ort/modelzoo

* rewording

Signed-off-by: jcwchen <jacky82226@gmail.com>

* for review

Signed-off-by: jcwchen <jacky82226@gmail.com>

* spaces

Signed-off-by: jcwchen <jacky82226@gmail.com>

* update Gradio desc

* update spaces description

* update onnx description

* add code example

* update title and tags

* add Spaces demo

* add efficientnet-lite4 description

* add ONNX models tag description

* updated by review; onnx.hub

Signed-off-by: jcwchen <jacky82226@gmail.com>

* download from onnx model zoo

* update title

* use ort instead of rt for onnx runtime

* fix loads

* delete extra onnxruntime import

* delete trailing space

* update height to 810

* update description

* add the

* delete duplicate sentence

* update get started description

* add the

* update sentence

* fix sentence

* fix sentence

* fix demos

* fix model to models

* remove get started

* onnx model zoo PR link

* add contribution

* fix sentence

* is to are

* no colon at end

* update contribution and link

Co-authored-by: Chun-Wei Chen <jacky82226@gmail.com>
2022-04-29 04:04:31 +02:00
Ali Abdalla
babf914107
Fix demos in website (#1130)
* iframing spaces demos

* fix demos in getting started
2022-04-29 03:53:25 +02:00
Ömer Faruk Özdemir
761a218e5e
Update feature_request.md (#1127) 2022-04-29 01:23:32 +03:00
Ömer Faruk Özdemir
c215626959
issue-checkbox (#1122)
- add issue checkbox
2022-04-29 01:22:11 +03:00
Abubakar Abid
6d0a6ccb83
Hotfix + New pypi release 2.9b11 (#1118)
* updated PyPi version to 2.9.0b10

* hotfix

* updated PyPi version to 2.9b11
2022-04-28 03:28:47 -07:00
Abubakar Abid
93e5a82ff2
Interface types: handle input-only, output-only, and unified interfaces (#1108)
* 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

* add interface types

* added output only

* added input only

* formatting

* added demos

* formatting

* removed unnecessary import

* updated demos

* fixed duplication

* fix for state
2022-04-28 03:06:16 -07:00
Abubakar Abid
f47e65b14d
Redos #1106 (#1112)
* fix

* formatting
2022-04-28 02:11:11 -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
pngwn
f85686975e
Optional labels fe (#1105)
* 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

* respect show_label prop in all components

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

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

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

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

* Update ui/packages/atoms/src/BlockLabel.svelte

* foirmatting

* formatting again

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-27 11:47:15 +01: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
Ali Abdalla
cee698bd43
Website Reload: README in demos docker (#1100)
* copy README to docker

* remove print statement

* copy README to demos docker
2022-04-27 06:35:49 +02:00
Ali Abdalla
f088679e2a
Website Reload Error (#1099)
* copy README to docker

* remove print statement
2022-04-27 06:02:11 +02:00
pngwn
665a15c44a
tweak node circleci settings (#1091)
* tweak node circleci settings

* tweak node circleci settings

* update node orb to latest
2022-04-27 02:05:50 +01:00
Abubakar Abid
90aff5482a
Release 2.9b9 (#1098)
* encrypt issue

* formatting

* added pypi friendly description

* updated pypi version
2022-04-26 14:26:54 -07:00
Abubakar Abid
a1d0da4c9a
hotfix for encrypt issue (#1096)
* encrypt issue

* formatting
2022-04-26 13:49:52 -07:00
Freddy Boulton
910db9959b
Explicitly list pnpm version 6 in contributing guide (#1085) 2022-04-26 15:49:58 +01:00
pngwn
2b0898b9a2
Scroll to output (#1077)
* implement loader + scroll into view

* changes

* refactor components to use Block inside the app

* cleanup

* cleanup

* implement all changes for all changes for all relevant components

* fix formatting

* demos

* add status tracker to every component

* fix tests

* fix unti test flake: randInt

* cleanup CI

* fix CI

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-26 15:48:39 +01:00
Ron Au
73ac1e1389
Dark text (#1049)
* fix(ui): Apply dark bg when dark theme set

* fix(ui): Increase contrast for dark theme text

* Fix formatting
2022-04-26 15:03:03 +01:00
Radamés Ajna
9ecb5e8a49
Enable vertex colors for OBJs files (#1074)
configure Babylon.js OBJ loader to enable vertex colors
2022-04-26 14:03:09 +01: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
1ec62d969c
fixed favicon issue (#1064)
* fixed favicon issue

* routes

* added default favicon
2022-04-25 12:42:38 -07:00
Ali Abdalla
e77a6a71db
converting to static docs (#1079) 2022-04-25 21:19:24 +02:00
Ali Abdalla
e86739bd50
upgrading node memory to 4gb (#1069) 2022-04-22 17:40:59 +02:00
Ömer Faruk Özdemir
dc388d2818
Update PULL_REQUEST_TEMPLATE.md (#1068) 2022-04-22 16:09:11 +03:00
Ömer Faruk Özdemir
c892c74cb6
inputless-interfaces (#1038)
* inputless-interfaces
- enable inputless or outputless interfaces

* inputless-interfaces
- tweaks
2022-04-22 15:29:26 +03:00
pngwn
0cecff4672
Form layout (#1054)
* implement form grouping

* demo to showcase form groups

* cleanup

* apply tw classes for custom classes

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

* fix formatting

* ignore index.html

* fix gitignore

* fix gitignore

* fix gitignore

Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
2022-04-22 10:19:59 +01:00
Abubakar Abid
4c1c735399
Running, testing, and fixing demos (#1060)
* fixing demos

* fixes
2022-04-21 18:33:23 -07:00
Abubakar Abid
1dacb6758a
updated PyPi version to 2.9.0b8 (#1059) 2022-04-21 08:14:23 -07:00
Victor Muštar
87ea33dc42
UI design update (#1041)
* ui update

tabs
button
container
spacing
responsive row
mobile
chatbot
style
JSON node

* ui misc

* gradio orange shades

* workbench layout

* button shade

* rm unused

* audio animation

* tabs spacings

* table

* form update

* misc

* misc

* sketch placeholder

* table update

* table rings

* JSON copy button

- Logic not implemented

* textbox default placeholder

* table

remove old table

* label style

* button global css

* Update Button.svelte

* cs

* table btn

* carousel height

* audio style

* audio static

* static image size

* formatting

* skip test that aren't testing anything

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2022-04-21 10:27:12 +01:00
Ron Au
c1956bfc68
fix(ui): Increase contrast for footer (#1048) 2022-04-21 10:16:11 +01:00
Ömer Faruk Özdemir
0bfb1f24f9
Update CONTRIBUTING.md (#1052) 2022-04-21 12:15:42 +03:00
Ron Au
abad6383df
Update text (#1050)
* docs(CONTRIBUTING): Update with new details

* docs(ui): Update with correct details

* fix(Error): Fix minor typo

* docs: Link to `ui` readme from contributing guide

* Update CONTRIBUTING.md

Co-authored-by: pngwn <hello@pngwn.io>
2022-04-21 10:07:43 +01:00
aliabid94
9a62b25bbb
fix (#1046)
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-04-20 21:43:14 -07:00
Ali Abdalla
84cdcf3647
fixing demo issue with website (#1047) 2022-04-21 02:06:51 +02:00
Abubakar Abid
161a7a8472
Small fixes to the demos (#1030)
* updated PyPi version to 2.9.0b

* added to init

* moved media_data

* formatting

* updated PyPi version to 2.9.0b2

* default selected

* deprecated keyvalues

* fixed a few small issues
2022-04-20 14:57:45 -07:00
Dawood Khan
76eab3f9ce
Plot fixes (#1044)
* matplotlib and warning fix

* fix matplotlib demo
2022-04-20 15:14:46 -04:00
Ali Abdalla
d7b8b03267
fixing env var (#1043) 2022-04-20 20:04:30 +02: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