Commit Graph

4648 Commits

Author SHA1 Message Date
Abubakar Abid
066adf1a9d
Google Sheets + LinePlot Guide (#2816)
* draft

* guide

* add guide

* changelog

* changelog

* addressed comments
2022-12-23 10:40:52 -06: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
aliabd
db83055108 fixed constructor 2022-12-21 21:20:21 +04:00
github-actions[bot]
77f29401f3
[create-pull-request] automated change (#2875)
Co-authored-by: freddyaboulton <freddyaboulton@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2022-12-21 20:57:19 +04:00
Ali Abdalla
a31f95580a
Redirect old links to specific hash (#2874)
* redirect old links to specific hash

* remove trailing slash
2022-12-21 20:46:19 +04:00
Abubakar Abid
474b88af52
Removes the share warning msg and upgrades to gradio==3.15.0 (#2870)
* removed share msg

* update version

* Add next section to changelog

Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2022-12-21 11:33:28 -05:00
Ali Abdalla
9893166830
Fix css glitch and navigation in docs (#2856)
* fix css and navigation

* update changelog

* format backend

* fix css glitch in 3.14 docs

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-21 19:11:18 +04:00
Ali Abdalla
dc200af89c
Remove footers and min-height the correct way (#2860)
* fixes to readme

* add css to demos and remove footer js from html

* update changelog

* fix weird notebook

* fix weird notebook

* fix weird notebook

* fix weird notebook...

* actually fixed the problem
2022-12-21 19:01:42 +04:00
Ali Abdalla
57b6fb2013
Update website README.md with correct instructions on how to build website (#2858)
* fixes to readme

* removed unnecessary section
2022-12-21 18:41:02 +04:00
Freddy Boulton
51157d7410
Adding a LinePlot component demo to the docs (#2868)
* Add gradio demo

* Add linplot component notebook

* Link live_dashboard to LinePlot

* Fix notebooks + lint
2022-12-20 20:27:21 -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
Billy Cao
8f9d9ce25c
Add workaround to prevent importing gradio breaking PIL.Image.registered_extensions() (#2846)
* Add workaround to prevent importing gradio breaking PIL supported extensions list

* Update CHANGELOG.md

* Move _Image.init() to after all imports
2022-12-19 21:11:16 -06:00
Ali Abdalla
3cb2bb061c
Fix formatting issues in Big Query guide and Changelog (#2842)
* fix formatting issues

* fix format issues with guide and changelog
2022-12-17 15:51:35 -06:00
Abubakar Abid
62fdaf7c38
BigQuery Guide (#2794)
* bigquery draft

* updated guide

* updates

* changelog

* changelog

* title change

* renamed and added seo tips

* renamed

* added gif
2022-12-16 16:15:55 -06:00
github-actions[bot]
7b1b202a9d
New Version Docs (#2835)
* [create-pull-request] automated change

* empty commit

Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2022-12-16 04:42:01 +04:00
Abubakar Abid
369f7d294e
Release 3.14.0 (#2834)
* 3.14.0

* changelog
2022-12-15 16:51:31 -06: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
Freddy Boulton
cce636251c
Format 3.13.2 release notes (#2830) 2022-12-15 11:08:18 -05:00
github-actions[bot]
6550d9a7a9
New Version Docs (#2829)
* [create-pull-request] automated change

* empty commit

Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2022-12-15 19:38:03 +04:00
Abubakar Abid
2ae718f6b7
Remove jinja2>=3.0 dependencies and release gradio==3.13.2 (#2819)
* version

* removed jinja2.html method

* removed jinja2.html method

* update version

* version
2022-12-15 08:40:47 -06:00
Erik Cederstrand
c67af90663
Remove h11 pinning (#2820)
* Remove h11 pinning

No longer relevant after release of httpx==0.23.1. See https://github.com/gradio-app/gradio/pull/1680

Refs https://github.com/gradio-app/gradio/pull/1680

* Add entry in CHANGELOG
2022-12-15 08:17:55 -06:00
github-actions[bot]
ffbc2a2a44
[create-pull-request] automated change (#2818)
Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
2022-12-14 20:09:56 -06:00
Abubakar Abid
a83e10d7bd
Release 3.13.1 (#2817)
* changelog

* version

* changelog
2022-12-14 19:09:50 -06:00
Emily Uhde
ade918d0a2
2777 Add restProps to IconButton … (#2791)
* 2777 Add restProps to IconButton and use it to pass aria-labels down to the button element where it's used in other UI components

* 2777 Update per PR feedback, explicitly pass in label prop instead of using restProps

* 2777 Fix mysterious linter error

* Update changelog to fix PR number 2791

* Fix merge conflict

* Update CHANGELOG.md

Co-authored-by: pngwn <hello@pngwn.io>
2022-12-14 22:13:30 +00:00
Freddy Boulton
9c8fa8bf45
Create docs for 3.13.0 + fix requirements.txt (#2811)
* Create docs + fix bug

* Changelog
2022-12-14 09:33:52 -05: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
39ffe9df4a
Typo in the parameter visible in templates.py (#2805)
* bigquery draft

* updated guide

* updates

* changelog

* fixed typos in kwargs

* revert to main

* changelog

* fix reversion

* removed requires_permissions
2022-12-13 13:48:20 -06:00
Freddy Boulton
08f0ac23b5
v3.13.0 Release notes (#2801) 2022-12-12 13:10:08 -06:00
Abubakar Abid
e33626e82c
release 3.13.0 (#2793)
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2022-12-12 12:42:40 -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
Abubakar Abid
a580a93510
Fixing pypi release deployment script (#2786)
* loud

* memory

* force delete

* version
2022-12-09 22:05:15 -08: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
Ali Abdalla
8f8ba68adb
Deindex share URLs from search (#2772)
* add robots.txt to routes

* changelog

* disallow only on share

* format backend
2022-12-09 14:20:10 -08:00
Ali Abdalla
9af348cddd
Redirect old links and fix broken ones (#2774)
* redirect old links

* clean up nginx

* fix broken link in changelog

* fix broken links in guide

* fix broken links in other guide

* fix broken links in other guide

* move redirects from jinja to nginx

* changelog

* Update guides/06_other_tutorials/create_your_own_friends_with_a_gan.md

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

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-09 12:23:47 -08:00
Freddy Boulton
9e04e543b6
Add Scatterplot Img to Changelog (#2782) 2022-12-09 10:47:05 -05: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
Paulo A
728f3a960c
Add pt-br.json (#2753)
* Add pt-br.json

* Fix json name, changelog

* Format file

* Fix json name

* Fix CHANGELOG.md

* Rename pt-br.json to pt-BR.json

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update i18n.test.ts

Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-12-08 19:18:02 -08:00