Commit Graph

168 Commits

Author SHA1 Message Date
Ali Abdalla
67a5ba96b1
Fix embedded interfaces on touch screen devices (#2457)
* fix touch device issue

* Update CHANGELOG.md
2022-10-13 20:03:39 -07:00
Dawood Khan
1d18ddae66
Add blur event to textbox and number (#2448)
* add blur event to textbox and number

* changelog

* fixes

* fix blur for number

* reformat
2022-10-12 23:53:05 -04:00
Ali Abdalla
ad2c0790b4
Automatically restart spaces if they're down (#2405)
* check and restart spaces that are down

* if no auth_token, don't break build

* add to changelog

* Update CHANGELOG.md
2022-10-10 18:42:59 -07:00
Ali Abdalla
ca67384ef1
Copy changelog file in website docker (#2384)
* copy changelog file in website docker

* Update CHANGELOG.md
2022-10-03 13:31:58 -07:00
Freddy Boulton
fb7d768013
Automated Release Notes (#2306)
* add changelog file

* Check release notes

* Fix syntax

* Fix path to changelog

* Use changelog

* Add to changelog

* Add comment

* Test comment

* Use txt file for comment body

* Fix for multiline

* rendering on website, changes to changelog

* Don't use txt file

* Fix pr number

* merge

* Split it up into two

* Test fail

* Follow example

* Fix syntax

* Delete quotes

* Add syntax

* Fix names

* Fix syntax

* Modify pr template instead and remove backticks

* Check word

* changelog file fixes

* add 3.4 release notes to changelog

* add navigation

* replace pr tag and @ usernames with links

* remove empty/unused sections from rendering

* fix format of 3.4 notes

* add releases dir and 3.0-2 notes

* render from releases dir

* remove changelog file

* Fix RN check

* Fix path

* upcoming release title

* switch to periods from dashes

* add link to changelog in docs

* Add script modify files

* Modify changelog

* change to release history

* modify gh actions

* Fix syntax

* Skip draft releases during reformatting

* skip template when rendering

* modify upcoming.md to reflect real changes

* replace links with pr tag

* Add automated release notes as a new feature in upcoming

* Update .github/PULL_REQUEST_TEMPLATE.md

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

* eUpdate website/homepage/src/style.css

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

* Misc fixes

* one file at root

* Fix Changelog check

* Modify release notes format script

* Fix format script + release notes

* Add to contributing

* Undo change to release notes from testing script

* Add pr 2373 to rl

* Modify file path

* Update .github/PULL_REQUEST_TEMPLATE.md

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

* Update .github/PULL_REQUEST_TEMPLATE.md

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

Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-10-03 12:36:59 -07:00
Abubakar Abid
0df2c8dd3e
small fixes to image docs (#2372) 2022-09-29 14:07:00 -07:00
Ali Abdalla
8ca7f9c43b
Fix Web Tracker Script (#2308)
* fix if condition

* fix logic

* typo
2022-09-23 13:39:01 -07:00
Freddy Boulton
9f7dd05b72
Start queue when gradio is a sub application (#2319)
* First stab at it

* Use util methos

* lint

* Test

* Fix formatting

* Try out setting predict endpoint from websocket request

* lint

* Fix bug

* Address comments - remove server and port

* Skip in 3.7

* Fix documentation

* Add default 🤦

* docs tweak

* Add back imports that were deleted by wrong linter version

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-09-23 16:01:44 -04:00
Ali Abdalla
5dcc5617ca
Website fixes and refactoring (#2280)
* fix OS specific homepage build

* trailing comma

* refactor all slack notifs to one file

* fix scripts

* fix error notification to return useful errors
2022-09-16 01:23:40 -07:00
Ali Abdalla
597337dcb8
Adding a Playground Tab to the Website (#1860)
* added playground with 12 demos

* change name to recipes, restyle navbar

* add explanatory text to page

* fix demo mapping

* categorize demos, clean up design

* styling

* cateogry naming and emojis

* refactor and add text demos

* add view code button

* remove opening slash in embed

* styling

* add image demos

* adding plot demos

* remove see code button

* removed submodules

* changes

* add audio models

* remove fun section

* remove tests in image semgentation demo repo

* requested changes

* add outbreak_forecast

* fix broken demos

* remove images and models, add new demos

* remove readmes, change to run.py, add description as comment

* move to /demos folder, clean up dict

* add upload_to_spaces script

* fix script, clean repos, and add to docker file

* fix python versioning issue

* env variable

* fix

* env fixes

* spaces instead of tabs

* revert to original networking.py

* fix rate limiting in asr and autocomplete

* change name to demos

* clean up navbar

* move url and description, remove code comments

* add tabs to demos

* remove margins and footer from embedded demo

* font consistency

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-09-15 08:24:10 -07:00
Ofek Lev
f43481c18a
Update package metadata (#2226)
* Update package metadata

* address review
2022-09-14 17:39:46 -04:00
aliabid94
99833d506e
Refactoring Layout: Adding column widths, forms, and more. (#2097)
* changes

* changes

* fix

* change

* change

* changes

* changes

* changes

* changes

* change

* remove test config outputs

* fix wflow

* attempt root user

* attempt root user

* attempt root user

* attempt root user

* changes

* changes

* changes

* changes

* changes

* change

* changes

* change

* Update gradio/layouts.py

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

* changes

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-08-29 19:51:01 -07:00
Freddy Boulton
dc437f4161
Hide new demos by default (#2079) 2022-08-24 14:26:31 -04:00
Freddy Boulton
d97fe6e356
Add data science demos to landing page (#2067)
* Add data science demos to landing page

* Shorten titles
2022-08-24 11:09:50 -04:00
Ali Abdalla
247cf2b5a1
Fix loading status on website (#2027)
* fix loading status, remove website skipping

* fixed formatting

* use generated index on landing page

* fix typing

* actually fix typing

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-08-17 20:10:31 -07:00
Freddy Boulton
c49a4264df
Fix local website build (#1980)
* Fix Dockerfiles

* Use local build

* Copy front-end instead of cdn

* frontend

* Fix build
2022-08-09 10:25:03 -04:00
Ali Abdalla
1ba956af74
remove broken audio demo (#1963) 2022-08-05 20:22:45 -07:00
Ali Abdalla
359a62b255
fix add-copy js (#1959) 2022-08-05 13:15:28 -07:00
Ali Abdalla
d4272b3fdb
Better navigation and search in docs (#1884)
* expand nav bar to include subclasses and methods

* only show sub-links during the section

* add search

* add hotkeys

* override default shortcuts

* styling

* added x button

* broken style block

* refactoring and fixing errors

* esc key shortcut for exit

* svg file instead of b64

* using @apply
2022-08-04 18:23:20 -07:00
Ali Abdalla
f93f4c9cfe
Referencing guides in docstrings and other fixes (#1905)
* tie guides to docs in docstrings

* reference guides in more sections

* fix missing guides in interface and blocks

* fix broken html div

* remove pinned metadata for ordering

* fix annoying comma space in guide tags

* retrigger codecov check

* fix guides bug in flagging

* add controlling layout guide to row, column, and tab
2022-08-04 17:55:09 -07:00
Ali Abdalla
361837753c
Embedding the spaces on the landing page using web components (#1899)
* convert from iframes to web components

* add copy buttons to codeblocks
2022-08-04 17:36:12 -07:00
Ali Abdalla
2903b74160
Add link to Github on nav bar (#1907)
* Add link to Github on nav bar

* fix icon color

* better responsiveness

* fixed responsive issues
2022-08-04 16:55:46 -07:00
Freddy Boulton
ab18e07ff0
Add Events to docs page (#1892)
* Add Events to docs page

* Remove artifacts after rebase

* Add Load to events section as well

* Lint

* Add comments explaining underscore params in events

* Add events for all components

* Set is_class=False

* true -> True

* Specify which corner the rounded param relates to

* make the first sentence of style more descriptive

* Add sentence about only using in gradio blocks

* Add more description to container param
2022-08-03 15:09:08 -04:00
Freddy Boulton
db1ff439a7
Fix docs (#1908)
* Fix docs

* Fix ner demo

* refactoring script templates

* remove linksnav in guides

Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2022-07-29 16:21:05 -04:00
aliabd
35d809c788 fix merge conflicts 2022-07-28 14:28:52 -04:00
Abubakar Abid
5ee2122834
Suggestion: add more info on update() (#1896)
* more on update'

* Move example to docstring

Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2022-07-27 14:46:13 -04:00
Ali Abdalla
96a8bfcb02
Website Refactoring and Styling (#1847)
* remove params from blocks signature

* refactor copy and anchor js

* fix anchor spacing for headers
2022-07-27 14:30:15 -04:00
Ali
e3aa311f8e changes 2022-07-26 23:32:50 -07:00
Ali
1121699cf1 changes 2022-07-26 23:14:00 -07:00
Ali Abid
0e4931fbe2 changes 2022-07-26 15:11:08 -04:00
Freddy Boulton
3f5a9ea19d
Move gr update to helpers (#1890)
* Move update to components helpers

* Move gr.update to Component Helpers Section
2022-07-26 14:27:29 -04:00
Freddy Boulton
ef15a92ffa
Make supported events orange (#1879) 2022-07-26 11:35:08 -04:00
Freddy Boulton
1779187692
Add to docs (#1866) 2022-07-25 10:20:10 -04:00
Ali Abid
21f80d77df changes 2022-07-25 08:45:13 +01:00
Ali Abid
3a93202fd6 changes 2022-07-25 02:18:42 +01:00
Abubakar Abid
4ef87e03d0
Fixes the twitter image preview for Guides (#1865)
* twitter-meta

* fix
2022-07-22 16:10:40 -07:00
Ali Abid
595357e37b changes 2022-07-22 12:56:02 +01:00
Ali Abid
0920710779 change 2022-07-22 12:49:21 +01:00
Abubakar Abid
0bba0b9664
Adding flagging callbacks to the docs (#1834)
* added flagging documentation

* formatting

* added example usage

* formatting

* addressed comments
2022-07-21 13:10:22 -07:00
Ali Abdalla
1ac71597fc
fix underscore bug in demo names (#1840) 2022-07-21 01:54:38 +01:00
Ali Abdalla
c2f2fd6d3c
remove params from blocks signature (#1841) 2022-07-20 19:46:33 +01:00
Ali Abdalla
e7e8b6333c
adding meta tags for all pages (#1830) 2022-07-19 18:08:21 +01:00
Abubakar Abid
31ba09aafa
Some cleanups to the docs page (#1822)
* break execution if website isn't properly built

* small misc changes

* formatting
2022-07-19 08:53:56 -07:00
Ali Abdalla
0dbc8bfcf3
Embedding Components on Docs (#1726)
* add component code to demos docker files

* fix demo_name

* frontend

* fix demo-name in frontend

* remove built with gradio

* remove extra space

* styling

* wait till page loads

* fixing components that require more parameters

* remove print statements

* check for correct run file

* combining component demos to one file

* typo

* fixes

* suffix name

* add is_component

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-07-19 16:20:20 +01:00
Ali Abdalla
04e6fce7be
copy test dir in dockers (#1827) 2022-07-19 16:13:51 +01:00
Ali Abdalla
a44f8f7780
Miscellaneous formatting improvements to website (#1754)
* remove required tag from kwargs

* placeholder for missing docstrings

* fix alignment issues in reload guide

* added documentation

* added doc to column

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-07-18 21:33:21 -07:00
Freddy Boulton
de4458361b
Add gr.update to blocks guide (#1649)
* Add gr.update to guide

* Add to docs page and add step-by-step guide

* Fix documentation tests

* PR reviews

* Use code snippet

* Make section title plural

* Blocks utils in their own section
2022-07-14 11:43:38 -04:00
Freddy Boulton
260fbb3564
Walk through all python files (#1769) 2022-07-13 11:31:22 -04:00
Freddy Boulton
4c26f412a8
Add data format expected for examples to Docs page (#1761)
* Add supported events

* Add example format for missing components

* Change tag to examples-format and use bracket types

* Add more descriptions to examples format

* Don't italicize text
2022-07-11 20:25:10 -04:00
Ali Abdalla
18b92fb17c
add /guides.html (#1753) 2022-07-11 15:41:39 -07:00