Commit Graph

79 Commits

Author SHA1 Message Date
pngwn
caceb7a5b1
chore: update versions (#4283)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-29 16:30:54 -07:00
Dawood Khan
12470571c9
Katex support in chatbot (#4285)
* katex

* katex support

* changelog

* fixes

* pr fixes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-21 15:41:09 +09:00
pngwn
1d0f0a9db0
Ensure error modal display as expected when using the queue (#4273) 2023-05-20 00:32:12 +01:00
Dawood Khan
7145327058
Using marked for chatbot markdown parsing (#4150) 2023-05-18 08:55:46 -07:00
Yuichiro Tachibana (Tsuchiya)
0a01388dec
Move mount_css() from main.ts to css.ts (#4222)
* Move mount_css() from main.ts to css.ts because these is a circular dependency between main.ts and Index.svelte (and it will help the development of the Wasm ver in the future)

* changelog

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-05-17 11:38:21 +01:00
Yuichiro Tachibana (Tsuchiya)
b0cccb43d6
Refactoring (#4223)
* Replace var with const in js/app/src/main.ts

* Remove unnecessary nullish coalescing in js/app/src/main.ts

* Remove unnecessary white spaces in the NPM scripts in js/app/package.json

* Use object key-value shorthand

* changelog

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-05-17 11:29:32 +01:00
pngwn
5c3fd1b5aa
make workbench private (#4247) 2023-05-17 11:10:54 +01:00
pngwn
d0e0c81046
chore: update versions (#4207)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-16 22:57:49 +01:00
pngwn
c3dadaebbe
fix cancels (#4225)
* fix cancels

* changelog

* refactor to make it work
2023-05-16 22:37:28 +01:00
pngwn
a26e9afde3
Fix client filepaths (#4202)
* transform returned paths to useful URLs

* changeset

* update app

* revert

* revert

* changelog

* Update client/js/src/client.ts

Co-authored-by: aliabid94 <aabid94@gmail.com>

* format

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabid94 <aabid94@gmail.com>
2023-05-16 22:04:51 +01:00
aliabid94
96b38fda07
Input listener (#4157)
* changes

* changes

* changes

* changes

* changes

* changes

* changes

* chnages

* fix

* changes

* changes

* merge

* changes

* restore

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-15 21:36:57 -04:00
pngwn
c723f7f2c9
chore: update versions (#4188)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-12 22:07:07 +01:00
pngwn
ceeb96186b
Fix (#4186)
* bump client version

* ignore spaces-test

* fix
2023-05-12 19:31:34 +01:00
pngwn
963c2d26ee
3712 js client (#3899) 2023-05-12 16:22:25 +01:00
aliabid94
8ba4cceaf9
Dispatch dropdown change on value change for any reason (#4128)
* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-11 16:28:19 -05:00
Yuichiro Tachibana (Tsuchiya)
d2314f9442
Fix dev docs (#4132)
* Move .config/README.md to js/README.md

* Link js/README.md from CONTRIBUTING.md

* Update CHANGELOG.md

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-09 16:38:38 -05:00
Abubakar Abid
f1703d5f53
Fixes to view API page (#4112)
* logo

* fix for new info and logo path

* changelog

* remove example_input from returns

---------

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2023-05-08 22:35:46 -05:00
aliabid94
a3a34697ad
Fix then logic to work after failures (#4115)
* change

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-08 22:16:54 -05:00
space-nuko
fab7642414
Fix slider released event not triggering when released on mobile (#4098)
* Fix slider released event not triggering when released on mobile

* Update CHANGELOG

* fix range test

* retrigger

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-08 21:10:26 -05:00
aliabid94
1910df10d9
Upload audio ios (#4071)
* changes

* changes

* change

* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-08 20:35:52 -05:00
Abubakar Abid
bebfb72b35
Misc file and docs fixes (#4086)
* uvicorn version

* uvicorn version

* changes

* guides

* guide

* changelog

* typo

* typo

* Update guides/04_integrating-other-frameworks/01_using-hugging-face-integrations.md

* chinese lang

* rename

* Update guides/04_integrating-other-frameworks/01_using-hugging-face-integrations.md

* Update guides/03_building-with-blocks/04_custom-CSS-and-JS.md

Co-authored-by: aliabid94 <aabid94@gmail.com>

* address review

* simplify section

---------

Co-authored-by: aliabid94 <aabid94@gmail.com>
2023-05-07 08:48:24 -05:00
aliabid94
4c314c3d88
Keep hidden Accordion content in DOM (#4073)
* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-06 08:00:05 -05:00
aliabid94
f763912bc8
Empty gallery fix (#4072)
* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-04 19:03:11 -05:00
Dawood Khan
c06901ed05
Chatbot code syntax highlighting (#4048)
* first pass

* fixes

* more fixes

* remove breaks

* format

* version

* pr fixes

* changelog

* test fix

* background color

* format

* revert test fix

* changes

* changes

* test

* changes

* changes

* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-05-04 03:28:39 -05:00
pngwn
35821febc3
fix overflowing gutter and dark mode base color (#4051) 2023-05-03 15:52:52 +01:00
Abubakar Abid
1f9584f9a7
Version 3.28.1 (#4009)
* changelog

* changelog

* Fix dropdown as output

---------

Co-authored-by: aliabid94 <aabid94@gmail.com>
2023-04-28 17:43:04 -04:00
aliabid94
89dc35c97d
Fix dropdown default issue (#3996)
* change

* change

* test

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-28 14:58:22 -04:00
aliabid94
2f8b9f8b03
UI fixes for themes (#3590)
* changes

* changes

* changes

* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-28 14:31:41 -04:00
space-nuko
5c4a9b402e
Add Clear Mask button to sketch mode (#3615)
* Add Clear Mask button to sketch mode

* Update changelog

* fix bugs + change icon

* tweak

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-04-28 14:16:14 -04:00
aliabid94
8a31766a0e
Fix faded textbox on iOS / Safari (#3993)
* change

* changes

* changes

* changes

* changes

* formatting

* fix

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-04-28 10:53:44 -04:00
space-nuko
30f4556927
More dropdown fixes (#3705)
* Fix several dropdown bugs

- Stop reopening when arrow is pressed
- Fix not opening when value text is clicked
- Being unable to filter in single-select mode
- Change color of filter text
- Clear filtering text when focus is lost

* Fix more dropdown issues

- Filter being focused but options not opening
- Make actions triggered on keydown instead of keyup (better responsiveness)

* Select dropdown element if exact match

* Pop last multiselect element if backspaced into

* Fix even more dropdown issues

- Override default input component up/down arrow key action
- Active option preventing arrow key movement if exact match

* Don't truncate dropdown options in X direction

* Format

* Update changelog

* Fix

* Requested changes

* changes

---------

Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-04-27 12:56:39 -04:00
Greysuki
88a2b20997
Fix duplicate play commands in full-screen mode of Vidieo (#3968)
* fix

* changelog

* Update CHANGELOG.md

---------

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-04-26 14:33:53 -04:00
Dawood Khan
ee78458c64
Fixes dropdown does not position itself at selected element when opened (#3639)
* fixes

* fix

* Update CHANGELOG.md
2023-04-25 09:12:38 -07:00
Aarni Koskela
1598680376
Move Google Tag Manager code to analytics_enabled block in Blocks.svelte (#3956)
* Move Google Tag Manager code to analytics_enabled block in Blocks.svelte

* format

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-24 13:27:20 -07:00
January Desk
7b0f48eb2c
Fixes data updating invoke the select event (#3861)
* fix data updating invoke the `select` event

* Update CHANGELOG.md

* changes

* change

* change

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-04-23 18:33:40 -07:00
Greysuki
1439b72f66
UI stuck caused by the 'selected' of DataFrame not being reset (#3916)
* dataframe error fix

* changelog

* demo launch fix
2023-04-20 10:27:52 -04:00
DavG25
9d7fde4f16
Fix TypeError when Blocks outputs parameter is set to None (#3883)
* Fix TypeError when Blocks outputs parameter is set to None

* Update changelog

---------

Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-04-19 16:41:49 -04:00
aliabid94
ae30e5f292
Fix output image heights (#3905)
* changes

* changes

---------

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-04-19 16:24:50 -04:00
Dawood Khan
c7f61599ba
Fix video not working in tab (#3891)
* fix

* fixes

* change

* Update CHANGELOG.md

* format
2023-04-19 13:12:54 -07:00
Dawood Khan
a95f615ce8
Gallery height fix (#3830)
* gallery height fix

* fix

* changelog

---------

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-04-19 12:31:44 -07:00
Freddy Boulton
f81b8235c7
Fix bug multiple bokeh plots (#3896)
* Fix bug multiple bokeh plots

* CHANGELOG
2023-04-17 22:09:51 -04:00
Greysuki
df7d645207
Fixed issue with old_value check in File (#3859)
* old_value check

* changelog

* fix

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-17 14:29:47 -04:00
aliabid94
1b4925712b
HighlightedImage component (#3836)
* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* rename

* changes

* changes

* changes

* changes

* Update CHANGELOG.md

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

* changes

* changes

* change

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-14 13:11:27 -07:00
Abubakar Abid
d3b7f73bcf
Update view api page to use Python client (#3765)
* Update view api page

* simplify

* update

* changes

* changes

* updated info

* formatting

* changes

* fixes

* save

* moved

* remove test input

* tweaks

* formatting

* add raw

* serialize

* fixes

* refactor

* fixes

* fixes

* Fetch api

* lower case

* view api

* fix tests

* format

* rough design

* readme

* api docs

* examples

* format

* formatting

* format

* version

* client changes

* formatting

* update client

* more example inputs

* api docs fixes

* remove notebook

* fix demo

* demo notebook

* styling on code snippet

* formatting

* fix audio, model3d

* format

* fix tests

* version

* cleanup

* format

* format

* format

* fixes

* version

* fix tests

* version

* format

* test

* format

* changelog

* changelog

---------

Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-04-13 16:20:33 -07:00
Dawood Khan
c772c6ae57
Fixes chatbot does not display code blocks correctly (#3816)
* fix

* changelog

* Update CHANGELOG.md

* style code blocks

* next beta version for release

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-12 14:04:47 -07:00
Greysuki
54af6ae290
Adding subtitles to gr.Video (#3673)
* v2 version now accepts video and subtitle format inputs.

* remove debug log and some format issue

* Update CHANGELOG.md

* Upload components.py and regenerate demo

* fix components and add comment to function

* fix postprocess return format

* changelog

* demo change to gr.Interface type

* fix file_types

* fixes

* added video serializer

* clean up preprocess

* clean up postprocess

* formatting

* frontend

* fixed serialization

* dataclass

* fix serialize

* version

* fix tests

* version

* changelog

* typing

* version

* changelog

* version

* versin

* fix tests

* fix tests

* backend

* test

* changes

* relax test

* fix demo

* notebook

* changes

* fix

* changes

* Update gradio/components.py

* Update client/python/gradio_client/client.py

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-04-11 16:06:48 -07:00
aliabid94
379b6f662e
Get Image click coordinates from .select (#3786)
* changes

* changes

* fix demo notebook

* changes

* changes

* chagnes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-10 14:47:33 -07:00
space-nuko
5a7610950e
Fix sketch tool gr.Image not filling up the entire component size (#3649)
* Fix sketch tool `gr.Image` not filling up the entire component size

* Update changelog

* version

* version

* changes

* changes

* Update js/atoms/src/Block.svelte

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

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabid94 <aabid94@gmail.com>
2023-04-10 14:27:02 -07:00
Freddy Boulton
ad50eaa63d
Fix Upload Button (#3782)
* Fix upload btn

* CHANGELOG

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-10 14:38:56 -04:00
Devang Chavan
b5e342cad0
Solved API submission issue (#3783)
* Solved API submission issue

* changelog

---------

Co-authored-by: Devang Chavan <devang@pop-os.localdomain>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-07 01:09:13 -07:00