Aarni Koskela
d1853625fd
More Ruff rules ( #4038 )
...
* Bump ruff to 0.0.264
* Enable Ruff Naming rules and fix most errors
* Move `clean_html` to utils (to fix an N lint error)
* Changelog
* Clean up possibly leaking file handles
* Enable and autofix Ruff SIM
* Fix remaining Ruff SIMs
* Enable and autofix Ruff UP issues
* Fix misordered import from #4048
* Fix bare except from #4048
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-04 21:54:23 -05:00
Aarni Koskela
4d629f04cc
Upgrade pyright to 1.1.305 ( #4042 )
2023-05-02 13:20:35 -05:00
Aarni Koskela
12a97746ff
Ruff update + strictening ( #3979 )
...
* Update ruff to 0.0.263
* Get rid of bare except:s
* Fix two Ruff E731s by moving expand_{color,size} to the relevant classes
* Fix Ruff E731 and some variable shadowing in theme builder
* Fix remaining Ruff E731s
* Get rid of unused Ruff ignores
* Fix ruff B904 issues (raise from)
* Fix Ruff B007: loop-control variable not used
* Fix Ruff B011 (do not assert false)
* Remove unused args and kwargs from Progress.tqdm() (spotted via Ruff B026)
* Fix mutable argument default in CheckboxGroup
* Noqa ABC-related lint warnings for Interpretable
* Add missed assert in test_queueing (ruff B015)
* Enable ruff B
* Enable ruff C and fix issues
* Add changelog
* Add UP03[012] after #3984
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-28 17:59:42 -04:00
Freddy Boulton
070b304e09
CI tweaks ( #3752 )
2023-04-04 14:02:20 -04:00
Aarni Koskela
ef3862e075
Switch linting to Ruff ( #3710 )
...
* Sort requirements.in
* Switch flake8 + isort to ruff
* Apply ruff import order fixes
* Fix ruff complaints in demo/
* Fix ruff complaints in test/
* Use `x is not y`, not `not x is y`
* Remove unused listdir from website generator
* Clean up duplicate dict keys
* Add changelog entry
* Clean up unused imports (except in gradio/__init__.py)
* add space
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-03 15:48:18 -07:00
Abubakar Abid
1c8d3cb05d
Simplify tests ( #3608 )
...
* simplify tests
* imports
* imports
* formatting
* removed cometml typing
* simplify
* changelog
2023-03-24 12:39:30 -07:00
Dawood Khan
12fb005ac8
Analytics Refactor ( #3342 )
...
* hub telemetry
* more analytics
* format
* changelog
* Gradio Status Page (#3331 )
* add status page to error message
* changelog
* link to status page on website
* move link to the right
* merge
* merge
* Add option to display gallery in preview mode (#3345 )
* Add code + api
* CHANGELOG
* dropdown (#3338 )
* fix
* fixes
* format
* changelog
* Update gradio/components.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fix clear case
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Some improvements to Flag (#3289 )
* Fixes to button disable
* button
* formatting
* flagging fix
* fixes
* formatter
* changelog
* ormatting
* tests
* saving
* adding optionality for flagging
* updatest
* error catching
* updates
* changelog
* tests
* typing
* flag button
* formatting
* tests
* tests
* tests
* increased latency
* queue fix
* clear
* formatting
* fix
* fix tests
* Fix flaky external test (#3348 )
* Fix flaky external test
* CHANGELOG
* Undo accidental diff
* Fix flaky external test
* CHANGELOG
* Undo accidental diff
* Remove from changelog
* Use bunny file
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* updates
* format
* more updates
* threading
* fixes
* Fix error when using backen_fn and custom js at the same time (#3358 )
* Fix error when using backen_fn and custom js at the same time
* generate notebooks
* update changelog
* changes
---------
Co-authored-by: Ali Abid <aabid94@gmail.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
* Fix File updating (#3375 )
* Fix
* Remove line
* Add unit test
* CHANGELOG
* Remove comment
* Updated chat ui (#3370 )
* test
* changes
* chagnes
* changes
* changes
* changes
* changes
* Update CHANGELOG.md
* changes
* Update demo/chatbot_multimodal/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update demo/chatbot_simple_demo/run.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* changes
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* fixes
* New Version Docs (#3376 )
* [create-pull-request] automated change
* empty commit
* [create-pull-request] automated change
* empty commit
---------
Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
* requirements
* test requirements
* Release 3.20.1 (#3390 )
* release 3.20.1
* changelog
* merge
* New Version Docs (#3392 )
* [create-pull-request] automated change
* trigger ci
---------
Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* merge
* Remove everything related to encryption (#3396 )
* remove requirements
* deprecate encrypt
* remove flagging
* deprecate
* formatting
* lint
* Adds a Chinese translation for the `README` (#3394 )
* add chinese readme
* add chinese readme
* update changelog
* fix render_readme and english readme
* generate readme
* remove template and quickstart files
* link to chinese from english
* fix assets paths
* link to english from chinese
* change file location
* fix link
* fix link
* fix link
---------
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
* fix bad codeblock (#3401 )
* Always set queue=False if every is None for load events (#3391 )
* Always set queue=False if every is None
* CHANGELOG + linting
* Move to latest release section
* changelog
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* JS client take 2 (#3388 )
* start
* change api
* integrate into gradio
* log
* try this
* format
* changes
* format
* fix css
* fix file
* fix #3282 avoid in-place dict updates (#3405 )
* fix #3282 avoid in-place dict updates
* add tests and changelog for PR3405
* Fix markdown embedded component in docs (#3410 )
* revert to old md component demo
* changelog
* Added a section on security (#3408 )
* security
* added section on security
* security
* changes from review
* Fix local tests (#3411 )
* document embed params
* fix tests
* cleanup
* cleanup
* cleanup
* revert
* changelog
* Document web component parameters (#3407 )
* document embed params
* changelog
* iframe
* fixed review changes
* requirements
* fixes
* format
* format
* requirements
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Jialei <3217223+jialeicui@users.noreply.github.com>
Co-authored-by: Ali Abid <aabid94@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Uanu <92366232+uanu2002@users.noreply.github.com>
Co-authored-by: gitgithan <hanqi11991@hotmail.com>
2023-03-08 21:28:15 -05: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
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
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
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
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
06bfb6b218
Updated atomicwrites
version ( #1742 )
...
* commented out test
* updated atomicwrites
* undo commenting out
2022-07-08 18:11:29 -05: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
Ö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
82cb2de626
Accelerate Tests
...
- add coverage to the circleci
- combine the divided tests into single folder
- update requirements
2022-02-09 08:50:00 +03:00
Ömer Faruk Özdemir
91d09b15ea
Accelerate Tests
...
- add only pytest to the circleci for testing it
- add more filtering to pytest scripts
- add pytest-cov to reqs
2022-02-08 19:56:58 +03:00
Ömer Faruk Özdemir
910d5d376f
Accelerate Tests
...
- Update requirements.txt
- Add a warning to create_test_requirements.sh
2022-02-07 14:52:58 +03:00
Ömer Faruk Özdemir
622e11c045
Update requirements.txt
2022-02-07 13:44:25 +03:00
Ömer Faruk Özdemir
c2a2609b2f
Dev Requirements
...
- edit requirements
2022-01-26 17:27:19 +03:00
Ömer Faruk Özdemir
1d09c9970a
Dev Requirements
...
- create test/requirements.in
- create scripts folder, move and create scripts under it
- update CONTRIBUTING.md
2022-01-24 17:33:01 +03:00