Commit Graph

177 Commits

Author SHA1 Message Date
Ali Abdalla
f9e9654225
reload on every commit (#2618) 2022-11-08 13:21:31 +01:00
Ali Abdalla
a80084f3df
Dropdown for seeing docs as latest or main (#2544)
* support docs for pip and git

* upload spaces with gradio wheel

* aws

* upload wheel to aws

* fix error in docker compose

* fix dockerfile

* fix dockerfile

* fix upload demos

* fix upload demos

* styling

* fake change

* remove check_version

* fixes

* fix buttons

* fix navigation on main

* add github action

* build version docs in docker

* fix path and docker errors

* add requests

* fix command

* more docker fixes

* more docker fixes

* no prerelease

* fix restart demos

* undo fake changes, and fix build_version

* fix variable

* fix mistake

* add how to build from main

* new line to requirements

* fix instructions

* Update CHANGELOG.md

* duplicate line in Dockerfile

* switch to github actions, use separate pages

* fix issues in github action

* fix path for github action

* more fixes

* more fixes

* fix github action

* add template

* fix demos template

* update release notes for 3.9

* add -A

* refactor

* keep old version htmls

* unpin gradio version in requirements

* Update website/homepage/src/docs/template.html

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

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-11-08 13:02:05 +01:00
Freddy Boulton
a6e72f7814
Fix some spaces that were not building (#2596)
* Add requirements

* Delete unused demo

* Remove some spaces from download

* explain reasoning
2022-11-02 17:47:53 -04:00
Freddy Boulton
fa08e711fa
Add live dashboard demo (#2573)
* Add live dashboard demo

* Remove markdown syntax

* Dont use global

* Undo change
2022-11-02 12:48:26 -04:00
Abubakar Abid
e360f159a9
Add support for loading Private Spaces using HF Token (#2568)
* pass token & add typing

* updated docstring

* reorg

* improve docs

* test for private space

* changelog

* addressing review

* fix tests

* fix websocket headers
2022-10-31 20:29:13 -07:00
Dawood Khan
83a038ea7a
Load Event Trigger (#2456)
* load event

* fixes

* reformat

* changelog fixes

* rename to uploadable

* formatting

* format

* add cancels

* Update CHANGELOG.md

* Create CHANGELOG.md

* Update CHANGELOG.md

* add batch
2022-10-25 20:58:12 -04:00
Freddy Boulton
943cdd5f35
Add dashboard demo to Demos tab (#2508)
* Add demo

* Changelog

* Undo

* Fix formatting
2022-10-25 11:15:18 -04:00
Ali Abdalla
4ffab3eb6c
Small fix for version check before reuploading demos (#2469)
* fix comparison for version

* Update CHANGELOG.md
2022-10-16 22:29:55 -07:00
Ali Abdalla
bff43bfb65
Upload all demos to spaces (#2281)
* upload all demos in the repo to spaces

* remove upload_demos from recipes, fix error

* load docs and guides demos from spaces

* Remove old demos dir, container, nginx and docker-compose

* update landing page spaces through /demo

* fix run filenames

* skip demos without a run.py file

* fix embedding in guides and docs

* update only on version change

* fix restart script

* fix broken demos

* add component demos

* website tracking pip

* fix embedded components

* fix components

* fix extra slash

* remove footers correctly

* Update CHANGELOG.md

* fix race condition

* add inner_template to gitignore

* set runfile to run.py

* fix time.sleep after testing

* check for prereleases
2022-10-14 14:07:26 -07:00
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