Freddy Boulton
dd90b37c9b
Update Label color from backend ( #2736 )
...
* Implement label improvements
* Fix tests + lint
* Update null case
* Types + changelog
* Add gif to changelog
* Changelog + implement for confidences
* Reduce dupe
* Change API - only use string - no function
* Update API in CHANGELOG
* Update comment
* misc fixes
2022-12-01 14:30:11 -05:00
Abubakar Abid
5c8e7887dc
Add Markdown support in chatbots ( #2731 )
...
* started working on this
* demo
* added markdown support
* notebook
* changelog
* tests
* chatbot
* formatting
2022-11-29 14:26:21 -06:00
Kashif Rasul
d79039beb1
Latex support ( #2696 )
...
* initial use of dollarmath plugin
* add frontend support
* chnages
* changes
* changes
* changes
* changes
* fix
* added latex to kinematics blocks
* changes
* Update CHANGELOG.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* added example to changelog
* remove param
* doc fix
* fixes
* latex noteboox fix
* fix
* changes
Co-authored-by: Ali Abid <aabid94@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-11-29 11:26:17 -08:00
CoffeeVampir3
6c73e79c4e
Fixed a type bug where the validation was "binary" ( #2727 )
...
* Fixed a type bug where the validation was "binary"
In line 2113 the type was validated as either file or binary:
```python
valid_types = ["file", "binary"]
if type not in valid_types:
raise ValueError(
f"Invalid value for parameter `type`: {type}. Please choose from one of: {valid_types}"
)
```
However line 2183 preprocess single file wanted either "file" or "bytes"
```python
elif self.type == "bytes":
```
I have arbitrarily picked binary as the one to match, but now they are both consistent.
* added test, changelog, formatting
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-11-27 20:12:58 -06:00
Dawood Khan
b5f22671a2
Add Upload Button ( #2591 )
...
* add upload button
* upload button
* changelog
* Update CHANGELOG.md
* format
* update file component
* upload button fixes
* label
* remove fileupload changes
* remove file component changes
* restore lock file
* pnpm lock file
* Update CHANGELOG.md
* fixes
* fixes
* more fixes
* fix tests
* fixes
* lockfile
* fix test
* Update gradio/components.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-11-21 13:34:31 -05:00
pngwn
4b57984ead
add password and email textbox types ( #2653 )
...
* add password and email textbox types
* changelog + fix tests
* formatting
* fix tests maybe
* fix tests
* add more tests
* whatever
* weird thing
2022-11-15 22:23:47 +01:00
Abubakar Abid
010827e211
Refactoring to replace unittests with pytests ( #2610 )
...
* replace pytests with unittests
* formatting
* test blocks
* fixed test/blocks
* test components
* working on test components
* test components
* test components almost fixed
* removed unittest
* linting
* fix remaining tests
* lint
* formatting
* changelog
2022-11-08 01:37:55 +01:00
Abubakar Abid
218fb9fa65
Allow gr.Templates
to take in arguments ( #2600 )
...
* template customization
* changelog
* fixes
* import
* added test
* formatting
* explicit parameters
* updated changelog
* fix typing
* fix test
2022-11-04 09:08:17 -07:00
Abubakar Abid
43f5cf5f30
Load example from external Spaces ( #2594 )
...
* started
* loading examples
* saves
* fixes
* formatting
* iocomponent
* added support to other components
* fixed tests
* added video support
* added 1 test
* more changes
* reverted components.py
* remaining components
* formatting
* fixes
* fixes
* tests
* fixed ability to load multiple spaces
2022-11-03 12:35:56 -07:00
Freddy Boulton
f0d1cdf08f
Allow None in as_example for files ( #2588 )
...
* Fix file examples
* Changelog
* Fix changelog version name previous release
2022-11-01 17:36:38 -04:00
Freddy Boulton
dae17bb75a
Fix video mirroring issue ( #2475 )
...
* Fix video flip + test
* CHANGELOG
* Fix python 3.7 mock syntax
* Fix python 3.7 syntax
* Use .stem
* Lint
2022-10-18 11:07:03 -04:00
Abubakar Abid
e935f105e1
Improvements to gr.Dataset
( #2437 )
...
* Adding example components
* formatting
* formatting
2022-10-12 15:48:53 -05:00
Abubakar Abid
70eae89cef
Deprecates Carousel
component ( #2434 )
...
* formatting
* carousel
* Update CHANGELOG.md
2022-10-12 11:37:58 -05:00
phi
a36dcb5975
Resolve Gallery base64 representation issues ( #2265 )
2022-10-07 06:08:30 +01:00
Abubakar Abid
6ee7efa86c
Fix HighlightedText
component ( #2221 )
...
* entities
* tweak
2022-09-10 00:32:06 -07:00
Abubakar Abid
bf1510165d
Support for iterative outputs ( #2189 )
...
* Support for iterative outputs (#2162 ) (#2188 )
* added generator demo
* fixed demo structure
* fixes
* fix failing tests due to refactor
* test components
* adding generators
* fixes
* iterative
* formatting
* add all
* added demo
* demo
* formatting
* fixed frontend
* 3.2.1b release
* removed test queue
* iterative
* formatting
* formatting
* Support for iterative outputs (#2149 )
* added generator demo
* fixed demo structure
* fixes
* fix failing tests due to refactor
* test components
* adding generators
* fixes
* iterative
* formatting
* add all
* added demo
* demo
* formatting
* fixed frontend
* 3.2.1b release
* iterative
* formatting
* formatting
* reverted queue everywhere
* added queue to demos
* added fake diffusion with gif
* add to demos
* more complex counter
* fixes
* image gif
* fixes
* version
* merged
* added support for state
* formatting
* generating animation
* fix
* tests, iterator
* tests
* formatting
* tests for queuing
* version
* generating orange border animation
* testings
* added to documentation
Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-09-08 07:35:31 -07:00
Freddy Boulton
9b4bf627f2
Add orig_name to serialized file repr ( #2145 )
2022-09-06 10:40:59 -04:00
Freddy Boulton
880c63e200
Better processing of example data prior to creating dataset component ( #2128 )
...
* WIP commit
* Add method to components
* Validate image filepath
* Remove unused imports
* Fix validation
* Only display name for model3D
* Remove image validation
* Don't use abstractmethod - add tests
* Remove unused import
* Remove breakpoint
2022-08-31 12:46:43 -07:00
Dawood Khan
4816e3fb12
Fix: Download button does not respect the filepath returned by the function ( #2073 )
...
* download fix
* tweaks
* formatting
* added orig filename
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-08-29 13:39:15 -07:00
Abubakar Abid
4d58ae79b3
Improvements to State
( #2100 )
...
* state
* state fix
* variable -> state
* fix
* added state tests
* formatting
* fix test
* formatting
* fix test
* added tests for bakcward compatibility
* formatting
* config fix
* additional doc
* doc fix
* formatting
2022-08-29 09:53:05 -07:00
Abubakar Abid
adf52d2dad
Label
component now accepts file paths to .json
files (#2083 )
...
* added label support for file paths
* formatting
2022-08-25 15:26:27 -07:00
Abubakar Abid
88e9c19c27
Cleaning up the way data is processed for components ( #1967 )
...
* remove preprocess_example
* removing methods
* added path support for images
* fixes
* video
* formatting
* fixing preprocess
* fixes
* removed from audio
* fixed file
* formatting
* serialization
* foramtting
* formatting
* removed save flag / restore flag
* formatting
* removed flagging
* removed
* load value
* fixing typing
* fixes, typing
* fixes
* file
* handling images
* formatting
* fixed serializing for flagging
* formatting
* json
* temp file
* removed processing
* changed processing
* fixed temp FINALLY
* flagging works
* fix examples test
* formatting
* async examples
* working on mix
* comment out failing test
* fixed interface problem
* fix kitchen sink deprecation warning
* gallery examples
* fixes
* fixes to serialization
* fixing label serializing
* fixed file serialization
* kitchen sink restored
* outbreak forecast updated
* formatting
* formatting and api mode
* fix 1 test :/
* fixing tests
* fixed components tests
* remvoed test files
* formatting
* fixed examples
* fixes
* formatting
* restored certain files
* added encryption
* fixed syntax mistake
* formatting
* fixed 1 test
* clean up interface
* formatting
* fixed route tests
* more fixes
* formatting
* formatting
* fixing pipeline
* format frontend
* format backend
* tweaks
* fix
* fix final test?
* merged
* Sanitize for CSV (#2017 )
* sanitize for csv
* added sanitization logic
* fixed examples
* turn cache off
* fixed example caching with optional inputs
* fixed review problems
* fixed Interface.load
* updating the tests
* updating the tests
* fix
* fixed seriailizing
* testing
* rewrite run prediction
* formatting
* await
* fixes
* formatting
* finally fixed mix
* fixed tests
* formatting
* formatting
* deserialize fix
* formatting
* fixes
* fixes
* fix
* fix tests
* fixes
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2022-08-23 08:31:04 -07:00
Freddy Boulton
75b51808e2
Convert video to playable format if ffmpeg installed ( #2003 )
...
* Add implementation + tests
* Add comments'
* Add warning
* Update docs
* Refactor logic
* 3.7 fix attempt
* Fix 3.7 take 2
* Return original video if the conversion fails
* Use ffmprobe + restrict scope of exception
* Fix for windows
* Fix tests
2022-08-16 13:21:13 -04:00
Ömer Faruk Özdemir
4e218fe00f
async-interface-fix ( #1845 )
...
* async-interface-fix
- support async in interface with workarounds
- make mix.Parallel async and concurrent
* async-interface-fix
- fix & tweaks
* fix interpretation
* async-interface-fix
- fix mix
* async-interface-fix
- fix tests
- tweaks
* async-interface-fix
- take TODO notes on interface related to refactoring
* async-interface-fix
- fix test_mix
* async-interface-fix
- test create_app
* fix series
* fix series
* reformat
* fix interface test
* - fix tests by moving them async
* - bypass the test
* - bypass the test
* - bypass the test
* - bypass the test without closing it
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-08-10 18:29:14 -04:00
Freddy Boulton
393c1f47d5
Fix invalid wav file error when converting from microphone to file ( #1987 )
...
* ;q
:wq
* Add demo
* Add unit test
* Fix test
* Slight refactor
* Lint
* Delete some recordings - import module not method
2022-08-09 16:40:31 -04:00
Freddy Boulton
d7c1a9eec4
Prevent Dataframe post-processing from changing dtypes ( #1979 )
...
* Fix datetime logic python
* Fix docstring
* Add demo
* Update test
2022-08-08 21:28:07 -04:00
Freddy Boulton
1fcff2d710
Allow Users to set random value on sliders on app load ( #1935 )
...
* Allow value=random for slider
* Commit all files
* Remove commented out breakpoint
* Remove unused imports
* Always bypass queue
* Lint
* Add randomize parameter
* Update docstring
* Add load_fn logic
* Add new random logic
* Add kitchen sink random
* Add random kitchen sink
* Fix tests + lint
* Add test all components accept load_fn
* Update docstring
* Address final comments
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-08-05 18:51:03 -04:00
Freddy Boulton
c316cda746
Enable flagging/caching examples for Gallery ( #1938 )
...
* Cache examples for gallery
* Add unit test
* Store all gallery samples under the same sub directory
2022-08-03 17:38:01 -04:00
pngwn
3a58dd1924
default to a single table row ( #1936 )
2022-08-02 22:02:49 -07:00
pngwn
5d03174e44
Always return headers from postprocess ( #1893 )
...
* always return data/headers from dataframe postprocess
* add demo back
* handle case of no new headers but different length list
* fix tests
* change
* change
* added unit tests
* formatting
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-08-01 15:57:31 -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
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
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
pngwn
92889b7b93
1220 mirror webcam ( #1686 )
...
* support webcam mirroring for images
* flip video in preprocessor
* finalise webcam mirroring
* address review comments
* fix formatting
* improve video UI
* fix tests
* fix tests again
2022-07-05 17:30:02 +01:00
Luigi Cerone
8f89270f50
Color picker ( #1695 )
...
* Add new colorpicker component skeleton
* Updated colorpicker skeleton with some functionalities
* - Fix default input color
- Change input style
* Add colorpicker demo
* Add tests and code format
Co-authored-by: mfumanelli <fumanellimartina@gmail.com>
2022-07-05 08:50:17 +03:00
pngwn
609de11ce8
add markdown and html support to dataframe ( #1684 )
...
* add markdown and html support to dataframe
* fix bug, address review comments
* fix test
* fix test
* rename parser instance variable
2022-07-04 10:27:48 +01:00
pngwn
a2b84199d8
detect all types of null default value ( #1685 )
...
* detect all types of null default value
* fix test
* address review comments
2022-07-01 19:23:02 +01:00
Freddy Boulton
d01da6e205
Fix postprocess in Audio ( #1667 )
2022-06-30 09:46:50 -04: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
Dawood Khan
f374eec22d
Fix cache examples for audio, video and image ( #1459 )
...
* image examples fix
* fix image test
* fix cache examples for audio and video
* fix tests
* fix audio test
* fix restore flagged file
* fix tests
* reformat
* tests fixes
* fix test
* reformat
* format
* fix test
* reformat
* fix image test
* renamed video demo
* removed redundant test that may have been causing rate limiting
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-07 15:10:19 -07:00
Abubakar Abid
71bcfdbe92
Callable blocks ( #1437 )
...
* format backend
* blocks callable
* call blocks
* format
* fixed upload
* fix mix
* formatting
* formatting
* formatting
* added serialization/deserialization for video
* formatting
* blocks
* formatting
* fix tests
* formatting
2022-06-02 15:37:25 -07: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
7248f1359b
Hotfixes for plot ( #1355 )
...
* fixed plot and added tests
* 3.0.4
* formatting
* fixed tests
2022-05-22 13:54:04 -07:00
Abubakar Abid
74703898c6
Model3d fix ( #1342 )
...
* fixing postprocessing
* fixed value
* formatting
* fixes
* model3d
* typing
* formatting
* formatting
* components
* fixed defaults
* fixed tests
* formatting
* removed unused import typing error
* fixed up model3d tests
* model3d
* formatting
* fix default value interactive bug
Co-authored-by: Dawood <dawoodkhan82@gmail.com>
2022-05-20 17:53:27 -07:00
aliabid94
13afd4c967
Fix default cleared value ( #1300 )
...
* changes
* changes
* chagnes
* fixed test
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-16 14:43:37 -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
Abubakar Abid
ee52811997
Label hotfixes ( #1281 )
...
* label default
* label test fix
* formatting
2022-05-16 09:44:32 -07:00
aliabid94
569a16998d
fix slider ( #1268 )
2022-05-15 23:55:35 -07:00
Radamés Ajna
73e98ddf15
Small fixes for multiple demos compatible with 3.0 ( #1257 )
...
* add required param but None
* import torch req, add chunk_length_s
import torch requirement for transformers
enable inference for longer audio files
* fix compononte initialization
* input number is float, force int to multipy string
* no need for Templates, fix class init
* expects array
* add requirements.txt for demo
* update with cleaner syntax
* add sample csv to fraud demo
* adapt to new syntax
* temp fix for Slider arguments
* add dep to requirements
* remove gr.Markdown from Interface init
* fix default value param name
* upgrade deepspeech, download models onstart
* use path resolution consistent with other demos
* remove redundant demo
* add example to interface
* fixed plotting issues
* plots
* deprecated carousel
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-13 22:45:44 -07: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