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
pngwn
f4552a2264
ensure falsey values are set to null for images ( #1891 )
...
* ensure falsey values are set to null for images
* cleanup
2022-07-26 14:26:00 -04:00
Freddy Boulton
ef15a92ffa
Make supported events orange ( #1879 )
2022-07-26 11:35:08 -04:00
Freddy Boulton
17bd3c10b5
Add example of using component update method ( #1882 )
...
* Add example of component method update
* Fix wording
* Update gradio/blocks.py
Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>
Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>
2022-07-26 11:19:17 -04:00
Abubakar Abid
0019c12844
added multistep to docs ( #1880 )
2022-07-25 17:00:13 -07:00
Martina Fumanelli
ba65a95e07
Add new component guide ( #1861 )
...
* Add first steps to new component guide
* Add last steps to new component guide
* Fix review minors on new component guide
* Fix first steps to new component guide
* Fix last steps to new component guide
* Fix color_picker demo examples
* Add code snippets to new component guide
* Apply suggestions from code review to new component guide
Co-authored-by: pngwn <hello@pngwn.io>
* Add explanation for different types of component files in new component guide
Co-authored-by: Luigi Cerone <luigicerone96@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
2022-07-25 16:25:50 -04:00
Abubakar Abid
48d175627f
fix string ( #1878 )
2022-07-25 12:59:13 -07:00
Abubakar Abid
c9b8ad80fd
NER Improvements and Guide ( #1869 )
...
* ner accept hf format
* formatting
* added ner guide
* guide fixes
* added unittests for highlighttext
* formatting
2022-07-25 12:16:00 -07:00
Dawood Khan
cd0d520696
Plot Component Integration Test ( #1859 )
...
* plot integration tests
* format
* remove files
2022-07-25 12:48:59 -04:00
Freddy Boulton
1779187692
Add to docs ( #1866 )
2022-07-25 10:20:10 -04:00
Ali Abid
cb2240158a
changes
2022-07-25 08:48:45 +01:00
Ali Abid
21f80d77df
changes
2022-07-25 08:45:13 +01:00
Ali Abid
9b94701f7e
changes
2022-07-25 04:56:10 +01:00
Ali Abid
7a486d77f6
changes
2022-07-25 04:46:11 +01:00
Ali Abid
3a93202fd6
changes
2022-07-25 02:18:42 +01:00
曾逸夫(Zeng Yifu)
5988aa758c
Update components.py ( #1873 )
2022-07-23 17:23:26 -07:00
曾逸夫(Zeng Yifu)
026e6cab55
Create run.py ( #1872 )
2022-07-23 17:22:54 -07:00
Abubakar Abid
4ef87e03d0
Fixes the twitter image preview for Guides ( #1865 )
...
* twitter-meta
* fix
2022-07-22 16:10:40 -07:00
Dawood Khan
babbb7eb41
Add new i18n tokens ( #1751 )
...
* add new i18n tokens
* fixes
* fixes
* format
2022-07-22 21:32:55 +01:00
Abubakar Abid
c638aa9961
Improve flagging guide & add flagging with Blocks ( #1853 )
...
* improving guide
* flagging guide
* remove img
* fixed spaces
* fixes
2022-07-22 12:14:34 -07:00
Freddy Boulton
9360670e23
Add guide on how to add interpretation to a Blocks App ( #1851 )
...
* Add demo code
* Guide rough draft
* Update demo
* Add image classification demo
2022-07-22 12:00:24 -04: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
ccd8e18a17
release 3.1.1 ( #1852 )
v3.1.1
2022-07-21 13:51:46 -07: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
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 )
v3.1.0
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 )
v3.0.26
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