Commit Graph

4632 Commits

Author SHA1 Message Date
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
Ali Abdalla
849d54c0e7
fix changelog nav (#2761) 2022-12-03 21:32:54 -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
82cd554ff2
Adds missing parameters to Blocks.load() (#2755)
* added

* load
2022-12-01 17:52:08 -06: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
5ce13ab6cb
Resize images for chatbot (#2748)
* chatbot image size

* update changelog
2022-11-30 10:13:34 -06:00
github-actions[bot]
48bbdc5099
New Version Docs (#2744)
* [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-11-29 15:57:08 -08:00
Abubakar Abid
cc197e4f20
release-3.12.0 (#2743)
* release-3.12.0

* changelog fix

* changelog fix
2022-11-29 15:47:09 -06: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
182f79bfaa
Move accordion CHANGELOG entry to next release (#2737)
* Move accordion CHANGELOG entry to next release

* trigger ci
2022-11-28 18:43:58 -05: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
Ali Abdalla
19462299f1
Performance improvements to docs (#2730)
* load gradio js only on example click

* fix layout shift

* fix memory/cpu issues

* bring back loading gradio js for embedded components

* load gradio js on page load only for desktop

* small optimizations

* fix preload

* mobile responsive

* small fixes

* mobile responsiveness fix

* better font loading

* changelog
2022-11-28 11:23:38 -08: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
Yujie He
f9f1f41d42
Enable requests timout for version_check (#2729)
* Enable timeout for utils.check_version()

* fix black

* Update CHANGELOG.md

* Update CHANGELOG.md
2022-11-27 19:41:28 -06:00