Commit Graph

473 Commits

Author SHA1 Message Date
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
Abubakar Abid
3010d55132 updated demos 2022-03-28 14:22:49 -07:00
Abubakar Abid
f817f33c24 4 more demos 2022-03-28 13:49:55 -07:00
Abubakar Abid
75d9318f95 added multistep demo 2022-03-28 12:59:30 -07:00
Abubakar Abid
d074d23d76 checked 7 more demos 2022-03-28 08:11:14 -07:00
Abubakar Abid
4bde73e5d3
Merge pull request #864 from gradio-app/interface_to_blocks_features
More Interface -> Blocks features
2022-03-25 12:06:28 -07:00
Ali Abid
d4759cfb3c fix format 2022-03-24 23:03:47 -07:00
pngwn
ceb96ec040 remove unused import 2022-03-24 11:01:19 +00:00
pngwn
2df7c6062d add test for output to input 2022-03-24 10:59:09 +00:00
dawoodkhan82
ad8018c1d6 update model3d demo 2022-03-23 18:45:04 -04:00
pngwn
26d2c190fc
add test infra + add browser tests to CI (#852)
* add test infra

* improve test setup and utils

* finish a test

* add browser tests to ci

* fix ci

* fix ci

* fix ci

* fix ci

* debug ci

* debug ci

* debug ci

* debug ci

* debug ci

* debug ci

* debug ci

* fix ci

* update lockfile

* fix formatting

* install browser when not cached

* bust cache

* debug test in ci

* fix button label

* generate screenshots for failed tests

* generate screenshots for failed tests

* generate screenshots for failed tests

* fix tests

* clean uip debug logs

* add setuip + teardown to functional tests

* remove build from static checks
2022-03-23 15:19:12 +00:00
Abubakar Abid
40efaac65c fixed kinematics demo; readded button click trigger 2022-03-22 16:54:35 -07:00
Abubakar Abid
7f2f62c239 revert diff text changes 2022-03-22 16:41:43 -07:00
Abubakar Abid
5d6a9d4981 calculator live correction 2022-03-22 16:40:54 -07:00
Abubakar Abid
503eb7bb53 revert calculator_live changes 2022-03-22 16:40:32 -07:00
Abubakar Abid
763585cf24 formatting 2022-03-22 16:26:42 -07:00
dawoodkhan82
6d8bbb319a model3d fixes 2022-03-22 19:01:43 -04:00
Abubakar Abid
35f661b65b live calculator 2022-03-22 15:40:09 -07:00
Abubakar Abid
330ba63d61
Merge branch 'Blocks-Dev' into update-demos 2022-03-22 15:33:40 -07:00
aliabid94
4796e5568f
Interfaces from Blocks (#849)
Build interfaces from blocks

Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-03-22 15:28:11 -07:00
Abubakar Abid
c5fce03592 moved commits over 2022-03-22 14:14:25 -07:00
Abubakar Abid
ef533b2332 kinematics block 2022-03-21 15:53:08 -07:00
Abubakar Abid
63ccf88b41 added super basic static textbox demo 2022-03-21 15:11:03 -07:00
Abubakar Abid
01cc894987 updated to use merged components 2022-03-21 14:33:56 -07:00
Abubakar Abid
e9386f5838 updated imports to components.py 2022-03-21 13:29:23 -07:00
dawoodkhan82
16ce49289a update model3d 2022-03-21 03:14:07 -04:00
Abubakar Abid
0e220e51b1 added transformers based demo for sst 2022-03-15 14:23:38 -07:00
Ali Abid
fd0928dc0a update backend to new output config format 2022-03-11 16:40:23 -08:00
Ali Abid
55c69891e6 changes 2022-03-09 22:46:52 +00:00
Ali Abid
5dd1ce4ac8 changes 2022-03-09 11:32:42 -08:00
Ömer Faruk Özdemir
05037f436c Block-Components
- fix errors
- remove type and optional from blocks context
2022-03-09 12:35:47 +03:00
Ömer Faruk Özdemir
dfb55e5865 Block-Components
- create input and output aliases for Textbox
- update author list
2022-03-04 09:15:30 +03:00
dawoodkhan82
d137654e46 add model3d output 2022-03-03 21:23:34 -05:00
dawoodkhan82
07b2a4992f add 3d image model 2022-03-02 22:01:05 -05:00
Ali Abid
4a11a14ba3 changes 2022-03-02 22:59:36 +00:00
Ali Abid
10be5e7a2c first commit 2022-03-02 14:40:59 -06:00
Ömer Faruk Özdemir
9451597224 Block-Components
- create general structure
- move Textbox into component.py
2022-03-02 21:59:37 +03:00
Ömer Faruk Özdemir
6600632380 Revert "Block-Events"
This reverts commit d6bfd7c682.
2022-03-02 17:55:58 +03:00
Ömer Faruk Özdemir
d6bfd7c682 Block-Events
- random commit
2022-03-02 17:55:44 +03:00
aliabid94
11dda55352
Gradio Blocks (#590)
Integrate initial work on Gradio Blocks by creating Blocks class and frontend Block code.
2022-02-28 22:35:21 -06:00
Ömer Faruk Özdemir
f22ce53f7f tweaks on the naming and description 2022-02-28 20:04:09 +03:00
Ömer Faruk Özdemir
054a5850e3 Update first launch commands to deliver the usage of ";" and app, path_to_local_server, share_url = iface.launch() 2022-02-28 17:48:47 +03:00
Abubakar Abid
0410b1a79f
Merge pull request #724 from gradio-app/454-hl-text
ensure colormap colours are rgba format
2022-02-23 12:07:59 -05:00
pngwn
de0139d868 ensure colormap colours are rgba format 2022-02-23 15:18:25 +00:00
Ali Abid
2879558c12 fix file upload issues 2022-02-22 21:53:28 -08:00
Abubakar Abid
fa76228db8 added chatbot output screenshot 2022-02-18 18:16:32 -05:00
Abubakar Abid
4e50382561 updated the screenshot gif 2022-02-18 10:30:19 -05:00
dawoodkhan82
5bf3c81d64 update chatbot demo 2022-02-17 20:49:07 -05:00
Lysandre
5522fa4d6a Upgrade black to version ~=22.0 2022-02-08 13:56:13 -05:00
aliabid94
381bd56ff6
Login frontend (#499) 2022-02-01 08:40:10 +00:00
Ali Abid
d71e60e2c5 minor fixes 2022-01-26 22:02:34 -08:00
dawoodkhan82
413ae00549 fix conflicts 2022-01-26 22:01:07 -05:00
dawoodkhan82
788bb15a40 merge master 2022-01-26 21:59:29 -05:00
aliabid94
d6b1247e21
Svelte migration (WIP) (#448)
* first migration commit

* style comment

* first mvp working with calculator

* ali components

* carousel

* more changes

* changes

* add examples

* examples support

* more changes

* interpretation

* interpretation

* submission state

* first migration commit

* style comment

* first mvp working with calculator

* ali components

* carousel

* more changes

* changes

* add examples

* examples support

* more changes

* interpretation

* interpretation

* submission state

* base image cropper

* add image editor

* css tweaks

* remove dead code

* finalise sketch tools

* add webcam snapshot source

* tweak config

* tweak config

* tweak config

* tweaks

* reset egg files

* lockfile v2

* image tweaks

* record audio from mic

* add audio input components

* audio tweaks

* editable table

* more table tweaks

* sort columns

* add row/col to table

* add output table

* fix broken paths

* fix svelte build destination

* fix svelte build destination again

* fix gitignore

* fix css

* add themes

* add all themes

* snake core classnames

* actually fix themes this time

* merge changes

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: Ali Abid <aliabid@Alis-MacBook-Pro.local>
Co-authored-by: pngwn <hello@pngwn.io>
2022-01-26 18:33:49 -08:00
Ömer Faruk Özdemir
cc0cff893f Format The Codebase
- black formatting
- isort formatting
2022-01-21 16:44:12 +03:00
Abubakar Abid
1fbac4b0cf fixing test image 2022-01-15 10:36:16 -06:00
Ali Abid
526e34a598 state working in frontend 2022-01-13 12:22:38 -08:00
Ali Abid
6560f53647 changes 2022-01-12 11:12:07 -08:00
Ali Abid
5c0fc0148d more changes 2022-01-11 15:08:27 -08:00
Ali Abid
8a3e08defa ali components 2022-01-10 21:22:44 +00:00
Ali Abid
4e5df36046 theme updates! 2022-01-03 17:46:07 +00:00
Ali Abid
5020f8aa1f cache examples functionality; other fixes 2021-12-30 08:20:28 +00:00
Ali Abid
f5720b6b51 fix gradio web embeds 2021-12-22 08:45:23 +00:00
Ali
36f2da66ec add kitchen sink 2021-12-20 17:20:29 -08:00
Ali Abid
8d23f067a2 theme-preview 2021-12-17 10:52:19 +00:00
fiordiconio
f65375b471 Added hers to list of female words 2021-12-16 16:22:24 +01:00