Commit Graph

4266 Commits

Author SHA1 Message Date
Abubakar Abid
6b1de93ab7
Fixes cached examples (#1850)
* examples fix

* fix bug

* formatting
2022-07-21 12:57:58 -07:00
pngwn
817819d7a1
Fix the types (#1843)
* fix types

* fail CI when typechecking fails

* maybe fix

* more fix

* remove all rferences to theme

* fix login
2022-07-21 19:12:46 +01:00
Freddy Boulton
c579aa195d
Clarify API of custom interpretation function + fix demo (#1842)
* Modify demo + guide on custom interpretation

* Fix typo

* Change interfaces to inputs
2022-07-21 09:42:49 -04: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
Abubakar Abid
493cf7c069
fix (#1837) 2022-07-20 06:39:47 -07:00
Freddy Boulton
3f9ec2c345
Add a guide on how to use apps like functions (#1799)
* Add examples for series and parallel

* Create demo + guide

* More formatting

* Change name of guide

* Fix typo

* Use english to german as example instead

* Expand phrase a bit
2022-07-19 17:43:53 -04:00
Abubakar Abid
106934fe70
version 3.1" (#1832) 2022-07-19 12:10:44 -07:00
aliabid94
597d22e7b0
changes (#1828) 2022-07-19 11:37:07 -07: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
Freddy Boulton
4a1879edaf
Remove usage of deprecated gr.inputs and gr.outputs from website (#1796)
* remove deprecated api from docs

* Remove usage of 'state' shortcut

* Back out state changes

* Back out state changes in creating_a_chatbot

* Link chatbot guide to Variable docs
2022-07-19 11:53:01 -04: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
Freddy Boulton
8aba1c991b
Add info to docs on how to set default values for components (#1788)
* Explicitly set value and add to docs

* Fix wording a bit

* Remove sentence that's not adding much

* Remove extra word

* Delete screenshot
2022-07-19 11:16:56 -04:00
Ali Abdalla
04e6fce7be
copy test dir in dockers (#1827) 2022-07-19 16:13:51 +01:00
Freddy Boulton
74d632eab5
Add python-3.7 tests (#1818)
* Add python-3.7 tests

* Format components

* Use latest images

* Use python instead of python3

* Force reset cache

* Reset cache

* Use Ipython 7 for python 3.7 support

* Install chrome

* Add two text files

* Reset cache

* Use Literal from typing extensions

* Update cache key

* Linting

* Fix requests tests

* Exit if running from wrong python version

* Use one requirements file

* Fix comment

* Fix comment

* Use python 3.7.13

* empty commit

* Delete chrome driver to see if it works

* Test no chrome with new cache

* Remove chrome driver install entirely
2022-07-19 10:48:46 -04:00
Abubakar Abid
4149d00822
integrate() method moved to Blocks (#1776)
* integrating blocks

* formatting

* added tests

* tests

* formatting

* added integrate() to docs

* typing

* typing
2022-07-18 22:47:40 -07: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
nhankiet
8212c462ae
refactor: f-string for tunneling.py (#1819)
* refactor: f-string for tunneling.py

* formatting

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-07-18 16:11:10 -07:00
Freddy Boulton
175bba2117
Add requirements.txt and test_files to source dist (#1817) 2022-07-18 12:03:13 -04:00
Freddy Boulton
4731b1aaba
Mock out requests in TestRequest unit tests (#1794)
* Use mocks to not rely on external api

* Mock all requests

* Fix order of import statements
2022-07-18 10:25:12 -04:00
Freddy Boulton
006347459c
Add color picker to docs (#1768) 2022-07-18 11:55:48 +03:00
Dawood Khan
dc8dd5e1be
File component: list multiple files and allow for download #1446 (#1681)
* fix multiple files

* display multiple files

* support display of multiple files

* fix multiple file output display

* format

* revert pnpm-lock.yaml

* fixes
2022-07-17 06:59:20 -04:00
Abubakar Abid
9b9477abd8
installs typing extensions, releases new package (#1805) 2022-07-16 13:37:10 +01:00
ryan jiang
52eb6ef85e
Fix missing TypedDict on python 3.7 (#1803)
Attempt to import TypedDict from typing_extensions
if running on python 3.7.
Remove unused importlib.metadata.
2022-07-16 13:16:27 +01:00
Abubakar Abid
a3fcf43b9e
version 3.0.25 (#1800) 2022-07-16 04:33:13 +01:00
Asheer Rizvi
d164c52b3c
fix: added transparent background for dark mode. (#1780) 2022-07-15 09:05:45 +01:00
Freddy Boulton
c0faf1d430
Add components to docs (#1785) 2022-07-14 13:08:36 -04: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
4f6d2bd46f
Raise warning when using gr.inputs or gr.outputs (#1790)
* Remove deprecation warnings + add test

* Simplify test

* Fix broken test
2022-07-14 10:28:47 -04:00
Freddy Boulton
a180d41692
Improve formatting of guide (#1789) 2022-07-14 10:27:18 -04:00
pngwn
c323aac274
add example component for color picker (#1779) 2022-07-13 16:35:43 +01:00
Freddy Boulton
260fbb3564
Walk through all python files (#1769) 2022-07-13 11:31:22 -04:00
Freddy Boulton
7b9997861c
Automatic Github release and tag upon pypi upload (#1771)
* Add test

* Workflow dispatch

* Use echo

* Bump version

* re-engineer version name

* Checkout

* Use env syntax

* Revert changes made to test

* Reuse env var
2022-07-13 09:58:11 -04:00
pngwn
8caec11d74
reuse port without waiting to leave TIME-WAIT state (#1765)
* reuse port without waiting to leave TIME-WAIT state

* resuse port only when running gradio cli
2022-07-12 22:05:51 +01:00
pngwn
a18c7ddf04
allow data frame to change number of columns (#1716)
* allow data frame to change number of columns

* allow data frame to change number of columns

* fix types

* fix tests

* handle case when headers are not present

* fix tests

* fix tests finally

* reinstate demo

* address review comments

* tweak test for fix
2022-07-12 11:35:20 +01: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
Freddy Boulton
5bedf615fd
Remove example methods from docs (#1762) 2022-07-11 18:55:11 -04:00
Ali Abdalla
18b92fb17c
add /guides.html (#1753) 2022-07-11 15:41:39 -07:00
Dawood Khan
8947e8f9a4
plotly animations (#1732)
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-07-11 15:40:15 -07:00
Abubakar Abid
2d07df74e6
Fixes multiple people using HuggingFaceDatasetSaver simultaneously (#1744)
* pull before updating repo

* formatting

* fix concurrency issue

* formatting
2022-07-11 15:39:44 -07:00
Freddy Boulton
9918a9540b
Mark tests as flaky and run in separate job (#1735)
* Mark tests as flaky and run in separate job

* Fix typo

* Fix typo

* Add test type to config

* Add quotes

* Rename job to test

* Rename job to test
2022-07-11 13:20:11 -04:00
Freddy Boulton
600722c218
Add examples for series and parallel (#1738)
* Add examples for series and parallel

* Add ML demos for interface and load
2022-07-11 11:21:30 -04:00
Abubakar Abid
2a67fe6ec9
remove tensorflow (#1730) 2022-07-11 15:29:55 +01:00
Freddy Boulton
0ed76aa32b
Add back component info (#1741)
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-07-11 10:15:54 -04:00
Abubakar Abid
06bfb6b218
Updated atomicwrites version (#1742)
* commented out test

* updated atomicwrites

* undo commenting out
2022-07-08 18:11:29 -05:00
Freddy Boulton
54f330af48
Add examples component to docs (#1729)
* Add examples to docs

* Adding guide for examples

* Exclude guides from methods

* PR feedback: typos, different allowed values of examples, docstrings
2022-07-08 11:32:08 -04:00
Ali Abdalla
8455950009
add favicon (#1733) 2022-07-08 17:32:01 +02:00
pngwn
8c4e134094
allow users to update the current tab from python SDK (#1709)
* allow users to update the current tab from python SDK

* rename var

* ensure tabs work when no selected or id kwargs are passed

* update xray config

* update test

* update test again

* Apply suggestions from code review

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

* change false to None

* update test configs

* fix test

* fix test

* update global tab selection

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-07-07 15:37:51 +01:00
Abubakar Abid
c9f522e02b
Allow excluding input components in examples (#1722)
* ignore None examples

* formatting

* added demo

* fixed test
2022-07-06 21:30:51 -07:00