Commit Graph

3981 Commits

Author SHA1 Message Date
Radamés Ajna
a9610a4c9b
enable flex grow for box (#1165) 2022-05-05 19:28:34 +01:00
Abubakar Abid
9eb6a6aebb
formatting (#1161) 2022-05-05 06:14:00 -07:00
Abubakar Abid
2050bdf600
Small fixes: queue default fix, ffmpeg installation message (#1159)
* config fix

* updated PyPi version to 2.9b23

* default fix

* ffmpeg fix

* blowfish warning

* formatting

* Update gradio/processing_utils.py
2022-05-04 09:57:09 -07:00
aliabid94
3e4ac376f5
Custom JS calls (#1082)
* first

* requested changes

* fix

* changes

* fixes

Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-05-04 09:02:29 -07:00
Abubakar Abid
6a34a67b0a
config hotfix and v. 2.9b23 (#1158)
* config fix

* updated PyPi version to 2.9b23
2022-05-04 02:13:43 -07:00
aliabid94
ad1fffd496
Allow enabling queue per event listener (#1155)
* changes

* test fix

Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-05-03 17:35:38 -07:00
Abubakar Abid
12f2374a2b
networking tweak (#1143)
* networking tweak

* updated PyPi version to 2.9b20

* tweaks

* updated PyPi version to 2.9b21

Co-authored-by: pngwn <hello@pngwn.io>
2022-05-03 15:56:53 -07:00
aliabid94
8464481e22
image gallery component + img css (#1140)
* first commit

* format

* first commit

* Gallery component (#1142)

* gallery

* ui update

* scroll gallery items, keeping them centered

* fix keyboard event

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>

* formatting

* formatting

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
2022-05-03 14:49:51 -07:00
Dawood Khan
527abb2ca7
Issue #768: Support passing none to resize and crop image (#1144)
* support passing none to resize and crop image

* clean up code

* remove commented code

* reformat

* format fix

Co-authored-by: pngwn <hello@pngwn.io>
2022-05-03 14:46:51 -07:00
pngwn
1802c5c24d
html tweaks (#1145)
* html tweaks

* formatting
2022-05-03 14:44:17 -07:00
pngwn
215ff72e32
move styling for interface panels to frontend (#1146)
* move interface row styling to frontend

* move interface row styling to frontend

* tweak form grouping

* Update docstring

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-03 14:29:11 -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
pngwn
81e981eb7a
use color palette for chatbot (#1152) 2022-05-03 13:53:24 -07:00
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