Commit Graph

4030 Commits

Author SHA1 Message Date
Abubakar Abid
ecda9d1c53
Improves "Getting Started" guide (#1269)
* making quickstart better

* fixed quickstart

* quickstart

* advanced features

* advanced features

* simplified blocks demo

* added sidebars to guides

* added a little bit of padding

* shortened
2022-05-16 08:35:17 -07:00
pngwn
b69e8cb151
maybe fix auth in iframes (#1261)
* maybe fix auth in iframes

* remove comment

* Update gradio/templates/frontend/index.html

* fix gitignore?

Co-authored-by: aliabid94 <aabid94@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-16 11:07:11 +01:00
aliabid94
569a16998d
fix slider (#1268) 2022-05-15 23:55:35 -07:00
Victor Muštar
40712a2686
update logo (#1266)
* adding gallery

* added netlify files

* new navbar design

* header section new design

* used by section new design

* cards section new design

* integrates with section new design

* customer stories section new design

* footer and gradient

* demos section new design

* docs fixes

* docs reorg

* docs reorg

* upgrading to tailwind 3

* tailwind config changes

* navbar new design

* fixing body on all pages

* Updating Guides  (#1012)

* updating getting started

* updated codecov version

* tweaks to gs

* added netlify file

* added netlify file

* website prebuild script

* increased code size

* blocks

* edits

* blocks_hello

* hello world

* guide

* merge main

* added flipper demo

* guide

* guide

* add guides

* tweak to refresh website

* header section new design

* demos section new design

* cards design

* used by section

* tweets section

* footer on all pages

* mobile responsive fixes

* mobile responsive fixes

* https fonts

* completed blocks guide

* unify components

* minor tweaks

* docs headers styling and navigation pane

* parameter code blocks

* styling description and input type

* parameter tables and other styling

* only documenting interactive components when possible

* guides

* embedding not working

* demos not working

* fixing demo code

* fixing demos

* demo fix

* updated demos

* updated demos

* ui update

* updated docstrings

* updated code snippets so they run

* updating docs

* Interface docs

* updating interface

* fixing parameters in interface.py

* required and defaults for interface, and styling

* fixing up interface (#1207)

* fixing up interface

* fixed interface methods

* formatting

* updating interface docs

* updating interface docs

* formatting

* docstring to load from docstrings

* fixed colors

* finalize interface content

* interface examples

* fixed examples

* added some blocks docs

* blocks

* component fixes

* reorganized some files (#1210)

* formatting

* added info for every component

* fixes

* blocks docs

* added blocks demos

* adding combined interfaces

* added parallel, series

* Doc: layout update (#1216)

* doc layout

* home spacing

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

* adding layouts

* layouts done

* added events for components

* formatting and https

* brings back dropdown and other components

* fix header ids

* moved ids and fixed nav

* added parameters for remaining component

* docstring fixes

* landing page demos

* demo window placeholder

* demo nav

* fixed test

* formatting

* demo code

* correctly importing gradio  css/js

* remove keyvalues

* modify launch script to move gradio assetS

* components embedded test

* correct demo name

* hide try demo and embedding

* local devserver changes

* create embedding json with configs

* changes

* fixes

* comment out layout docs

* demo work

* demo fixes

* demo embedding fixes

* typo

* jinja fix

* demo nav fix

* hide demo button

* formatting

* removed whitespace

* remove newline from parameter

* styling demo window

* copy work

* hide demo buttons

* remove index

* remove layouts from docs

* remove merge artifact

* update logo

* merge

* reverted py changes

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-05-15 20:05:10 -07:00
pngwn
0c94b56b0a
Cdn assets (#1265)
* create dediacted cdn bundle with correct import behaviour

* tweak regex

* update publish script

* fix gitignore

* remove repeat incidences of version

* remove logs
2022-05-15 20:43:36 +01:00
pngwn
ed074f9cff
Static forms (#1264)
* refactor dynamic-static detection

* refactor dynamic-static detection
2022-05-15 18:44:15 +01:00
Abubakar Abid
4b6050ad40
layout docs (#1263)
* layout docs

* formatting
2022-05-15 09:52:18 -07:00
Abubakar Abid
e1014f3a11
Fixes to components (#1260)
* added style components

* markdown fix

* components carousel fix

* formatting

* fixes

* catch variable

* formatting
2022-05-15 00:52:30 -07:00
Dawood Khan
e26609e1a3
Issue #1160: Model 3D component not destroyed correctly (#1219)
* model3d fix

* formatting

* model3d fix

* formatting

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-15 00:51:43 -07:00
Radamés Ajna
73e98ddf15
Small fixes for multiple demos compatible with 3.0 (#1257)
* add required param but None

* import torch req, add chunk_length_s

import torch requirement for transformers
enable inference for longer audio files

* fix compononte initialization

* input number is float, force int to multipy string

* no need for Templates, fix class init

* expects array

* add requirements.txt for demo

* update with cleaner syntax

* add sample csv to fraud demo

* adapt to new syntax

* temp fix for Slider arguments

* add dep to requirements

* remove gr.Markdown from Interface init

* fix default value param name

* upgrade deepspeech, download models onstart

* use path resolution consistent with other demos

* remove redundant demo

* add example to interface

* fixed plotting issues

* plots

* deprecated carousel

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-13 22:45:44 -07:00
Abubakar Abid
63d0a28c08
Website Design Changes (#1015)
* adding gallery

* added netlify files

* new navbar design

* header section new design

* used by section new design

* cards section new design

* integrates with section new design

* customer stories section new design

* footer and gradient

* demos section new design

* docs fixes

* docs reorg

* docs reorg

* upgrading to tailwind 3

* tailwind config changes

* navbar new design

* fixing body on all pages

* Updating Guides  (#1012)

* updating getting started

* updated codecov version

* tweaks to gs

* added netlify file

* added netlify file

* website prebuild script

* increased code size

* blocks

* edits

* blocks_hello

* hello world

* guide

* merge main

* added flipper demo

* guide

* guide

* add guides

* tweak to refresh website

* header section new design

* demos section new design

* cards design

* used by section

* tweets section

* footer on all pages

* mobile responsive fixes

* mobile responsive fixes

* https fonts

* completed blocks guide

* unify components

* minor tweaks

* docs headers styling and navigation pane

* parameter code blocks

* styling description and input type

* parameter tables and other styling

* only documenting interactive components when possible

* guides

* embedding not working

* demos not working

* fixing demo code

* fixing demos

* demo fix

* updated demos

* updated demos

* ui update

* updated docstrings

* updated code snippets so they run

* updating docs

* Interface docs

* updating interface

* fixing parameters in interface.py

* required and defaults for interface, and styling

* fixing up interface (#1207)

* fixing up interface

* fixed interface methods

* formatting

* updating interface docs

* updating interface docs

* formatting

* docstring to load from docstrings

* fixed colors

* finalize interface content

* interface examples

* fixed examples

* added some blocks docs

* blocks

* component fixes

* reorganized some files (#1210)

* formatting

* added info for every component

* fixes

* blocks docs

* added blocks demos

* adding combined interfaces

* added parallel, series

* Doc: layout update (#1216)

* doc layout

* home spacing

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

* adding layouts

* layouts done

* added events for components

* formatting and https

* brings back dropdown and other components

* fix header ids

* moved ids and fixed nav

* added parameters for remaining component

* docstring fixes

* landing page demos

* demo window placeholder

* demo nav

* fixed test

* formatting

* demo code

* correctly importing gradio  css/js

* remove keyvalues

* modify launch script to move gradio assetS

* components embedded test

* correct demo name

* hide try demo and embedding

* local devserver changes

* create embedding json with configs

* changes

* fixes

* comment out layout docs

* demo work

* demo fixes

* demo embedding fixes

* typo

* jinja fix

* demo nav fix

* hide demo button

* formatting

* removed whitespace

* remove newline from parameter

* reverting comments

Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-05-13 19:48:46 -07:00
Freddy Boulton
8d5e05cdbe
Add precision to Number, backend only (#1125)
* integer type

* Add integer parameter for Number

* Pass down integer prop to Number instead:

* Format + update test

* Update interpretation neighbors code + docstrings

* Rename prop to type as opposed to integer

* Update error message + test

* Update docstring

* Implement precision

* Add test + format

* Add test for precision=2

* Change round logic for precision=0

* integer type

* Add integer parameter for Number

* Pass down integer prop to Number instead:

* Format + update test

* Rename prop to type as opposed to integer

* Implement precision

* Add test + format

* Address docstrings

* Fix test + rebase
2022-05-13 19:04:11 -07:00
pngwn
97929ee795
ui apis for dalle-mini (#1258)
* ui apis for dalle-mini

* changes
2022-05-13 18:37:55 -07:00
pngwn
3a903d9e80
add global loader for gradio app (#1251)
* add global loader for gradio app

* trigger error state when config fails to load
2022-05-14 00:47:46 +01:00
Victor Muštar
523c3692c4
spacing (#1254) 2022-05-13 18:19:36 +01:00
Ömer Faruk Özdemir
5df69c15bc
Button default name (#1243)
* update-shortcut-syntax

- fix&update gr.component
- create a demo introducing shortcuts within Blocks

* update-shortcut-syntax

- tweaks

* update-shortcut-syntax

- tweaks

* update-shortcut-syntax

- fix formatting

* update-shortcut-syntax

- tweaks
- fix tests

* update-shortcut-syntax

- tweaks
- fix tests

* update-shortcut-syntax

- tweaks
- fix tests

* button-default-name

- add a default name in Button

* button-default-name

- add a default name in Button

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-13 20:18:24 +03:00
Ömer Faruk Özdemir
b8c4d3d6b8
Update run.py (#1253) 2022-05-13 19:10:45 +03:00
pngwn
700c4fc9cf
Layout bugs (#1246)
* fix layout issues

* fix visible kwarg + demo tweak

* fix blocks error wwhen parent is not column or row
2022-05-13 15:47:50 +01:00
Ömer Faruk Özdemir
cb2de94100
Update version.txt (#1244) 2022-05-13 12:29:15 +03:00
Ömer Faruk Özdemir
2de9ee8bfb
update-shortcut-syntax (#1234)
* update-shortcut-syntax

- fix&update gr.component
- create a demo introducing shortcuts within Blocks

* update-shortcut-syntax

- tweaks

* update-shortcut-syntax

- tweaks

* update-shortcut-syntax

- fix formatting

* update-shortcut-syntax

- tweaks
- fix tests

* update-shortcut-syntax

- tweaks
- fix tests

* update-shortcut-syntax

- tweaks
- fix tests
2022-05-13 09:30:11 +03:00
Radamés Ajna
1c3dffd291
Default Label label value (#1239) 2022-05-13 01:23:45 +01:00
pngwn
c00e9f9a85
ensure defaults height match for media inputs (#1236)
* ensure defaults height match for media inputs

* gallery tweak

* cleanup logs
2022-05-12 21:45:45 +01:00
pngwn
19afc1c70e
css tweaks (#1235)
* css tweaks

* backend for equal_height

Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-05-12 21:27:21 +01:00
pngwn
5ba2e06e69
Tweaks (#1230)
* tweaks

* tweaks

* tweak loader dark mode

* gallery tweaks
2022-05-12 19:24:28 +01:00
Radamés Ajna
7da904801f
white space for class concatenation (#1228)
Co-authored-by: pngwn <hello@pngwn.io>
2022-05-12 18:48:28 +01:00
pngwn
2e31988718
tweaks (#1229)
* css tweaks

* tweak

* loader tweaks
2022-05-12 18:47:40 +01:00
Ömer Faruk Özdemir
f6f36123ce
share-hotfix (#1226)
- fix
2022-05-12 17:52:23 +03:00
aliabid94
33ef309451
Allow Custom CSS (#1170)
* changes

* css changes

* updated PyPi version to 2.9b24

* Revert "updated PyPi version to 2.9b24"

This reverts commit 48f678f491.

* Revert "css changes"

This reverts commit d31cd525a4.

* Revert "changes"

This reverts commit fadcb12ffe.

* reverting

* reverting

* changes

* changs

* Revert "changs"

This reverts commit 49d815f6fe.

* Revert "changes"

This reverts commit 481d7c21c4.

* changes

* format

* changes

* format

* test fix

* test fix

* test fix

* fix tests

Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-05-11 21:40:41 -07:00
Abubakar Abid
897d396a00
Hotfixes for course demos (#1222)
* images have change() events

* fixed update issue

* updated version to 2.9b50
2022-05-11 19:30:28 -07:00
aliabid94
c50a2b021a
Sharing fix for assets (#1208)
* changes

* format

* typo

* updated PyPi version to 2.9b33

* Update PKG-INFO

* removed

* formatting

* fixes

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-11 16:27:58 -07:00
Ömer Faruk Özdemir
a88c017f87
async-function-support (#1190)
* async-function-support

- add async function support to Blocks

* async-function-support

- resolve conflicts

* async-function-support

- add error to Interface for async functions

* async-function-support

- add test

* async-function-support

- add test packages

* async-function-support

- add test packages
2022-05-11 23:10:50 +03:00
aliabid94
5fc00b4567
Automatic word-break in highlighted text, combine_adjacent support (#1209)
* changes

* changes

* updated PyPi version to 2.9b26

* changes

* css tweaks (#1213)

* css tweaks

* more tweaks

* fix lint error

Co-authored-by: pngwn <hello@pngwn.io>
2022-05-11 20:09:25 +01:00
pngwn
0c422b75ea
ensure webcam video value is propogated correctly (#1218)
* ensure webcam video value is propogated correctly

* remove logs
2022-05-11 19:19:35 +01:00
pngwn
291e287302
fix placeholder prompt (#1215) 2022-05-11 08:56:22 -07:00
aliabid94
ce47c48ebc
Update component config (#1089)
* first commit

* changes

* restore defualt_value name

* changes

* rm value=

* rm value=

* rm value=

* changes

* changes

* changes

* rename default_val to value

* changes

* changes

* changes

* changes

* format

* changes

* changes

* format

* test fix

Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-05-10 17:11:43 -07:00
pngwn
11740dd329
add copy functionality to json (#1205)
* add copy functionality to json

* fix light mode
2022-05-10 18:02:06 +01:00
pngwn
4ca48284bb
hltext-label (#1204)
* show highttext label + tweaks

* show highttext label + tweaks
2022-05-10 17:01:36 +01:00
Abubakar Abid
871c9713b4
Restored /api/predict/ endpoint for Interfaces (#1199)
* updated PyPi version to 2.9b25

* added /api/predict reverse compatibility

* fixed flagging

* formatting

* fixed networking tests

* added queue false
2022-05-09 18:05:30 -07:00
Victor Muštar
962a254a6b
WIP: Add dark mode support (#1187)
* add gray 950 to tailwind config

* overwrite global css for dark-mode

* add dark-mode to css tokens

* add dark-mode to components

* workbench dark-mode update

* checkbox tweak

* create icon components

* tweaks

* formatting

* formatting

* handle dark mode query params + system settings

* fix css

Co-authored-by: pngwn <hello@pngwn.io>
2022-05-09 17:26:09 -07:00
pngwn
4828e9af3b
wrap tab content in column (#1200) 2022-05-10 00:46:57 +01:00
pngwn
3fe954bd55
Table tweaks (#1195)
* ensure table scrolls

* tweaks

* fix overflow on columns

* layout tweaks
2022-05-09 16:18:13 +01:00
Ömer Faruk Özdemir
9c1cef57f6
update-contributing (#1188)
- update test-reqs
- tweaks
2022-05-09 08:07:12 +03:00
pngwn
94ab75dbec
962 dataframe (#1186)
* refresh dataframe

* add fixed rows + cols to dataframe

* tweaks

* validate dataframe headers + col_count

* cleanup

* cleanup

* make linter happy

* fix test

* fix test again

* fix test definitely this time

* implement file drop support for dataframe

* remove leftover files

* tweaks

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-08 21:55:02 -07:00
pngwn
936631c5b4
1183 component height (#1185)
* fix flex for layouts

* fix row form groups

* cleanup
2022-05-07 16:50:31 +01:00
pngwn
b8fb0b4727
use secondary buttons in interface (#1173)
* use secondary buttons in interface

* fix tests
2022-05-07 01:08:50 +01:00
Abubakar Abid
7095ce7e04
Hotfix for dropdown component (#1172)
* allow markdown to be set dynamically

* moved markdown to output section

* added aliases for component names

* added aliases

* fixed optional

* formatting

* tests

* tests

* tests

* hotfix
2022-05-06 01:27:43 -07:00
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
aliabid94
b7ed8d6646
changes (#1167)
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-05-05 17:50:51 -07:00
pngwn
56222fbe2b
1148 loading status (#1164)
* update loader

* fix for non queued statuses

* remove logs

* Update demo/fake_gan/run.py
2022-05-05 20:05:05 +01:00
Radamés Ajna
a9610a4c9b
enable flex grow for box (#1165) 2022-05-05 19:28:34 +01:00