Commit Graph

295 Commits

Author SHA1 Message Date
Dawood Khan
eb42fc3cf8
Kitchen Sink Integration tests (#1588)
* tests

* more tests

* more tests

* remove files
2022-07-01 01:27:47 -04:00
Dawood Khan
7030a2a6cf
Fix example image thumbnail size (#1627)
* fix example image thumbnail size

* format

* remove cache examples

* add classes to token.css

* add small image
2022-07-01 01:27:35 -04:00
pngwn
2c6d62f96c
fix embedding css (#1671) 2022-06-30 15:59:30 +01:00
pngwn
8cfee0b86a
fix overflow (#1661) 2022-06-29 15:19:57 +01:00
pngwn
f1a1e79be4
fix autoscroll (#1570)
* fix autoscroll

* fix formatting

Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-06-21 10:44:30 +01:00
Ian González
64a1bdc3b0
Fix text color for bold and code on dark theme (#1615)
Co-authored-by: Ian Gonzalez <ian.gl@protonmail.com>
2022-06-21 10:37:20 +01:00
pngwn
90eaf20aab
ensure iframe can detect dom changes within shadow root (#1599)
* ensure iframe can detect dom changes within shadow root

* formatting

* correctly reference document body

* switch to unscoping when inside an iframe

* formatting

* version

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-17 20:36:50 -07:00
aliabid94
cb2aa4a625
Hidden fix [hotfix] (#1585)
* fix

* Update Button.svelte
2022-06-16 17:22:09 -07:00
pngwn
8710d3a079
Wrap dataframe (#1571)
* add suport for table cell wrapping

* revert pkginfo change

* revert pkginfo change

* fixed tests

* formatting

* type hint

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-16 17:02:01 -07:00
aliabid94
5e7cf62a47
Fix visible (#1576)
* changes

* format

* change

* Update Blocks.svelte

* Update Render.svelte

* Update tokens.css
2022-06-16 16:49:54 -07:00
aliabid94
4d74206748
changes (#1577) 2022-06-16 11:16:18 -07:00
Ian González
d0b521510d
Manage a null value update on Dataframe (#1580)
Co-authored-by: Ian Gonzalez <ian.gl@protonmail.com>
2022-06-16 10:13:24 +01:00
aliabid94
11b12d9456
Scrolling by default only in Interface, remove progress animation on streaming (#1499)
* changes

* changes

* format

* changes

* add relative to block

* changes

* ensure statustracker component is never rendered by render

Co-authored-by: pngwn <hello@pngwn.io>
2022-06-13 17:11:19 -07:00
aliabid94
caa6a4e687
rework visible, attach to all components (#1511)
* changes

* fix
2022-06-13 16:49:23 -07:00
Abubakar Abid
cf027b68f4
Combines 2 PRs for testing (#1540)
* mount custom css to the web component (#1536)

* set configurable min height prior to loading (#1532)

* set configurable minheight prio to loading

* formatting

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

* release beta version for testing (#1541)

Co-authored-by: pngwn <hello@pngwn.io>
2022-06-10 20:11:40 -07:00
aliabid94
00e4b1436f
Allow styling height for Image and Video, also dynamic logic change (#1503)
* changes

* changes

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-10 19:56:07 -07:00
aliabid94
4564a8136c
Show error on error (#1500)
* changes

* changes

* formatting

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-10 12:55:30 -07:00
aliabid94
c6ab13210e
changes (#1514) 2022-06-09 16:53:28 -07:00
aliabid94
f3e070541e
Fix Login (#1501)
* changes

* format
2022-06-09 16:15:08 -07:00
pngwn
cc6aeb6d72
distribute gradio as a web component (#1444)
* distribute gradio as a web component

* fix layout + loader + dark mode in embedded wc

* fix lockfile issue

* formatting

* prevent loader conflicts

* fix formatting
2022-06-07 11:11:44 -07:00
Ali Abdalla
42cee33dcf
API Docs with support for Blocks (#1397)
* backend

* updated PyPi version to 3.0.10

* updated PyPi version to 3.0.9b10

* fixes

* updated PyPi version to 3.0.9b11

* changes

* changes

* changes git push

* changes

* undo

* fixes

Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-06-06 09:10:42 -07:00
Chih-Yu Yeh
f6414d3c33
fix issue#1353 (#1457)
* fix issue#1353

* change logic

* changes

Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-06-06 07:58:19 -07:00
aliabid94
188d8bc65d
Allow async js fn (#1439)
* updated PyPi version to 3.0.10

* updated PyPi version to 3.0.9b10

* fixes

* updated PyPi version to 3.0.9b11

* fix update sript

* changes
2022-06-01 11:34:07 -07:00
pngwn
279df2322d
fix button styling (#1447) 2022-06-01 11:33:53 -07:00
pngwn
068132836c
Style updates (#1350)
* clean up python style api

* allow Box to be styled

* changes

* update style args and add md doc detailing

* cleanup

* add deprecation warnings

* fix

* formatting
2022-06-01 18:02:18 +01:00
Dawood Khan
7b9cba0e9e
File Cached Examples Fix (#1334)
* fix file cache examples issue

* format

* fix for tests

* format fix

* fix multiple files input

* format

* format

* fix preprocess example

* fix multiple file output

* remove single_file const

* fix tests + format

* renamed demo

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-01 12:23:12 -04:00
Abubakar Abid
576bd227fc
Fixes gr.Interface.load() (#1436)
* format backend

* changes

Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-06-01 08:35:33 +03:00
pngwn
7b4ad81d59
update plot ui (#1405) 2022-05-30 15:21:36 +01:00
aliabid94
40ed4df9ad
fix examples [hotfix] (#1411)
* fix

* changes

* changes
2022-05-28 21:56:05 -07:00
Dawood Khan
2eaf61cf76
Integration tests (#1182)
* some integration tests

* more integration tests

* more tests

* update integration tests

* format
2022-05-27 04:53:50 -04:00
pngwn
55db5c187a
add cdn entrypoint (#1387)
* add cdn entrypoint

* cleanup
2022-05-27 02:17:13 +01:00
aliabid94
d35e06abe7
Minor cosmetic changes (#1383)
* changes

* pass tests

* change to source sans

* formatting

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-26 14:33:28 -07:00
aliabid94
3a7f9a3b1a
Allow users to return dicts for values (#1373)
* changes

* changes

* add visible flag
2022-05-24 23:30:24 -07:00
Victor Muštar
0ab254b82f
Mute examples videos (#1363)
* mute examples videos

* set attrs onmount for safari

Co-authored-by: Radames Ajna <radamajna@gmail.com>
2022-05-24 13:08:08 -07:00
Ömer Faruk Özdemir
e4b5d4c1b7
Reload mode on (#1278)
* reload-mode

-trys save

* reload-mode

- create minimal reloading example

* reload-mode

- create minimal reloading examples

* reload-mode

- amend

* reload-mode

- add user_mode

* reload-mode

- tweaks

* updated PyPi version to 3.0.3

* reloading

* reload

* formatting

* flexibility in naming

* added dev_mode flag to config

* added app id

* frontend changes

* changed debug level to warning to make less verbose

* Update ui/packages/app/src/main.ts

* fixed tests

* formatting

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-05-23 14:38:53 -07:00
pngwn
494c09a7be
Small bugs (#1324)
* initialise gallery images to None, fix icon

* dispatch submit event when pressing return on 1 line textbox

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

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

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-18 15:21:17 -07:00
pngwn
096f4b5b56
add label to data frame (#1328) 2022-05-18 15:14:12 -07:00
pngwn
e535cd8a35
tweak bg colour (#1307) 2022-05-17 14:58:25 +01:00
aliabid94
e828a68c98
Website fixes (#1302)
* changes

* changes
2022-05-17 06:26:14 -07:00
pngwn
79895e0e9d
ensure table works on mobile (#1277)
* ensure tables works on mobile

* remove logs

* formatting
2022-05-16 11:55:24 -07:00
aliabid94
2a93225952
Create Streamables (#1279)
* changes

* fix

* fix for vars too

* changes

* fix tests

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-16 11:51:09 -07:00
pngwn
a62879b8fe
Dm (#1284)
* fix

* more tweaks

* fix import
2022-05-16 19:34:08 +01:00
pngwn
e49cf6f72d
only affect links within the document (#1282) 2022-05-16 18:29:19 +01:00
pngwn
8b1a50775a
General tweaks (#1276)
* tweaks + radio fix

* remove unused prop

* revert demo

* ensure table renders empty strings and zeroes

* remove logs

* remove bundle stats
2022-05-16 18:22:09 +01:00
aliabid94
a4aa6a2cb9
Add embedded demos to website (#1270)
* 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

* merge dockerfile

* chagnes

* changes

* changes

* changes

* styling demo window

* revert most things

* whoops

* chagnes

* changes

* changes

* changes

* changes

* changes

* changes

* format

* changes

* fixed Dataset docstring

* fix component signature and add required

* adding string shortcuts

* fix small issues parameter docstringss

* string shortcuts

* fixed gallery and label values

* added for remaining parameters

* formatting

* extended embedded components

* typo

* remove capitalization from embeddings

* try examples button

* added demos for blocks and combining interfaces

* demos styling

* homepage update (#1275)

* spacing

* remove console.log

* demo window fixes

* new spaces

* shorten codeblock width

* fix plot

* better string shortcuts

* add embedding config for json

* remove console log

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
2022-05-16 11:45:38 -04: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
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
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
pngwn
97929ee795
ui apis for dalle-mini (#1258)
* ui apis for dalle-mini

* changes
2022-05-13 18:37:55 -07:00