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
Andri Danusasmita
96642a4526
docs(guides): fix typos ( #2722 )
...
* docs(guides): fix typos
* docs: changelog entry
* add to contributors shoutout
Co-authored-by: Andri Danusasmita <andri.danusasmita@nri.co.id>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2022-11-25 10:35:00 -08:00
Julien Chaumond
a9cee74247
[doc,guide] mention also diffusers not just transformers ( #2719 )
...
* [doc,guide] mention also diffusers not just transformers
* Update guides/04_integrating_other_frameworks/01_using_hugging_face_integrations.md
Co-authored-by: Omar Sanseviero <osanseviero@gmail.com>
* Update guides/04_integrating_other_frameworks/01_using_hugging_face_integrations.md
Co-authored-by: Omar Sanseviero <osanseviero@gmail.com>
Co-authored-by: Omar Sanseviero <osanseviero@gmail.com>
2022-11-25 10:17:16 -08:00
Ali Abdalla
78796f6efe
Fix id clashes in docs ( #2713 )
...
* fix id clashes
* changelog
2022-11-23 11:53:37 -08:00
Ali Abdalla
a433933dbc
Make try examples button more prominent ( #2705 )
...
* make try examples button more prominent
* changelog
2022-11-23 10:38:55 -08:00
github-actions[bot]
6dd790bfd9
New Version Docs ( #2711 )
...
* [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-22 21:19:31 -08:00
Abubakar Abid
a1cb14ba95
version + changelog ( #2710 )
2022-11-22 22:57:14 -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
Abubakar Abid
69146696d2
Increase websocket size to 1 GB ( #2709 )
...
* websocket size
* changelog
2022-11-22 22:37:05 -06:00
Ali Abdalla
4b0820a9fb
Apply different formatting for the types in component docstrings ( #2707 )
2022-11-22 19:21:15 -08:00
Ali Abdalla
67275ec1d6
Add open in colab buttons to demos in docs and /demos ( #2608 )
...
* add generate_notebooks and run it
* add buttons to demos tab
* add buttons to docs
* add github check
* fix erros
* Update run.py
* Update run.py
* fix github action
* add nbformat
* wget files from demo directory
* testing with regex
* typo in github action
* cd first
* correct notebooks
* remove prit
* testing
* regenerate ids in notebooks
* testing action
* testing action
* testing action
* sort files before wget so no git diff
* skip DS store and others as sub files
* example demo change without notebook change
* fixes
* example demo change without notebook change
* example regenerated notebooks
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update .github/workflows/check-demo-notebooks.yml
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* gh action comments
* gh action syntax
* gh action syntax fixes
* test demo change without generating notebooks
* ran the suggested command
* remove unnecessary script
* add notebook for upload button demo
* switch to pull_request_target
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-11-22 16:56:46 -08:00
Julien Chaumond
c99a323ccf
Embeds: support <gradio-app host="julien-c-coqui.hf.space"></gradio-app>
( #2692 )
...
* to support `<gradio-app host="julien-c-coqui.hf.space"></gradio-app>`
* Fix iframe srcs
* prettier
* missed ones with `gradioiframe`
* embeds
* changelog
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-11-22 14:12:14 -06:00
Julien Chaumond
7719fae341
Update "How to Embed" doc ( #2698 )
...
* update Embedding doc
* changelog
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-11-22 13:23:41 -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
aliabid94
084b2b832e
Make login page UI consistent ( #2684 )
...
* changes
* changes
* changes
* capitalize login
2022-11-21 12:01:57 -06: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
Ali Abdalla
8edc91ff4b
Correctly building frontend in gradio wheel (colab bug) ( #2679 )
...
* correcting dockerfile
* add website build in dockr
2022-11-19 15:57:45 -08: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
github-actions[bot]
dbfa4dced1
New Version Docs ( #2676 )
...
* [create-pull-request] automated change
* empty commit
Co-authored-by: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2022-11-18 15:15:30 -08:00
Ali Abdalla
7f9eb708b3
pinning httpx ( #2675 )
2022-11-18 14:54:19 -08:00
Abubakar Abid
cea1c35c89
Release 3.10.1 ( #2673 )
...
* release 3.10.1
* changelog
2022-11-18 11:37:18 -08:00
Ali Abdalla
b9df6f3804
add url arg to build ( #2674 )
2022-11-18 11:24:13 -08:00
aliabid94
6798ea38d7
Cleanup colab ( #2612 )
...
* changes
* changes
* changes
* changes
* Update gradio/strings.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-11-18 09:58:34 -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
github-actions[bot]
36f1951305
New Version Docs ( #2663 )
...
* [create-pull-request] automated change
* allow empty
* [create-pull-request] automated change
Co-authored-by: aliabid94 <aliabid94@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
2022-11-17 13:35:37 -05:00