wfng92
f92109621a
Keep pnginfo metadata for gallery ( #3150 )
...
* Keep pnginfo metadata for gallery
* add test to pil_to_file for keeping image metadata
* Update CHANGELOG.md
* formatting
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-09 10:20:50 -08:00
Abubakar Abid
85e8f3070c
Sagemaker check ( #3137 )
...
* kaggle check
* add tests
* sagemaker
* changelog
* type check
* update test requirements
2023-02-07 08:25:24 -08:00
Abubakar Abid
f37d17089d
Fixes components when loading private spaces ( #3068 )
...
* file routes
* adding access token
* add reverse proxy
* adding access token
* context
* rewrite
* frontend
* formatting
* changelog
* formatting
* fix tests
* fixed image issue
* fix frontend
* os removal
* Update test_external.py
* fixes to normalise
* version
* fixes so that functions work
* lint
* formatting
2023-02-07 07:55:51 -08:00
Freddy Boulton
9beb15b3ec
Turn Submit Button into Cancel Button for Interfaces with generators ( #3124 )
...
* Switch back from stop button
* Add unit test
* CHANGELOG
* Fix test
* lint
* Reset UI after exception
2023-02-06 14:30:21 -05:00
Max Audron
84afc51484
add argument to allow serving files from additional directories ( #3075 )
...
* add argument to allow serving files from additional directories
* tweaks
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-05 18:04:26 -08:00
Abubakar Abid
a0248f26dd
Example caching now works with components without a label attribute (e.g. Column) ( #3123 )
...
* add non io component support for example caching
* chaneglog
2023-02-03 16:46:56 -08:00
Freddy Boulton
9b15e9a1f8
Update docs to explain how reload mode can be used with queue/auth ( #3089 )
...
* Add note to guide
* Add more explanation
* Undo changes
* CHANGELOG
* Make work with queue + fix docs
* Changelog fix
* Add unit test
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-02-02 15:39:45 -05:00
Freddy Boulton
42ad0cbe45
Enable gradio to work on kaggle ( #3101 )
...
* enable share kaggle
* Add test
* CHANGELOG
* Add image to changelog
2023-02-01 11:53:53 -05:00
Freddy Boulton
faffddf8c7
Fix image rotation on iOS ( #3091 )
...
* rotate image based on exif tag
* rotate on backend
* CHANGELOG
* Only rotate if needed
* Add image comparison to changelog
---------
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
2023-01-31 13:18:23 -05:00
Freddy Boulton
9ccfef0542
Fix auth on spaces ( #3049 )
...
* Add route alias
* on button click
* Fix config
* Do not redirect
* Use login to check if other route necessary
* Add message about HF spaces
* CHANGELOG
* Add gif to changelog
2023-01-30 11:11:32 -05:00
Abubakar Abid
df3a50b3cc
Running requests in background ( #3054 )
...
* formatting
* revert dmeo
* changelog
* fix tests
2023-01-25 18:01:39 +05:00
Freddy Boulton
18cc8a385c
Check file_types is a list ( #3048 )
...
* Add assertion for file_types
* Changelog
* Add logic to UploadButton
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-25 04:32:22 -05:00
Freddy Boulton
eac49196a7
Properly Restart Queue After App is Closed ( #3022 )
...
* Debug code
* Fix bug + add test
* CHANGELOG
* Update test
* Revert change
* Use 1 second sleep
Co-authored-by: aliabid94 <aabid94@gmail.com>
2023-01-24 10:52:09 -05:00
Abubakar Abid
61d2f15562
Fix to HuggingFaceDatasetSaver ( #3025 )
...
* hf flag fix
* fixed huggingface hub params
* formatting
* fix flagging tests
* add a try / catch
2023-01-20 20:15:45 -08:00
Abubakar Abid
862a8c7c71
Added symlink support ( #3037 )
...
* added symlink support
* changelog
* lint
* fix tests
* tests
2023-01-20 19:52:42 -08:00
Freddy Boulton
32af45cd0f
Add conversational and text-to-image pipelines to Interface.load ( #3011 )
...
* Add conversational and text-to-image
* remove redundant state
* CHANGELOG
* Add media to changelog
* Lint
* Format code
* Fix typos in CHANGELOG
2023-01-18 14:49:03 -05:00
Abubakar Abid
f7f5398e4c
Fixed old files route ( #3010 )
...
* fixed files route
* changelog
* formatting
2023-01-18 10:13:29 -08:00
Freddy Boulton
cab8d888dc
Fix validate url ( #2957 )
...
* Fix validate url
* Add unit test + fix impl
* Fix CHANGELOG
* Use head instead of get to check url
* Add head route for files
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-18 12:47:57 -05:00
Dawood Khan
1518f93c85
Fix issue where chatbot markdown support breaks older demos (removes <p> and /n) ( #3006 )
...
* fix
* chatbot test fix
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-17 22:46:42 +01:00
Abubakar Abid
055aab6e05
Fixing deserialize when loading external Spaces ( #3004 )
...
* deserialize
* changelog
2023-01-17 13:05:15 -08:00
pngwn
d6fbc32ed1
Theme base 2 ( #2840 )
...
* add theme + theme atoms
* audio
* buttons
* chatbot
* forms
* start file
* complete file
* fixup workbench
* gallery
* highlighted text
* label
* json
* upload
* 3d model
* atoms
* chart
* md + html
* image
* plot + build
* table
* tabs
* tooltip
* upload
* tweaks
* tweaks + more tooling
* tweaks to padding/ lineheight
* app components _ start api docs
* format, more api docs
* finish api docs
* interpretation
* todos
* tweaks + cleanup
* tweaks + cleanup
* revert range tweaks
* fix notebooks
* fix test
* remove tw
* cleanup + login
* fix gitignore
* fix types
* run css script
* fix progress + tweaks
* update demos
* add css build to static check workflow
* tweak ci
* fix tests
* tweak markdown
* tweak chatbot + file
* fix tabs
* tweak tabs
* cleanup
* fix api docs
* fix example gallery
* add gradient to toast
* fix min height for interfaces
* revert tab changes
* update notebooks
* fix generating status animation
* fix weird table scrollbar that only appears on freddy's computer
* format
* fix dataset in gallery mode
* cleanup
* fix notebooks
* tweaks
* fix notebooks
* change
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-01-17 12:47:40 -08:00
Freddy Boulton
2bbec4b41e
Fix file serialization so that output is json serializable ( #2999 )
...
* Add comments
* CHANGELOG
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-17 11:29:27 -08:00
Freddy Boulton
7ebe79a987
Fix interpretation events ( #2993 )
...
* Fix interpretation + test
* Changelog
* Empty
* Fix test
* Handle None case
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* lint
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-16 12:46:00 -05:00
Freddy Boulton
5c32ba31ba
Fix reload mode ( #2992 )
...
* Fix reload mode
* Add unit test
* Add to changelog
2023-01-16 12:17:41 -05:00
Dawood Khan
537fa11b78
Fixes file upload fails for files with zero size ( #2923 )
...
* fix file zero size erroe
* changelog
* fixes
* add a test
* formatting
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-15 20:38:28 -08:00
aliabid94
34cf1e612b
Support media output, "/file=" endpoint on iOS ( #2961 )
...
* changes
* changes
* change
* changes
* changes
* change
* changes
* change
* changes
* changes
* changes
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-15 19:54:09 -08:00
Freddy Boulton
06b973bda4
Fix Loading Examples ( #2955 )
...
* Fix
* CHANGELOG
* Unit test
* Fix
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-15 18:51:05 -08:00
Anton Lozhkov
981cd1ea68
Fix the path check for long CSS strings in Blocks ( #2953 )
...
* Fix the path check for long CSS strings in Blocks
* Add a test
* Update changelog
2023-01-08 06:31:21 -05:00
Freddy Boulton
1dcacdb6c9
Fix bug in mount_gradio_app with queue enabled ( #2939 )
...
* Move to __exit__
* Add test
* Add unit test
* Add changelog
* fix test
* Fix test
* Fix Release notes
2023-01-08 05:42:57 -05:00
Dawood Khan
9fff1e0fe8
Enable multi-select on gradio.Dropdown ( #2871 )
...
* multiselect dropdown
* fixes
* more fixes
* changes
* changelog
* formatting
* format notebooks
* type fixes
* notebok fix
* remove console log
* notebook fix
* type fix
* Revert "format notebooks"
This reverts commit fb8762ecff
.
* notebook fix
* bug fixes
* Update CHANGELOG.md
* Excluding untracked files from demo notebook check action (#2897 )
* excluding untracked files from wget
* changelog
* fix setting default values
* typeability and arrow key support
* python types
* reformat
* another type check
* minor fixes + interactive false fix
* change remove token styling
* separate multiselect into separate file
* style fixes
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* some more style fixes
* small bug fix
* addressed pr comments
* fix active color highlighting
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-01-04 19:13:46 -05:00
Freddy Boulton
92797fd486
Fix File Downloading ( #2926 )
...
* Fix + test
* Changelog
2023-01-04 12:18:04 -05:00
Abubakar Abid
38c64a5b0e
More typing! ( #2906 )
...
* started pathlib
* blocks.py
* more changes
* fixes
* typing
* formatting
* typing
* renaming files
* changelog
* script
* changelog
* lint
* routes
* renamed
* state
* formatting
* state
* type check script
* remove strictness
* switched to pyright
* switched to pyright
* fixed flaky tests
* fixed test xray
* fixed load test
* fixed blocks tests
* formatting
* fixed components test
* uncomment tests
* fixed interpretation tests
* formatting
* last tests hopefully
* argh lint
* component
* fixed based on review
* refactor
* components.py t yping
* components.py
* formatting
* lint script
* merge
* merge
* lint
* pathlib
* lint
* events too
* lint script
* fixing tests
* lint
* examples
* serializing
* more files
* formatting
* flagging.py
* added to lint script
* fixed tab
* interface.py
* attempt fix
* refactoring interface
* interface refactor
* formatting
* fix for live interfaces
* lint
* mix
* mix
* serialize fix
* formatting
* all demos queue
* networking
* added type check
* processing_utils
* more typing
* formatting
* type ignored processing utils
* s
* tunneling
* add interpretation
* more typing
* queuing
* serializing
* undo interpretation
* routes.py
* formatting
* component type
* addressed review
* lint
* typing
* documentation
* fixing pydantic
* routes
* fixed typing in routes
* fix tests
2023-01-03 13:13:11 -05:00
aliabid94
58b1a074ba
Add Progress Bar component ( #2750 )
...
* changes
* version
* changes
* fixes
* changes
* changes
* changes
* changes
* chagnes
* chagnes
* fix
* changes
* changes
* changes
* change
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* version update
* Commit from GitHub Actions (Upload Python Package)
* changes
* changes
* changes
* fix
* changes
* changes
* changes
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* changes
* changes
* changes
* changes
* change
* changes
* Update guides/01_getting_started/02_key_features.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/helpers.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/routes.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/helpers.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/01_getting_started/02_key_features.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/01_getting_started/02_key_features.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update demo/progress_simple/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update demo/progress_simple/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update demo/progress_simple/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update website/homepage/src/docs/template.html
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update website/homepage/src/docs/template.html
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* change
* changes
* changes
* changes
* change
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: GH ACTIONS <aliabid94@users.noreply.github.com>
2022-12-30 11:45:54 -08:00
Abubakar Abid
d46f0cd1ed
Refactored interface.py
( #2902 )
...
* started pathlib
* blocks.py
* more changes
* fixes
* typing
* formatting
* typing
* renaming files
* changelog
* script
* changelog
* lint
* routes
* renamed
* state
* formatting
* state
* type check script
* remove strictness
* switched to pyright
* switched to pyright
* fixed flaky tests
* fixed test xray
* fixed load test
* fixed blocks tests
* formatting
* fixed components test
* uncomment tests
* fixed interpretation tests
* formatting
* last tests hopefully
* argh lint
* component
* fixed based on review
* refactor
* components.py t yping
* components.py
* formatting
* lint script
* merge
* merge
* lint
* pathlib
* lint
* events too
* lint script
* fixing tests
* lint
* examples
* serializing
* more files
* formatting
* flagging.py
* added to lint script
* fixed tab
* interface.py
* attempt fix
* refactoring interface
* interface refactor
* formatting
* fix for live interfaces
* lint
* serialize fix
* formatting
* all demos queue
* added type check
* formatting
2022-12-29 15:30:44 -05:00
Abubakar Abid
09ebf00332
Timeseries hotfix ( #2905 )
...
* time series hotfix
* formatting
* formatting
2022-12-29 14:21:29 -05:00
Abubakar Abid
a3d0fcfab1
Added typing to more files ( #2896 )
...
* started pathlib
* blocks.py
* more changes
* fixes
* typing
* formatting
* typing
* renaming files
* changelog
* script
* changelog
* lint
* routes
* renamed
* state
* formatting
* state
* type check script
* remove strictness
* switched to pyright
* switched to pyright
* fixed flaky tests
* fixed test xray
* fixed load test
* fixed blocks tests
* formatting
* fixed components test
* uncomment tests
* fixed interpretation tests
* formatting
* last tests hopefully
* argh lint
* component
* fixed based on review
* refactor
* components.py t yping
* components.py
* formatting
* lint script
* merge
* merge
* lint
* pathlib
* lint
* events too
* lint script
* fixing tests
* lint
2022-12-29 12:33:12 -05:00
Abubakar Abid
de0c41c1c4
Enforcing typing in blocks.py
and context.py
( #2887 )
...
* started pathlib
* blocks.py
* more changes
* fixes
* typing
* formatting
* typing
* renaming files
* changelog
* script
* changelog
* lint
* routes
* renamed
* state
* formatting
* state
* type check script
* remove strictness
* switched to pyright
* switched to pyright
* fixed flaky tests
* fixed test xray
* fixed load test
* fixed blocks tests
* formatting
* fixed components test
* uncomment tests
* fixed interpretation tests
* formatting
* last tests hopefully
* argh lint
* component
* fixed based on review
* refactor
2022-12-27 16:54:47 -05:00
Jay Smith
571e5eb66c
Correct message when is_generating hits 500 code ( #2889 )
2022-12-27 10:31:27 -05:00
Abubakar Abid
88c9206159
Hotfix for tests related to #2721 ( #2886 )
...
* fixes
* formatting
2022-12-26 14:53:07 -05:00
Freddy Boulton
1765cf68ae
Make it so that default_enabled has no impact on queue behavior ( #2876 )
...
* Deprecate default_enabled + test
* CHANGELOG
* Remove docstring for deprecated param
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-21 16:11:20 -05:00
Freddy Boulton
943b4ed77a
Wrap value in list for CheckBoxGroup. ( #2866 )
...
* Value error
* Add test
* Wrap value
* CHANGELOG
* Re-enable Example pagination on the front-end (#2861 )
* Pass samples_per_page to examples
* Add to changelog
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Value error
* Add test
* Wrap value
* CHANGELOG
* Update docstrings
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-20 18:02:18 -05:00
Freddy Boulton
ed2781d8d7
Re-enable Example pagination on the front-end ( #2861 )
...
* Pass samples_per_page to examples
* Add to changelog
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-20 17:10:23 -05:00
Abubakar Abid
612ab0539e
Fixed loading Spaces that have components with default values ( #2855 )
...
* fixed load space default values
* changelog
* formatting
* tweak
* fix tests
2022-12-20 15:38:02 -06:00
Abubakar Abid
0879f0a296
Fixes flagging when allow_flagging
is set to "auto" ( #2695 )
...
* flagging fix
* formatting
* changelog
* auto
* auto
2022-12-20 15:27:14 -06:00
Freddy Boulton
96297c0bad
LinePlot ( #2807 )
...
* First draft
* Fix tests
* Fix pdb
* Figure out stroke dash + legend position
* Add legend position
* Add back gif
* Add demo + update demo
* Format notebooks
* Changelog
* More changelog
* Undo notebooks
* Reword
* Set lower bound for altair
* Modify docstrings
* Add LinePlot image to changelog
2022-12-20 11:13:51 -05:00
Abubakar Abid
4e7317036d
Adds an every
parameter to every component ( #2806 )
...
* bigquery draft
* updated guide
* orjson fix
* formatting
* changelog
* attach every
* removed queue=False
* added test
* formatting
* adding event
* wip
* fix implementation
* remove prints
* formatting
* lint
* formatting
* reset guide
* changelog
* fix tests
* added test
* changelog
* renamed
* renamed
* lint
2022-12-15 16:07:44 -06:00
Abubakar Abid
20057aa946
Create fewer temp files and make them consistently-named ( #2758 )
...
* tmp files
* components
* changes
* temp_file_sets
* TempFileManager class
* added file manager
* internal functions
* tests
* formatting
* changes
* video tests
* added tests for File
* cheetah image
* formatting
* tests for upload button
* temp files
* formatting
* changelog
* fixed audio
* tmp files
* tmp files
* gallery
* deprecated type=file
* fixing tests
* patch os.path.exists
* fixed test_video_postprocess_converts_to_playable_format
* fixed tests
* changelog
* fix tests
* formatting
* added a download_if_needed
* formatting
* fixed download
* fixed gallery demo
* fix tests
* version
* fix for mac
* consolidate
2022-12-15 14:37:09 -06:00
Dawood Khan
714ab2cc09
Audio waveform ( #2706 )
...
* utils func
* changes
* changes
* changes
* notebook
* fix
* changes
* change
* changes
* changes
* notebook fix
* changes
* changes
* changes
* change
* fix
* revert backend changes, gr.make_waveform
* notebook
* Update CHANGELOG.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* format fix
* changes
* changes
* revert pnpm
* change
* change
* changes
* changes
* changes
Co-authored-by: Ali Abid <aabid94@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-15 12:35:22 -06:00
Abubakar Abid
074bf909ee
Better documentation of queuing parameters ( #2825 )
...
* better documentation of queuing parameters
* changelog
* added to guide
* deprecated param
* python 3.7 compat
2022-12-15 10:41:09 -06:00
Abubakar Abid
53005ab88a
Switch from SSH tunneling to FRP ( #2509 )
...
* FRP Poc (#2396 )
* FRP Poc
* Gracefully handle exceptions in thread tunneling
* comments
* Fix share error message when files are built locally (#2502 )
* fix share error message
* changelog
* formatting
* tunneling rename
* version
* formatting
* remove test
* changelog
* version
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Wauplin <lucainp@gmail.com>
* 2509
* updated url to testing.gradiodash.com
* gradiotesting
* format, version
* gradio.live
* temp fix for https
* remove unnecessary tests
* version
* updated tunnel logic
* formatting and tests
* load testing
* changes
* Make private method + generate privilege key (#2519 )
* rm load test
* frp
* formatting
* Update run.py
* Update run.py
* updated message
* share=True
* [DO NOT MERGE] Add pymux for FRP (#2747 )
* Add pymux for FRP
* Cleaning pyamux
* Cleaning pyamux + make it work
* Forgot the thread
* Reformat
* some logs to be removed afterwards
* added share to hello world
* Transform into object
* I guess it's cleaner now
* Handle 404 + Transform to object
* Fix params names
* Add debug
* windows fix
Co-authored-by: Wauplin <lucainp@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* removed share=True
* formatting
* hello world notebook
* version
* fixes
* formatting
* testing tunneling exists
* tests
* formatting
* lint
* Remove asyncio + kill proc on exit
* version
* version
* update changelog
* explicit message about reporting
Co-authored-by: Adrien <adrien@xcid.fr>
Co-authored-by: Wauplin <lucainp@gmail.com>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-12-14 08:10:45 -06:00
Abubakar Abid
5182460886
Patching test_get_ip
attempt 2 ( #2810 )
...
* ip-patch-2
* formatting
* patch 2
2022-12-13 20:30:47 -06:00
Abubakar Abid
b492212c02
Patch ip test ( #2808 )
...
* patch ip test
* changelog
2022-12-13 17:15:14 -06:00
Abubakar Abid
c126e62970
Add support for numpy array and other types to gr.Dataframe()
initial value ( #2804 )
...
* bigquery draft
* updated guide
* orjson fix
* formatting
* changelog
* rm guide
2022-12-13 17:01:27 -06:00
Abubakar Abid
db48356832
Revert #2760 ( #2799 )
...
* changelog
* changelog
2022-12-12 13:10:39 -05:00
Freddy Boulton
3672e17256
Terminate generating events early if the session is closed ( #2783 )
...
* Return early if no awake events
* Add to changelog
* Add test
* Clarify when events are cancelled in the docs
2022-12-12 09:15:50 -05:00
Alexandre Payot
c70f8fedd4
Merge highlighted text when neighbors ( #2767 )
...
* Merge highlighted text when neighbors
In the previous implementation dictionary inputs were not correctly
processed meaning: a None token was added on the empty string between
each entity. That None entry is removed letting neighbouring entities
be merged.
* Add changelog
* Add test
* Improve API compatibility and fix test
* Fix lint
* Strip out the empty entries on merge
* Test against the right reference
* fix changelog
* Apply suggestions from code review
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Remove additonal merge adjacent
* Fix lint
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-09 17:42:44 -08:00
Freddy Boulton
f60053d85f
gr.ScatterPlot component ( #2764 )
...
* Try clean install
* Resolve peer dependencies?
* CHANGELOG
* Add outbreak_forcast notebook
* generate again
* CHANGELOG
* Add image to changelog
* Color palette
* Fix colors + legend
* Tooltip
* Add axis titles
* Clean up code a bit + quant scales
* Add code
* Add size, shape + rename legend title
* Fix demo
* Add update + demo
* Handle darkmode better
* Try new font
* Use sans-serif
* Add caption
* Changelog + tests
* More tests
* Address comments
* Make caption fontsize smaller and enable interactivity
* Add docstrings + add height + width
* Use normal font weight
* Make last values keyword only
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix typo
* Accept value as fn
* reword changelog a bit
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-09 10:14:07 -05:00
Freddy Boulton
2a773d56ac
Fix preprocessing for audio input pipelines in external.py ( #2779 )
...
* Fix bug in loading audio
* Changelog
* Add test
* Fail if error doesn't come from rate limit
* lint
* update model examples
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-09 09:12:19 -05:00
Ajinkya K Mulay
76c4a553f5
Add backend validation for Slider
, Radio
, and CheckboxGroup
( #2760 )
...
* Add backend validation for form limitations [slider, radio, checkboxgroup]
Adds a preprocessing step for the slider, radio, and checkboxgroup components, as demonstrated in the issue "No backend validation for form limitations #1071."
* Update gradio/components.py
* Update gradio/components.py
* Update gradio/components.py
* fixes to logic
* updated tests
* formatting
* changelog fix
* revert test requirements
* delete artifact
* sanitizing docstrings
* comments
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-08 20:04:42 -08:00
Freddy Boulton
bed288a509
Add support for altair plots ( #2741 )
...
* Try clean install
* Resolve peer dependencies?
* frozen lockfile install
* Explicitly use version 16
* Add env
* Add altair demo
* Add unit test
* CHANGELOG
* Add image to changelog
* Add outbreak_forcast notebook
* Try again
* generate again
* Update ui/packages/plot/src/Plot.svelte
Co-authored-by: aliabid94 <aabid94@gmail.com>
* Fix title
Co-authored-by: aliabid94 <aabid94@gmail.com>
2022-12-02 14:53:42 -03:00
Abubakar Abid
588b0f7b2d
Show image thumbnails when example directory is provided ( #2745 )
...
* examples
* fixes
* formatting, changelog
* fix tests
* update documentation
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2022-12-01 13:41:54 -06:00
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
Freddy Boulton
5b71ff7e6f
Update accordion from backend ( #2690 )
...
* Update accordion from backend
* Update changelog
* Add gif to changelog
* Use reactive values
2022-11-28 18:12:24 -05:00
SkyTNT
2c04f77281
Fix filename too long in processing_utils.decode_base64_to_file
and processing_utils.create_tmp_copy_of_file
( #2685 )
...
* fix filename too long
* move to strip_invalid_filename_characters
* test
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-11-27 20:55:10 -06: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
Abubakar Abid
8793719924
Adds better warnings / error messages for gr.Interface.load()
( #2694 )
...
* added better docs
* formatting
* changelog
2022-11-22 22:44:47 -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
Victor Muštar
70227354e6
UI update: API documentation page ( #2652 )
...
* changes
* update UI
* ui update
* add font weight 600 to google font <link>
* import paths
* changes
* changes
* changes
* changes
* Update ui/packages/app/src/ApiDocs.svelte
Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
* changes
* changes
* changes
* changes
* changes
* changes
Co-authored-by: Ali Abid <aabid94@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-11-20 16:21:01 -06:00
Abubakar Abid
5e148c3752
Adding ability to access in Fastapi request object into your function ( #2641 )
...
* fastapi requests
* formatting
* implement
* fix
* formatting
* formatting
* changelog
* added demo
* remove print
* added to guide
* changes for queuing
* changes to gr.Request
* formatting
* formatting
* fixes
* lint
* fixed tests
* fix batching
* fixing tests
* cleanup
* lint
* added tests; fixed review
* improve docs
2022-11-19 00:52:06 -08:00
Abubakar Abid
1c244cc342
pass in kwargs to Blocks.load()
( #2669 )
...
* pass in kwargs to Blocks.load()
* added test
* changelog
2022-11-17 17:22:16 -08:00
Abubakar Abid
8ec0a1e2b8
Quick fix to gr.utils.validate_url
( #2659 )
...
* fix validate
* formatting
* fix tests
* added flaky mark
2022-11-16 12:21:51 -08: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
Freddy Boulton
e6336d6882
Fix bug with gr.update and interactive=True ( #2639 )
...
* Fix update interactivity
* Lint
* CHANGELOG
* Fix
* Undo interactive=True
* Do not call update twice
* Add unit test
* Revert change
* Lint
2022-11-15 11:53:35 -05:00
Freddy Boulton
ebb65eb9ee
Fix loading interface with examples ( #2640 )
...
* fix examples
* Fix test
* Add unit test
* Add CHANGELOG
* Add unit test where load external
* fix for older demos
* Add comment
2022-11-15 11:20:59 -05:00
Freddy Boulton
06353ca939
Pin fastapi test version to 0.87.0 ( #2647 )
...
* Pin fastapi test version
* trigger ci
* Upgrade to 0.87
* Update txt file
2022-11-14 14:31:03 -05:00
GLGDLY
b75b7b7475
Allow auth with using queue ( #2611 )
...
* Update queue.py
* Update queue.py
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update queue.py
* Update requirements.txt
websockets with version <=9.1 with raise TypeError: WebSocketCommonProtocol.__init__() got an unexpected keyword argument 'logger'
* fix issues after rebase
* feat Allow auth with using queue
* remove unused imports
* Update CHANGELOG.md
fix wrong position in changlog from the last pr #2428 also
* revert test_queue_enabled_for_fn that is changed due to unintended mistake
* remove comment
* update tests and merge main thread
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-11-09 04:24:51 -05: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
GLGDLY
b1cc5be78d
Update queue with using deque & Update requirements ( #2428 )
...
* Update queue.py
* Update queue.py
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update queue.py
* Update requirements.txt
websockets with version <=9.1 with raise TypeError: WebSocketCommonProtocol.__init__() got an unexpected keyword argument 'logger'
* fix issues after rebase
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2022-11-04 16:53:23 -04: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
aliabid94
91abb3ae11
Allow gradio embeds in colab without share ( #2455 )
...
* changes
* change
* changes
* changes
* changes
* Update colab.html
* update version
* changes
* Update gradio/templates/colab.html
Co-authored-by: pngwn <hello@pngwn.io>
* changes
* changes
* changers
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* revert
* changes
* changes
* changes
* strings
* formatting
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2022-11-03 15:51:30 -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
4a51cec5b4
Call fn by api_name when using Blocks.load ( #2593 )
...
* Updated implementation + test
* Add changelog
* Fix unit test
2022-11-02 13:38:56 -04: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
Abubakar Abid
e6cda90b69
Refactoring external.py
( #2579 )
...
* pass token & add typing
* updated docstring
* reorg
* improve docs
* test for private space
* changelog
* changed asserts
* pipelines
* streamline
* formatting
* int
* dataclass
* formatting
* annotations
* formatting
* external test fixes
* formatting
* typing
* addressing review
* fix tests
* dataframedata
* refactoring
* removed unused imports
* added better error message for invalid spaces
* removed unnecessary import
2022-11-01 09:14:15 -07: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
Freddy Boulton
a23eb53e3b
Run events every given number of seconds ( #2512 )
...
* WIP
* Fix implementation
* Fix units
* Rename
* Delete dead code
* This works
* Fix tests
* Final fix - still rough
* Reduce code duplication
* Fixing bugs + test
* Changelog
* Add gif to changelog
* Update demo and remove unused imports
* undo accidental diff
* Linting
* Add to guides
* Address comments
* formatting changelog
* Fix warnings
2022-10-28 17:53:06 -04:00
aliabid94
10552cb6fd
Allow user to send inputs as dictionary ( #2550 )
...
* change
* changes
* changes
* changes
* changes
* change
* changes
* changes
* changes
* changes
* changes
* format
* changes
2022-10-28 10:52:28 -07:00
Freddy Boulton
e0a55df7dc
Modify CI to check for unused imports ( #2555 )
...
* Add lint script + remove unused imports
* Add lint file to sc
2022-10-28 10:56:18 -04:00
Abubakar Abid
76512378a8
Adds support for audio samples in float64
, float16
, or uint16
formats ( #2545 )
...
* fixed audio
* added some unit tests
* formatting
* formatting
2022-10-26 16:24:46 -07:00
Abubakar Abid
5c80b544ab
Better error messages ( #2543 )
...
* events fix
* changelog, format, better error msg
* changelog
* changelog
* mix errors
* formatting
* switched from error to warnings
* typo
2022-10-26 16:10:26 -07:00
Freddy Boulton
099e1e84ec
Properly dequeue cancelled events when multiple apps are rendered ( #2540 )
...
* Fix render + tests
* Add comment + changelog
2022-10-26 16:29:47 -04:00
Abubakar Abid
560b3f99c0
Fixes cancels to work with multiple blocks ( #2530 )
...
* fixes cancels to work with multiple blocks
* formatting and changelog
* formatting and test
* skip test in 3.7
2022-10-25 14:54:33 -07:00
Freddy Boulton
7f9223fdbe
Prevent api requests from skipping queue ( #2493 )
...
* Prevent request to rest api from skipping queue
* Release notes
* Make changes to show_api
* Update gradio/blocks.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-10-25 11:45:15 -04:00
Abubakar Abid
0e168c4dff
Batching ( #2218 )
...
* batch
* formatting
* added parameter
* batch
* added docstrings
* correct arguments
* docstring
* adapt process_api for batch
* backend
* __call__
* more regular tests
* formatting
* cleaning up blocks.py
* __call__ works
* api route works
* first attempt at queue
* fixing tests
* fix some tests
* formatting
* removed print
* merge
* queue works!
* removed batch timeout
* removed batch timeout
* updated documentation
* fixing tests
* fixing tests
* fixing queue tests
* fixing queue tests
* formatting
* fix blocks config
* fix tests
* update documentation
* updated tests
* blocks
* blocks
* blocks
* tests
* test fixes
* more tests
* faster
* foramtting
* test fixes
* dataclasses
* fix
* revert to fix test
* fix
* fix test
* formatting
* fix tests
* refactoring examples
* formatting
* changelog
* fix examples
* formatting
* fix tests
* formatting
* catch error
* formatting
* fix tests
* fix cancel with batch
* final tests and docs
* test routes
* formatting
2022-10-24 16:32:37 -07:00
Rahul Varma
a18099f683
Allow render() to return self ( #2514 )
...
* Update blocks.py
Updated render() function in Blocks to return self
* Update CHANGELOG.md
* formatting
* fix changelog
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-10-23 05:59:15 -07:00
Freddy Boulton
668905fb3d
Fix infinite reload loop when gradio mounted as a sub application ( #2477 )
...
* Set dev mode to false in sub application
* CHANGELOG
2022-10-18 16:12:51 -04:00
Abubakar Abid
081f63c5c5
Removes special characters from temporary filenames ( #2480 )
...
* remove special chars
* tests
* tests
2022-10-18 12:58:01 -07: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
Freddy Boulton
831ae1405f
Cancel events from other events ( #2433 )
...
* WIP
* Use async iteration
* Format + comment
* Very hacky WIP
* Fix synchronization
* Add comments + tidy up implementation
* Remove print
* Fix rebase
* Lint
* Disconnect queue when cancelled
* Add stop button for interface automaticallY
* Unit tests + interface fixes
* Skip some tests on 3.7
* Skip in 3.7
* Fix skip message
* Fix for python 3.7
* Add stop variant to button variant type union
* CHANGELOG
* Add demos/gifs to the changelog
2022-10-14 18:43:24 -04:00
Freddy Boulton
2fdd2396d8
Fix race condition in queue ( #2374 )
...
* Catch disconnect exception
* Misc queue changes
* Add tests
* CHANGELOG
2022-10-13 11:07:36 -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
Freddy Boulton
a03d0ebe7c
Prevent apps from hanging when running in reload mode and error occurs ( #2394 )
...
* Fix show_error in blocks
* dd to changelog + test
2022-10-04 16:10:02 -04:00
Abubakar Abid
c3306721a4
Adds ability to disable pre/post-processing for examples ( #2383 )
...
* fixing examples
* adding parameters
* postprocess
* examples
* added tests
* changelog
* Update CHANGELOG.md
* added docstrings
* Adds ability to provide a `gr.update()` dictionary even if `postprocess=False` (#2385 )
* docs
* fixes
* added docs, fixed test
* changelog
* fix suggestoins
* formatting
* fix tests
* fix tests
2022-10-04 12:51:20 -07:00
Abubakar Abid
e5a0a5e849
Raise error if Blocks has duplicate component with same IDs ( #2359 )
...
* duplicate error
* version
* version
* avoid rendering State twice
* changed error type
2022-09-28 13:29:25 -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
Freddy Boulton
11379b92f1
Respect Upstream Queue when loading interfaces/blocks from Spaces ( #2294 )
...
* Fix fn used in load when queue is enabled
* Respect upstream queue
* Fix test
* Skip in 3.7
* Update logic to respect if fn does not have queue
* Fix impl + test
2022-09-21 13:18:40 -04:00
Abubakar Abid
c977ef1fa8
Supports gr.update()
in example caching ( #2309 )
...
* support for update
* formatting
* testing
* fixes to tests
* fixes to tests
* fix tests
* fix review comments
* Update blocks.py
2022-09-21 11:53:06 -05:00
SkyTNT
0c4b13620e
fix : queue could be blocked ( #2288 )
...
* fix: queue could be blocked
* add: send error message
* fix
* fix
* Add tests
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2022-09-20 14:34:08 -04:00
Freddy Boulton
b8fc551807
Raise warning when trying to cache examples but not all inputs have examples ( #2279 )
...
* Add error message + test
* Undo changes to fake_gan
* Raise warning message instead
* Fix typo in warning message
* Remove unused import
* Address comments
2022-09-20 10:48:52 -04:00
Abubakar Abid
6c33eed976
Promotes postprocess
and preprocess
to documented parameters ( #2293 )
...
* changes
* Delete media_data.py.isorted
* fixes in other files
* fixes in other files
* added for grid
* removed status tracker
* removed status tracker
* added deprecation warning
* formatting
2022-09-19 19:38:17 -05:00
Freddy Boulton
bbd1c7237e
Use max concurrency count in queue ( #2286 )
2022-09-19 10:03:06 -04:00
Freddy Boulton
f346118133
Show view api button even if there are no named api routes in the app ( #2250 )
...
* Show message when no named api routes
* Lint
* Change text slightly
* Add show_api to launch method + fix text
* Undo changes to demos
* Change url example
2022-09-15 11:11:31 -04:00
Freddy Boulton
422de63663
Fix postprocess when value is a dict with only one key ( #2242 )
...
* Unwrap + test
* Update tests + use resolve_singleton
* Undo test change
2022-09-14 12:06:32 -04:00
Freddy Boulton
14d23e4d19
Used temp file in test ( #2241 )
2022-09-13 10:32:30 -04:00
Abubakar Abid
2942e24aa3
Quick fix for partial functions ( #2235 )
...
* fix for partial
* added test
* fixed tests by adding self
2022-09-12 17:58:17 -07:00
Abubakar Abid
fb434fc73d
Tests for Queue ( #2214 )
...
* enter key fix
* format
* fixes
* tests
* more tests
* formatting
* adding test skeleton
* added tests'
* remaining tests for websocket
* removed websocket
* fixes
Co-authored-by: Dawood <dawoodkhan82@gmail.com>
2022-09-12 17:47:33 -07: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
6c1bfbb42c
Fix bugs with gr.update ( #2157 )
...
* Use void to reset to original state
* Cosmetic fixes to comments
* Use keyword
* Set default value to no value
* Fix test
* Make private
* Improve comment on _Keywords.NO_VALUE
Improve comment
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Use NO_VALUE in `test_blocks`
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update test/test_blocks.py
Use NO_VALUE in tests
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-09-06 17:08:38 -04:00
Freddy Boulton
9b4bf627f2
Add orig_name to serialized file repr ( #2145 )
2022-09-06 10:40:59 -04:00
Freddy Boulton
eb81fa2cf2
Skops integration: Load tabular classification and regression models from the hub ( #2126 )
...
* MVP of skops integration
* Add unit tests
* One more case
* Fix NaNs in widget data
* Remove breakpoint
* Fix typo
2022-09-06 09:15:57 -04:00
cobryan05
b145a2a191
Keep embedded PngInfo metadata ( #2170 )
...
* Keep embedded PngInfo metadata
Maintain any text-only PngInfo metadata on a PIL image when
dragging UI images between components.
* Minor cleanup
2022-09-04 18:54:30 -07:00
Hoàng Tùng Lâm (Linus)
66ef85b874
Fixed misleading log when server_name is '0.0.0.0' ( #2176 )
...
* Fixed misleading log when server_name is '0.0.0.0'
* some cleanups
* formatting
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-09-04 18:48:08 -07:00
Abubakar Abid
7bda7eedd1
Fixed Named API Requests ( #2151 )
...
* fixed duplicate api_name issue
* fixed name
* formatting
* fixed errors
* more complex test
* formatting
2022-09-02 04:10:20 -07:00
Abubakar Abid
4e1ee4099f
3.2 release! ( #2139 )
...
* 3.2
* ip address test catch
* treat 3.x interfaces as interfaces
* formatting
* mode
2022-08-31 13:49:06 -07: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
Freddy Boulton
85229a7058
Catch IndexError, KeyError in video_is_playable ( #2113 )
2022-08-29 12:57:04 -04: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
4a1321ce8a
Updated our analytics on creation of Blocks/Interface ( #2082 )
...
* added version to analytics
* formatting
* fix flake
* disabled analytics on anything that runs via ci/cd
* formatting
2022-08-25 13:23:28 -07:00
Chris Emezue
9c4dc6c183
Add a flagging callback to save json files to a hugging face dataset ( #1821 )
...
* work on saving flags in JSON format
* explained what I did more clearly
* final updates + added test case
* reviews to flagging.py for HuggingFaceDatasetJSONSaver
* formatted imports
* used uuid for random ids
* used uuid for random + function to get dataset infos
* reformmated flagging.py
* fix examples test
* formatting
* async examples
* working on mix
* comment out failing test
* fixed interface problem
* final updates to HuggingFaceDatasetJSONSaver flagging.py
* final updates to HuggingFaceDatasetJSONSaver flagging.py
* formatting
* some tweaks
* tweaks
* tweaks
* omar's fixes
* added back test.init
* restored test init
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-08-23 16:01:37 -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
e2dc87aa2b
Reset components to original state by setting value to None ( #2044 )
...
* Fix + test
* Fix test
* Rename demo file
* Delete unused demo
* Refactor into independent demos
* change (#2059 )
* Remove chatbot
Co-authored-by: aliabid94 <aabid94@gmail.com>
2022-08-22 16:04:59 -04:00
aliabid94
b1dfc9a172
Release new queue beta ( #1969 )
...
* queue-refactor-backend (#1489 )
* queue-refactor-backend
- create a template for the new design
* queue-refactor-backend
- clean after the old queue
* queue-refactor-backend
- add basic test to websocket endpoint
* queue-refactor-backend
- small fix
* queue-refactor-backend
- debugs&fixes&finalizations
- test the flow with postman
* queue-refactor-backend
- tweaks on websocket closing
* queue-refactor-backend
- cleanup
* queue-refactor-backend
- cleanup & tweaks
* queue-refactor-backend
- cleanup & tweaks
* queue-refactor-backend
- cleanup & tweaks
- correct the exception handling
* queue-refactor-backend
- add websockets dependency
* queue-refactor-backend
- reformat
* queue-refactor-backend
- add single event test
* queue-refactor-backend
- tweaks
- remove outdated tests
* queue-refactor-backend
- reformat
* queue-refactor-backend
- reformat
* queue-refactor-backend
- reformat
* queue-refactor-backend
- add Queue configurations to Blocks.launch()
- add live_queue_update to send estimations whenever a job gets fetched from the Queue
* queue-refactor-backend
- add Queue configurations to Blocks.launch()
- add live_queue_update to send estimations whenever a job gets fetched from the Queue
* queue-refactor-backend
- tweaks
* queue-refactor-backend
- make SLEEP_WHEN_FREE shorter
Co-authored-by: Ali Abid <aabid94@gmail.com>
* Add estimation parameters to queue (#1889 )
* - tweaks on Estimation
* version
* Revert "version"
This reverts commit bd1f4d7bfe
.
* some fix and tweaks
* implement queue frontend (#1950 )
* implement queue frontend
* fix types
* fix ws endpoint in build mode
* cleanup
* Queue tweaks (#1909 )
* tweaks on estimation payload
* Queue keep ws connections open (#1910 )
* 1. keep ws connections open after the event process is completed
2. do not send estimations periodically if live queue updates is open
* fix calculation
* 1. tweaks on event_queue
* fix issue - create new ws for each request
* format
* fix
* fix tests
* fix tests
* tets
* test
* changes
* changes
* changes
* change'
* wtf
* changes
* changes
* file perms
* Release queue beta v1 (#1971 )
* - release the new queue
* - bypass the issue in the tests
- rewrite the lost part in the codebase
* - add concurrent queue example (#1978 )
* rank_eta calc
* Queue fixes (#1981 )
* change
* format
* - comment out queue tests as they dont work well
* - reformat
* Update gradio/event_queue.py
Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>
* changes
* changes
* change
* weird fix
Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>
* release-queue-v3 (#1988 )
* Fix frontend queuing to target secure WSS (#1996 )
* change
* format
* changes
* queue-concurrency-tweaks (#2002 )
1. make gather_data and broadcast_estimation sequential instead of concurrent because they were deleting elements at the same time and raising expections which was lowering the performance
* Update Queue API, documentation (#2026 )
* changes
* changes
* fixes
* changes
* change
* fix
Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
2022-08-17 11:17:56 -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
Abubakar Abid
a424832ec1
Fix async tests ( #2000 )
...
* fix examples test
* formatting
* async examples
* working on mix
* comment out failing test
* fixed interface problem
* fixes
2022-08-11 12:08:06 -07: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
Abubakar Abid
5fe02164f9
Fixes to gr.Examples
( #1952 )
...
* still working
* remove exampleset logic
* wip
* added tests and fix
* fixed header issue
* more tests
* formatting
* removed print
* Update gradio/examples.py
* used context managers
* more readable
* removed unnecessary start index
* formatting
2022-08-08 10:35:26 -07: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
Abubakar Abid
f46e95d7e0
Fixes to TabbedInterface
( #1951 )
...
* tabbed
* formatting
* fixed test
* fixed based on review
2022-08-04 18:46:15 -07:00
Freddy Boulton
299ba1bd1a
Fix bug where you cannot cache examples with Interface.load ( #1949 )
...
* Possible fix
* Remove breakpoint
* Implementation
* Add unit test
* Fix test
* Lint
* Add _api_mode to interface signature
2022-08-04 20:20:44 -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
aliabid94
16826ee9cc
Fix broken API page ( #1919 )
...
* chagnes
* frontend_fix
* changes
* changes
* changes
* changes
* changes
* fixed typing
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-08-01 18:15:55 -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
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
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
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
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
Abubakar Abid
2a67fe6ec9
remove tensorflow ( #1730 )
2022-07-11 15:29:55 +01:00
Abubakar Abid
06bfb6b218
Updated atomicwrites
version ( #1742 )
...
* commented out test
* updated atomicwrites
* undo commenting out
2022-07-08 18:11:29 -05:00
aliabid94
70ebf698fa
Live website changes ( #1578 )
...
* fix audio output cache (#804 )
* fix audio output cache
* changes
* version update
Co-authored-by: Ali Abid <aliabid94@gmail.com>
* Website Tracker Slackbot (#797 )
* added commands to reload script
* catch errors with git pull
* read new webhook from os variable
* correcting bash
* bash fixes
* formatting
* more robust error checking
* only sends success if git changes
* catching error from script
* escaping error text to send with curl
* correct text escaping for error message
* fix search bug in guides (#809 )
* Update getting_started.md (#808 )
* Fix type of server returned by `Launchable` (#810 )
* `Launchable` returns a FastAPI now
* Update .gitignore
* Add a missing line to getting started (#816 )
Former-commit-id: 81e271ca22
[formerly 96f203108b
]
Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f
* Add a missing line to getting started (#816 )
Former-commit-id: 81e271ca22
[formerly 81e271ca22
[formerly 96f203108b
]]
Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f
Former-commit-id: b5112c3f42
* Add a missing line to getting started (#816 )
Former-commit-id: 81e271ca22
[formerly 81e271ca22
[formerly 81e271ca22
[formerly 96f203108b
]]]
Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f
Former-commit-id: b5112c3f42
Former-commit-id: bce6f9c4c5
* Add a missing line to getting started (#816 )
Former-commit-id: 81e271ca22
[formerly 81e271ca22
[formerly 81e271ca22
[formerly 81e271ca22
[formerly 96f203108b
]]]]
Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f
Former-commit-id: b5112c3f42
Former-commit-id: bce6f9c4c5
Former-commit-id: feba0888e3
* Add a missing line to getting started (#816 )
* Clean-History
- Remove 51MB file with this commit
Former-commit-id: 34b6a2325d613eeef622410f2d1ff3d869d3133c
* Clean-History
- Remove 51MB file with this commit
Former-commit-id: 34b6a2325d613eeef622410f2d1ff3d869d3133c
Former-commit-id: dd700c33cc
* Clean-History
- Remove 51MB file with this commit
Former-commit-id: 34b6a2325d613eeef622410f2d1ff3d869d3133c
Former-commit-id: dd700c33cc
Former-commit-id: 0d80e6a056
* Clean-History
- Remove 51MB file with this commit
Former-commit-id: 34b6a2325d613eeef622410f2d1ff3d869d3133c
Former-commit-id: dd700c33cc
Former-commit-id: 0d80e6a056
Former-commit-id: 20523b0519
* changes
* changes
* Homepage: header image size (#1347 )
* image size
* image in local assets
* add dall-e mini banner
* undo ui changes
* changes
* changes
* updates
* updates
* changes
* changes
* changes
* h11 dependency
* add npm build-mac
* expand demo button to all classes
* add demos to docstrings
* add anchor tags to headers
* add required tag to param table
* add consistent styling for headers
* skip param beginning with underscore from docs
* skip kwargs param from docs
* remove types in param docstring
* override signature to reflect usage
* add supported events
* add step-by-step guides
* fix guide contribution link
* add related spaces
* fix img styling on guides
* pin quickstart, advanced, and block guides to top
* margin fix
* autogenerated copy buttons for all codeblocks
* changes
* documentaiton
* format
* launch
* formatting
* style changes
* remove backticks
* changes
* changes
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: Julien Chaumond <julien@huggingface.co>
Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>
Co-authored-by: Ali <ali.abid@huggingface.co>
Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-07-06 16:22:10 -07:00
Abubakar Abid
a1c391668a
Exposing examples as a component for Blocks ( #1639 )
...
* examples as component
* renamed examples
* simplify internal logic
* fix tests
* cleanup
* fixed parallel and series
* cleaning up examples
* examples
* formatting
* fixes
* added unique ids
* added demo
* formatting
* fixed test_examples
* fixed test_interfaces
* fixed tests
* removed test from now
* raise ValueError for bad parameter values
* fixing series
* fixed series
* formatting
* speed up by preprocessing examples
* fixed parameter validation logic
2022-07-06 11:23:35 -07:00
Abubakar Abid
44e9a4d054
Fix assert_configs_are_equivalent_besides_ids()
( #1700 )
...
* fixed importlib
* reverted pkg resources
* fixed assert
* fixed xray config
* formatting
* ignored status tracker
* assert
* added copy
* formatting
* addressed feedback
* formatting
* unnecessary copy
2022-07-05 15:19:41 -07: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
Abubakar Abid
68afe67497
test hotfix ( #1705 )
...
* test hotfix
* init
2022-07-04 15:29:19 -07:00
Ömer Faruk Özdemir
e5fd0edce1
fix tunneling test ( #1694 )
...
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-07-04 17:04:44 +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
Abubakar Abid
00a1894bf5
fixed load from spaces + added test ( #1636 )
...
* fixed load from spaces + added test
* formatting
* removed print
2022-07-01 20:21:54 -07: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
Freddy Boulton
8c9a9a9696
Fix interpretations ( #1655 )
...
* add postprocess method on component
* Add test
* Change input in external.
* Revert accidental change
2022-06-29 18:24:27 -04:00
Halil Ibrahim Bestil
3026b8f597
Add type hint to provide autocompletion for Request class instances. ( #1642 )
2022-06-26 17:10:02 +03:00
Halil Ibrahim Bestil
51c8c34486
Async Request Class ( #1595 )
...
* Implement Request class and its tests.
* Add new requirements
* Reformat codebase.
* Fix formatting.
* Add library level requirements.
* Convert validated_data property to get_validated_data function.
* Fix the client fixture.
* Update test/test_utils.py
* Update test/test_utils.py
* Fix the client fixture.
* Add missing initialization for Request._validated_data
* Fix async test problem with test_tunneling.py
* Update gradio/utils.py
* Update gradio/utils.py
* Fix formatting.
Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>
2022-06-23 20:44:04 +03:00
Abubakar Abid
7a0f6b1dd2
Deprecation error if multiple functions are passed into fn
parameter in Interface
( #1623 )
...
* stack deprection
* formatting
* rewrite parallel
* formatting'
2022-06-22 23:48:42 -07: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
Abubakar Abid
d10bca27c0
Skip tests that return 429 from HF Hub API ( #1559 )
...
* skip tests
* formatting
* formatting and fixes
2022-06-13 17:57:45 -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
Edoardo Abati
db36d6880e
Changed share argument default in .launch method ( #1449 )
...
* changed default of share argument
* make share=False raise an Exception when localhost not reachable
* using self.share across the launch method
* reverted docstring to previous sentence
* added getter and setter for self.share
* added tests for setting Blocks.share
* fixed test
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-03 11:59:50 -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
aliabid94
d35e06abe7
Minor cosmetic changes ( #1383 )
...
* changes
* pass tests
* change to source sans
* formatting
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-26 14:33:28 -07:00
Abubakar Abid
cb2713e705
Getting Interface.load() working for 2.x and 3.x models and Spaces ( #1361 )
...
* version
* refactor for model and 2.x spaces
* fixing tests
* fixed tests
* getting there...
* formatting
* formatting
* fixes
* formatting
* external dependencies working
* formatting
* loading from 3.x
* changes
* wow finally it's working
* fixed formatting
* better error for spaces
* better error for spaces
* fixed 3.x bug
* formatting
2022-05-26 14:21:51 -07:00
Ömer Faruk Özdemir
e4b5d4c1b7
Reload mode on ( #1278 )
...
* reload-mode
-trys save
* reload-mode
- create minimal reloading example
* reload-mode
- create minimal reloading examples
* reload-mode
- amend
* reload-mode
- add user_mode
* reload-mode
- tweaks
* updated PyPi version to 3.0.3
* reloading
* reload
* formatting
* flexibility in naming
* added dev_mode flag to config
* added app id
* frontend changes
* changed debug level to warning to make less verbose
* Update ui/packages/app/src/main.ts
* fixed tests
* formatting
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-05-23 14:38:53 -07: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
Abubakar Abid
2adb841316
Jupyter extension for easier development with Blocks ( #1321 )
...
* jupyter magic
* formatting
* test fix
* formatting
* simplifications
* formatting
2022-05-18 15:14:53 -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
Freddy Boulton
8d5e05cdbe
Add precision to Number, backend only ( #1125 )
...
* integer type
* Add integer parameter for Number
* Pass down integer prop to Number instead:
* Format + update test
* Update interpretation neighbors code + docstrings
* Rename prop to type as opposed to integer
* Update error message + test
* Update docstring
* Implement precision
* Add test + format
* Add test for precision=2
* Change round logic for precision=0
* integer type
* Add integer parameter for Number
* Pass down integer prop to Number instead:
* Format + update test
* Rename prop to type as opposed to integer
* Implement precision
* Add test + format
* Address docstrings
* Fix test + rebase
2022-05-13 19:04:11 -07:00
Ömer Faruk Özdemir
2de9ee8bfb
update-shortcut-syntax ( #1234 )
...
* update-shortcut-syntax
- fix&update gr.component
- create a demo introducing shortcuts within Blocks
* update-shortcut-syntax
- tweaks
* update-shortcut-syntax
- tweaks
* update-shortcut-syntax
- fix formatting
* update-shortcut-syntax
- tweaks
- fix tests
* update-shortcut-syntax
- tweaks
- fix tests
* update-shortcut-syntax
- tweaks
- fix tests
2022-05-13 09:30:11 +03:00
aliabid94
33ef309451
Allow Custom CSS ( #1170 )
...
* changes
* css changes
* updated PyPi version to 2.9b24
* Revert "updated PyPi version to 2.9b24"
This reverts commit 48f678f491
.
* Revert "css changes"
This reverts commit d31cd525a4
.
* Revert "changes"
This reverts commit fadcb12ffe
.
* reverting
* reverting
* changes
* changs
* Revert "changs"
This reverts commit 49d815f6fe
.
* Revert "changes"
This reverts commit 481d7c21c4
.
* changes
* format
* changes
* format
* test fix
* test fix
* test fix
* fix tests
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-05-11 21:40:41 -07:00
aliabid94
c50a2b021a
Sharing fix for assets ( #1208 )
...
* changes
* format
* typo
* updated PyPi version to 2.9b33
* Update PKG-INFO
* removed
* formatting
* fixes
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-11 16:27:58 -07:00
Ömer Faruk Özdemir
a88c017f87
async-function-support ( #1190 )
...
* async-function-support
- add async function support to Blocks
* async-function-support
- resolve conflicts
* async-function-support
- add error to Interface for async functions
* async-function-support
- add test
* async-function-support
- add test packages
* async-function-support
- add test packages
2022-05-11 23:10:50 +03:00
aliabid94
ce47c48ebc
Update component config ( #1089 )
...
* first commit
* changes
* restore defualt_value name
* changes
* rm value=
* rm value=
* rm value=
* changes
* changes
* changes
* rename default_val to value
* changes
* changes
* changes
* changes
* format
* changes
* changes
* format
* test fix
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-05-10 17:11:43 -07:00
Abubakar Abid
871c9713b4
Restored /api/predict/ endpoint for Interfaces ( #1199 )
...
* updated PyPi version to 2.9b25
* added /api/predict reverse compatibility
* fixed flagging
* formatting
* fixed networking tests
* added queue false
2022-05-09 18:05:30 -07:00
pngwn
94ab75dbec
962 dataframe ( #1186 )
...
* refresh dataframe
* add fixed rows + cols to dataframe
* tweaks
* validate dataframe headers + col_count
* cleanup
* cleanup
* make linter happy
* fix test
* fix test again
* fix test definitely this time
* implement file drop support for dataframe
* remove leftover files
* tweaks
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-05-08 21:55:02 -07:00
Abubakar Abid
4bd609bcc0
A few small fixes ( #1171 )
...
* allow markdown to be set dynamically
* moved markdown to output section
* added aliases for component names
* added aliases
* fixed optional
* formatting
* tests
* tests
* tests
2022-05-06 00:29:02 -07:00
pngwn
eca95a549d
Timeseries improvements ( #1149 )
...
* ensure chart works with decimal values + generatesaxis lines for values below 10
* add negative example
* use color palette for chart
* add colors kwarg to Timeseries
* fix test?
2022-05-03 14:05:17 -07:00
aliabid94
b0306e716d
Restore queue in Blocks ( #1137 )
...
* first commit
* format
* fix tests
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-05-02 16:17:53 -07:00
Abubakar Abid
8ad401ba33
Blocks rendering fix ( #1102 )
...
* optional labels
* added prop
* Added IOComponent class
* get component fix
* fixed component function
* fixed test components
* formatting
* fixed output tests
* working on blocks tests
* fixed test blocks
* cleanup
* merged
* unrender
* add article
* formatting
* fixed render()
* added demo
* formatting
* merge main
* formatting
* cleanups
2022-04-28 01:51:54 -07:00
Ömer Faruk Özdemir
930c4a3fa6
clean-deprecated-parameters ( #1090 )
...
* clean-deprecated-parameters
- resolve conflicts
* clean-deprecated-parameters
- fix tests
* clean-deprecated-parameters
- fix tests
* clean-deprecated-parameters
- resolve conflicts
* clean-deprecated-parameters
- refactor blocks.py
* clean-deprecated-parameters
- remove capture_session support
* clean-deprecated-parameters
- fix get_component_instance
* clean-deprecated-parameters
- fix tests
* clean-deprecated-parameters
- reformat
* clean-deprecated-parameters
- fix tests
* clean-deprecated-parameters
- fix tests
* clean-deprecated-parameters
- resolve conflicts
* clean-deprecated-parameters
- resolve conflicts
* Update gradio/deprecation.py
* Update gradio/deprecation.py
* Update gradio/deprecation.py
* removed some incorrect kwargs
* formatting
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-28 01:12:40 -07:00
Abubakar Abid
90f3aec388
Backend for optional labels ( #1080 )
...
* optional labels
* added prop
* Added IOComponent class
* get component fix
* fixed component function
* fixed test components
* formatting
* fixed output tests
* working on blocks tests
* fixed test blocks
* cleanup
2022-04-27 02:22:16 -07:00
Abubakar Abid
82e95e259c
Flagging fixes ( #1081 )
...
* only show flagging button if manual
* fixing flagging
* fixed flagging examples issue
* formatting
* cleanup
* fixed tests
* predictbody
* formatting
* fixed tests
2022-04-27 00:32:57 -07:00
Ömer Faruk Özdemir
72df62daea
remove-queue-from-events ( #1056 )
...
* remove-queue-from-events
- enable_queue exists just under Blocks.launch()
* remove-queue-from-events
- enable_queue exists just under Blocks.launch()
* remove-queue-from-events
- fix tests
* spaces-defaults (#1057 )
* spaces-defaults
- enable_queue and cache_examples are activated in spaces in default option
* spaces-defaults
- tweaks
2022-04-26 00:35:47 +03:00
Abubakar Abid
5c34d91865
added better default labels to form components ( #1040 )
...
* added better default labels to form components
* updated default labels
* formatting
* fixed tests
2022-04-20 10:54:44 -07:00
Dawood Khan
c480fb0e0c
Model3D Examples fixes ( #1035 )
...
* fix examples
* fixes
* fix moddl3d examples
* format fixes
* fixed tests
* fix tests
* fix clearColor null
Co-authored-by: Dawood Khan <dawoodkhan@DawoodsWorkMBP.localdomain>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-20 11:43:21 -04:00
Ömer Faruk Özdemir
9cd4c3121f
textbox-autoheight ( #1009 )
...
* textbox-autoheight
- add max-lines to textbox
* textbox-autoheight
- reformat
* textbox-autoheight
- add demo
* textbox-autoheight
- tweaks on scripts
* textbox-autoheight
- fix tests
* textbox-autoheight
- fix tests
* textbox-autoheight
- fix tests
* textbox-autoheight
- convert default max_height from 100 to 20
* textbox-autoheight
- convert default max_height from 100 to 20
2022-04-20 14:25:47 +03:00
Abubakar Abid
ef8b97223d
Fixing import issues so that the package successfully installs on colab notebooks ( #1027 )
...
* updated PyPi version to 2.9.0b
* added to init
* moved media_data
* formatting
* updated PyPi version to 2.9.0b2
2022-04-19 11:27:32 -07:00
Abubakar Abid
671147c808
Update test_external.py ( #1024 )
2022-04-19 08:20:09 -07:00
Abubakar Abid
5eb8763bd5
fixed failing test on main ( #1023 )
2022-04-19 07:32:40 -07:00
Ali Abid
3dfc7262bc
fixes
2022-04-19 02:15:53 -07:00
Ali Abid
7a1618accf
fixes
2022-04-19 02:06:38 -07:00
Ali Abid
ba9eebf934
changes
2022-04-19 01:48:33 -07:00
Ali Abid
1089bc67ef
test fixes
2022-04-19 01:35:17 -07:00
Ali Abid
7bf3283954
fix css
2022-04-19 01:05:47 -07:00
Ali Abid
0312c4043c
format
2022-04-19 00:25:17 -07:00
Ali Abid
c15885f0cc
merge master
2022-04-19 00:22:43 -07:00
Ali Abid
4f1947d8c7
merge in master
2022-04-18 18:36:43 -07:00
aliabid94
1c2f430a7e
Progress indicator bar ( #997 )
...
Create Status Tracker component to report progress on function calls
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-04-15 02:20:19 -07:00
Ömer Faruk Özdemir
f51117487f
import hotfix ( #1008 )
2022-04-15 11:18:56 +03:00
Dawood Khan
873060a354
Image3D Examples Fix ( #1001 )
...
* fix 3d model examples
* format fix
* cache_examples in image demo
* fix cached examples
* fixed cached example bug
* fixed formatting
* fixed tests
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-14 23:23:02 -07:00
Abubakar Abid
e0a64e5b55
added interactive parameter to components ( #992 )
...
* added interactive parameter to components
* respect interactive prop
* fixed input tests
* fixed output tests
* fixed test_components.py
* fixed test blocks
* fixed test utils
* fixed formatting
* update test configs
* fix textbox static output
* static audio output
* static video output
* cleanup
* static inmage output
* Static Timeseries
* cleanup outptus fopr markdown _ html
* ensure dataframe can load in static mode
* tweaks
Co-authored-by: pngwn <hello@pngwn.io>
2022-04-14 15:12:30 +01:00
Ömer Faruk Özdemir
86ebd8af80
test-guideline ( #990 )
...
* test-guideline
- add backend test guidelines
* Update test/README.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-14 00:06:14 +03:00
pngwn
9cb40dc99a
ensure dataframe updates as expected ( #981 )
...
* ensure input updates as expected
* ci debug
* ci debug
* ci debug
* fix broken path
* cleanup
* cleanup
* cleanup
* remove pkg-up
* fix dataframe
* ensure headers can be edited
* allow the table to render empty content without exploding
* fixed components and test components
* fixed test inputs and test outputs
* formatting
* Update test_components.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-13 21:53:35 +01:00
Ömer Faruk Özdemir
a1509850dc
Merge in Examples and cache_examples fixes
...
* soft reset and remove a commit,
then commit the further commits again
* fix flagging for tests
* format fix
* fixes
Co-authored-by: Ali <aliabid94@gmail.com>
2022-04-11 13:18:42 -07:00
Ömer Faruk Özdemir
8eae59f494
Blocks page load ( #963 )
...
* Blocks load event implemented
* tweks
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-08 20:54:59 +03:00
Ömer Faruk Özdemir
dc6175a21d
tabbed-interface-rewritten ( #958 )
2022-04-08 12:13:56 +03:00
Ömer Faruk Özdemir
3c876c49ef
add fake_gan demos with smaller pictures
2022-04-08 11:21:40 +03:00
Ömer Faruk Özdemir
023706136e
add fake_gan demos with smaller pictures
2022-04-08 11:14:00 +03:00
Abubakar Abid
d722de0a79
replaced ASR model with one that works
2022-04-07 08:57:28 -07:00
Abubakar Abid
e3aeeb541e
formatting
2022-04-07 08:23:55 -07:00
Abubakar Abid
5ca96c4e2e
added timeseries output test
2022-04-07 07:55:38 -07:00
Ömer Faruk Özdemir
d8dd552cdb
blocks-move-test-data
...
- add tests
2022-04-07 01:40:28 +03:00
Ömer Faruk Özdemir
6274b9099e
blocks-move-test-data ( #927 )
...
* blocks-move-test-data
- move test_data under gradio
* blocks-move-test-data
- typo
* blocks-move-test-data
- fix tests
2022-04-06 13:55:51 +01:00
Ömer Faruk Özdemir
22c4003119
blocks-components-test
...
- rename functions to test_component_functions
2022-04-05 23:35:04 +03:00
Abubakar Abid
826fceeae3
fixed carousel test
2022-04-05 13:24:14 -07:00
Abubakar Abid
29585482f7
fixed interpretation test
2022-04-05 13:14:52 -07:00
Abubakar Abid
19cf1e7153
fixing tests related to new way of doing interpretation
2022-04-05 12:58:17 -07:00
Abubakar Abid
67ced042af
fixed error in merge
2022-04-05 12:30:37 -07:00
Abubakar Abid
2fdf26d7ac
merged blocks-dev
2022-04-05 12:21:48 -07:00
Ömer Faruk Özdemir
ceee0fce9e
blocks-components-test
...
- use deepcopy in the remaining tests as well
- update a failing test
- add processing utils to init for IDE to identify the function
2022-04-05 13:08:53 +03:00
Ömer Faruk Özdemir
9f7a48604b
blocks-components-test
...
- finalize and document components tests
2022-04-05 12:54:17 +03:00
Abubakar Abid
8d19a964a2
formatting
2022-04-04 18:09:09 -07:00
Abubakar Abid
541041e299
merged blocks-dev
2022-04-04 17:48:15 -07:00
aliabid94
5c44ae3536
Restore Interpretation, Live, Auth, Queueing ( #915 )
...
Restore Interpretation, Live, Auth, Queueing
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-04 15:47:51 -07:00
Abubakar Abid
6a376ed02a
fixed test
2022-04-04 11:04:35 -07:00
Abubakar Abid
3e72cfdea0
fixed idempotency issue
2022-04-01 08:21:17 -07:00
dawoodkhan82
0a1b0a21f9
fix image3d test
2022-03-31 14:20:17 -04:00
dawoodkhan82
d13d172d22
rename Model3d to Image3D
2022-03-31 13:58:36 -04:00
dawoodkhan82
bb26fa2821
fix asr test
2022-03-30 23:48:58 -04:00
Abubakar Abid
e95b88acb4
fixed formatting
2022-03-30 14:25:28 -07:00
Abubakar Abid
2c27f7f3c2
fixed test
2022-03-30 14:24:39 -07:00
dawoodkhan82
7ee39157eb
test file name model3d
2022-03-30 15:57:20 -04:00
dawoodkhan82
d36075bb37
reformat code
2022-03-30 13:24:18 -04:00
Ömer Faruk Özdemir
cf6f490189
blocks-components-tests
...
- reformat
2022-03-30 15:34:08 +03:00
Ömer Faruk Özdemir
71e3997395
blocks-components-tests
...
- reformat
2022-03-30 13:26:39 +03:00
Ömer Faruk Özdemir
070b8a96b5
blocks-components-tests
...
- move gradio/test_data to test/test_data/media_data
2022-03-30 13:08:34 +03:00
Ömer Faruk Özdemir
f623438596
blocks-components-tests
...
- tweaks
2022-03-30 09:25:05 +03:00
Ömer Faruk Özdemir
d7ca65cfb0
blocks-components-tests
...
- fix test
2022-03-30 09:24:10 +03:00
Ömer Faruk Özdemir
32f0554ebe
blocks-components-tests
...
- reformat
2022-03-29 23:30:45 +03:00
Ömer Faruk Özdemir
28d5f93a8b
blocks-components-tests
...
- tweaks
2022-03-29 23:28:14 +03:00
Ömer Faruk Özdemir
c343a622c3
blocks-components-tests
...
- tweaks
2022-03-29 23:25:34 +03:00
Ömer Faruk Özdemir
4c594e5969
blocks-components-tests
...
- move input and output tests under test_components
2022-03-29 23:23:30 +03:00
Abubakar Abid
8daada1b40
slightly better
2022-03-29 10:59:15 -07:00
Abubakar Abid
b851831aef
hacky way to get imports to work
2022-03-29 10:49:20 -07:00
Abubakar Abid
e09df09d9e
fixed formatting
2022-03-29 10:38:49 -07:00
Abubakar Abid
117776e0a0
added init
2022-03-29 09:18:00 -07:00
Abubakar Abid
9d7de51958
fixed config
2022-03-29 09:15:37 -07:00
Abubakar Abid
2ec8482ca6
fixed config
2022-03-29 09:14:59 -07:00
Abubakar Abid
2825ee606d
resolving relative imports
2022-03-29 09:12:01 -07:00
Ömer Faruk Özdemir
acda99703e
blocks-tests
...
- reformat
2022-03-29 18:46:42 +03:00
Ömer Faruk Özdemir
dcc9ba87c9
blocks-tests
...
- implement a simple test to check blocks config generation
2022-03-29 18:45:24 +03:00
dawoodkhan82
c03f7b2f3a
add tests
2022-03-28 14:37:50 -04:00
Abubakar Abid
c7299edb94
formatting
2022-03-25 16:53:01 -07:00
Abubakar Abid
04b6b80b33
inputs
2022-03-25 16:50:53 -07:00
Abubakar Abid
6ff3ad2d4a
output tests passing
2022-03-25 16:44:13 -07:00
Abubakar Abid
ca2d0b7ef2
brought back external and mix tests
2022-03-25 12:16:49 -07:00
Abubakar Abid
12db19e6ab
brought back interface examplest test
2022-03-25 11:34:55 -07:00
Abubakar Abid
fd70292fbe
formatting
2022-03-25 11:14:42 -07:00
Abubakar Abid
22f332b1ce
examples tests pass
2022-03-25 11:14:28 -07:00
Abubakar Abid
6eeaccc11e
flagging tests pass
2022-03-25 11:12:45 -07:00
Ali Abid
48c42da3d4
test fix
2022-03-24 22:58:07 -07:00
Abubakar Abid
81e4a08a64
removed process examples
2022-03-24 13:45:04 -07:00
Abubakar Abid
721e2db8ee
removed external tests
2022-03-24 13:39:39 -07:00
Abubakar Abid
1d316d38a1
commented external, removed context
2022-03-24 13:32:04 -07:00
Abubakar Abid
63d18ac02b
formatting
2022-03-23 15:50:10 -07:00
Abubakar Abid
fa27aa5876
fixed outputs tests
2022-03-23 15:49:37 -07:00
Abubakar Abid
95e861e061
test_routes passing
2022-03-23 14:53:21 -07:00
Abubakar Abid
6b259bde95
removed outdated outputs tests
2022-03-23 14:32:07 -07:00
Abubakar Abid
41197a6a59
removed examples test
2022-03-23 14:16:53 -07:00
Abubakar Abid
6a82b72d56
test_inputs pass'
2022-03-23 14:15:08 -07:00
Abubakar Abid
6c01bad233
commented out flagging tests as we don't support that yet
2022-03-23 14:06:00 -07:00
Abubakar Abid
0edf628b25
test_external passing
2022-03-23 09:25:53 -07:00
Abubakar Abid
5b3bb9e11a
removed test demos, test encryptor passes
2022-03-23 09:22:44 -07:00
Abubakar Abid
60f6f86da7
context tests pass
2022-03-23 09:21:30 -07:00
aliabid94
a8ab1c81a1
Blocks dev ( #853 )
...
* Blocks-Components-v2
- default -> default_value refactoring
* Blocks-Components-v2
- refactor output types into output_type and make them auto
* Blocks-Backend-Events
- all events are implemented
* Blocks-Backend-Events
- refactor fn: str -> Callable
* Blocks-Backend-Events
- add change event to TabItem
* Blocks Backend Components
- Remove KeyValues from components
* Blocks-Backend-Components-v2
- Resolve Components imports in inputs and outputs
* Blocks-Backend-Components-v2
- fix default parameter usage in demos
* Blocks-Backend-Components-v2
- fix default parameter usage in demos
* Blocks-Backend-Components-v2
- fix default parameter usage in demos
* Blocks-Backend-Components-v2
- docstring updates
* revert demos
* Blocks-Backend-Components-v2
- tweaks
* Blocks-Backend-Components-v2
- add change event to Tabs
* Interfaces from Blocks (#849 )
Build interfaces from blocks
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-03-22 15:40:36 -07:00
dawoodkhan82
10bb240e23
reformat
2022-03-21 14:02:17 -04:00
Abubakar Abid
457df16d6b
added full highlighting and tests
2022-03-21 10:42:53 -07:00
Abubakar Abid
d25419b16f
fixed interpretation
2022-03-19 08:20:22 -07:00
Abubakar Abid
f2a5ecdca6
fixed test inputs.py
2022-03-19 08:14:54 -07:00
Abubakar Abid
db6f8452f1
fixed test data
2022-03-19 07:52:25 -07:00
Abubakar Abid
77eae4534d
fixing test inputs
2022-03-18 17:18:06 -07:00
Abubakar Abid
6bcbde43d7
fixing test_inputs.py
2022-03-18 17:08:24 -07:00
Abubakar Abid
408f743ba8
fixed external tests
2022-03-18 16:44:57 -07:00
Abubakar Abid
7044defcc9
changed external.py to use components
2022-03-18 15:49:38 -07:00
Ömer Faruk Özdemir
fa84324b60
Blocks-Components
...
- solve import issues
2022-03-18 19:59:47 +03:00
Abubakar Abid
427d70f6e8
Merge pull request #831 from gradio-app/textarea_line_fix
...
fix line count
2022-03-17 10:50:53 -07:00
Abubakar Abid
087de3f067
Merge pull request #827 from gradio-app/examples_bug_fixes
...
Fixes to examples; use builtin csv sanitization
2022-03-17 10:46:07 -07:00
Abubakar Abid
9af4ab320d
updated test images
2022-03-17 10:45:48 -07:00
aliabid94
da7a8f06ca
Full height gradio app ( #828 )
...
* fix
* changes
* changes
* changes
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-03-17 11:54:01 -05:00
Ali Abid
abb85c0f9b
changes
2022-03-16 19:26:39 -05:00
Abubakar Abid
2a7757ee7e
formatting
...
Former-commit-id: b78188d885230fd4ad617ee7288e840aa6dea321
2022-03-14 09:37:30 -05:00
Abubakar Abid
a415e5abc8
sanitize flagging inputs before writing to csv
...
Former-commit-id: f2d9f808c79abec7f2c8ff4a94b17a9b1cdd5651
2022-03-14 09:36:51 -05:00
pngwn
163806c4f6
Merge branch 'Blocks-Components' into gradio-dash-fe
2022-03-11 16:07:28 +00:00
Abubakar Abid
befa7bc8a2
fixed speech text model
2022-03-07 13:13:17 -06:00
Abubakar Abid
f9034db75b
fixed naming
2022-03-07 13:01:43 -06:00
Abubakar Abid
c65f9a599f
added pydantic data models for all requests
2022-03-05 21:56:50 -05:00
Abubakar Abid
fd034ee29f
test state
2022-03-04 00:24:17 -05:00
Abubakar Abid
8cb7025608
fixed formatting
2022-02-28 08:07:54 -05:00
Abubakar Abid
b0439c16b9
fixed test
2022-02-28 08:01:13 -05:00
Abubakar Abid
95ff9740e5
formatting
2022-02-27 16:47:12 -05:00
Abubakar Abid
ea96e1f753
small fix to start_server docstring & added a test
2022-02-27 16:44:59 -05:00
Abubakar Abid
5ab116a14c
updated test image
2022-02-23 11:27:24 -05:00
pngwn
4f26051d35
fix: dark mode ( #652 )
...
* swap postcss nested for tailwinf nesting plugin
* dark mode dataframe
* make background height expand with content
* updated test images
* fixed images
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-02-17 13:21:18 -08:00
Ömer Faruk Özdemir
b79794a624
Optional-Input-Clarification
...
- move (optional) labeling to the frontend
2022-02-17 18:34:35 +03:00
Ömer Faruk Özdemir
1803d3a223
Merge branch 'master' into Optional-Input-Clarification
2022-02-17 16:57:08 +03:00
Ömer Faruk Özdemir
093cc2f3e3
Gradio-Dashboard
...
- convert context global fields to class Fields
2022-02-17 16:42:44 +03:00
aliabid94
d3a680697a
black fix ( #628 )
...
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-02-15 16:32:42 -08:00
Anton Kollmats
ae5a0c7fad
fixes PermissionError for non-writable flagging path
2022-02-15 11:15:11 +01:00
aliabid94
2734bd782e
python format fix [hotfix] ( #615 )
...
* format fix
* fix image tests
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-02-14 21:03:51 -08:00
Abubakar Abid
a786eff15a
merged master
2022-02-14 18:32:23 -05:00
aliabid94
1f7e5c7b41
Tests Fix ( #609 )
...
* test commit
* fix yellow colow
* height fixes
* fix
* fix golder images
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-02-14 15:27:29 -08:00
Abubakar Abid
1260068e2e
fixed tests
2022-02-12 17:38:57 -05:00
Ömer Faruk Özdemir
8251a52447
Merge branch 'Format-The-Codebase' of https://github.com/gradio-app/gradio into Format-The-Codebase
2022-02-10 11:12:34 +03:00
Ömer Faruk Özdemir
4c5e116709
Format-The-Codebase
...
- add a format script
- solve a conflict between flake8 and black
2022-02-10 11:12:26 +03:00
Abubakar Abid
7071c0bd41
replaced networking.url_request with standard requests.get
2022-02-10 00:10:00 -05:00
Ömer Faruk Özdemir
972c66e09b
Format-The-Codebase
...
- solve the flake8 warnings
2022-02-09 22:52:26 +03:00
Ömer Faruk Özdemir
6a77a30a4a
Format-The-Codebase
...
- solve the conflict between black and isort
2022-02-09 17:32:43 +03:00
Ömer Faruk Özdemir
23af8e559c
Format-The-Codebase
...
- isort repo
2022-02-09 16:42:32 +03:00
Ömer Faruk Özdemir
3a9d018eab
Format-The-Codebase
...
- rename a test
2022-02-09 16:15:01 +03:00
Ömer Faruk Özdemir
80b5e117c9
Format-The-Codebase
...
- format the code-base
2022-02-09 14:56:41 +03:00
Ömer Faruk Özdemir
87d7fbee61
Format-The-Codebase
...
- format the codebase
- add format checkers to circleci
2022-02-09 10:40:05 +03:00
Ömer Faruk Özdemir
7619ae76d1
Accelerate-Tests
...
- speed up a test with a smaller model
- add torch to reqs
2022-02-09 10:24:30 +03:00
Ömer Faruk Özdemir
4d9e3f4cda
Accelerate-Tests
...
- speed up a test with a smaller model
2022-02-09 09:38:40 +03:00