Commit Graph

438 Commits

Author SHA1 Message Date
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
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
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
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
Ali Abdalla
babf914107
Fix demos in website (#1130)
* iframing spaces demos

* fix demos in getting started
2022-04-29 03:53:25 +02: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
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
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
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
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
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
aliabid94
9a62b25bbb
fix (#1046)
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-04-20 21:43:14 -07: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
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
Ali Abid
c15885f0cc merge master 2022-04-19 00:22:43 -07:00
Dawood Khan
499f106c9e
Model3D + Plot Components (#1010)
* add model3D

* model3d component

* add plot component

* format

* ingnore plot.svelte from prettier

* update build script

* update circleci config

* remove circleci config change

* change build script

* remove change to build script

* remove plot.svelte

* remove duplicate save_flagged func

* fix node space issue + format issues

* Update ui.yml

* Update ui.yml

* Update ui.yml

* remove changes to config files

* updated codecov version

* Update ui.yml

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-18 15:26:30 -04: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
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
Dawood Khan
7552e1ef6c
Plot Component (#805)
* plotly + matplotlib component

* update plot demos and plotly component

* fix gray bg

* format

* pnpm lock file

* add bokeh

* update plot demo

* add bokeh support

* ignore plot file

* fixed demo

* fixed sorting

* update image-plot deprecation warning

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-14 14:45:31 -07:00
Ömer Faruk Özdemir
8464aa7258
Refactor component shortcuts (#995)
* custom-components
- create template components
- changes in PKG and requires comes from scripts/install_gradio.sh

* custom-components
- tweaks

* update-components
- tweaks

* update-components
- fix get_block_name

* update-components
- add webcam demo

* custom-components
- make use of get_block_name function whenever possible

* custom-components
- tweaks

* refactor-component-shortcuts
- no description whatsoever :D

* refactor-component-shortcuts
- tweaks

* refactor-component-shortcuts
- create shortcut function "component"

* refactor-component-shortcuts
- reformat

* refactor-component-shortcuts
- tweaks

* refactor-component-shortcuts
- tweaks
2022-04-15 00:24:14 +03:00
Ömer Faruk Özdemir
ad75b06f9a
custom-components (#985)
* custom-components
- create template components
- changes in PKG and requires comes from scripts/install_gradio.sh

* custom-components
- tweaks

* update-components
- tweaks

* update-components
- fix get_block_name

* update-components
- add webcam demo

* custom-components
- make use of get_block_name function whenever possible

* custom-components
- tweaks
2022-04-14 17:52:42 +03: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
6e1ccec1d0
update-components (#986)
- implement update function
- create an example demo
2022-04-13 14:57:42 +03:00
aliabid94
1d3cb510bb
State and variables (#977)
Restore state and add variables component

Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-04-12 18:41:13 -07:00
Abubakar Abid
ceea8ce3ca tweaked demo 2022-04-12 09:12:56 -07:00
Abubakar Abid
65f5733ab4
New Blocks Demo: neural instrument cloning (#975)
* cleaning up launchable

* removing launchables broken

* deleted launchables

* relaunch parameters

* fixed close method

* formatting

* renamed blocks demos

* creating a new blocks demo

* added neural blocks demo

* format backend

* fixed naming bug i introduced
2022-04-11 20:50:21 -07: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
pngwn
4b10085c93
add frontend for page load events (#967)
* Blocks load event implemented

* tweks

* add frontend for page load events

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>
2022-04-08 19:24:25 +01:00
Abubakar Abid
c19042ee62
replaced local files with urls to images (#965) 2022-04-08 07:35:55 -07: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
pngwn
61c2e0e680
static mode for textbox (#929)
* static mode for textbox

* fix checkbox and remove title

* address comments

* autoresize textarea for output textbox

* wait for the DOM to update before resizing the textarea
2022-04-07 20:36:49 +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
Ömer Faruk Özdemir
da4a59459f blocks-with-fix
- add support for "with gr.Blocks() as demo:" usage
2022-04-01 14:26:23 +03:00
dawoodkhan82
d13d172d22 rename Model3d to Image3D 2022-03-31 13:58:36 -04:00
dawoodkhan82
3f5a7be079 Merge branch 'main' into dawood/3d-image 2022-03-30 15:43:13 -04:00
Abubakar Abid
e9bfc1a9e6 asr guide 2022-03-29 10:05:03 -07:00
Abubakar Abid
94eef9cf31 fixed demos 2022-03-29 08:10:26 -07:00
Abubakar Abid
776249a76c fixed demos 2022-03-29 08:09:48 -07:00
Abubakar Abid
745826dc9d fixed remaining demos 2022-03-28 15:52:52 -07:00
Abubakar Abid
34041414c1 updated demos 2022-03-28 15:28:01 -07:00
Abubakar Abid
76d5a5278f more demos 2022-03-28 15:13:39 -07:00
Abubakar Abid
5fa69783e9 fixed more demos 2022-03-28 14:58:30 -07:00