Commit Graph

432 Commits

Author SHA1 Message Date
Hannah
224b596314
Fix cropped videos CSS bug (#4946)
* add width/height to video wrap

* add comment on progress

* add video story

* upload utils linting

* fix a11y violations

* chlog

* add width/height args

* remove on changes chromatic flag

* test

* remove test
2023-07-19 09:32:32 +01:00
Ali Abdalla
1d1dba1851
Fix responsive issues with docs, guides and changelog (#4833)
* fix right nav bar docs

* make guides responsive

* make changelog responsive

* much better side navbar
2023-07-19 03:56:12 +03:00
pngwn
181c6721b6
chore: update versions (#4781) 2023-07-18 07:17:59 +01:00
Ali Abdalla
f5b300fd3e
regenerate jsons (#4952) 2023-07-18 03:08:55 +03:00
Abubakar Abid
1f5c090cb5
Release 3.37 (#4947)
* version

* ltr
2023-07-17 14:52:39 -04:00
aliabid94
edde958e32
fix (#4949) 2023-07-17 14:29:01 -04:00
Abubakar Abid
5a511f02af
A high-level ChatInterface abstraction (#4869)
* push

* chat interface

* remove video artifact

* changes

* restore

* changes

* more functions

* clean

* chat interface

* chat interface

* Update gradio/chat_interface.py

* nit

* changes

* api fix

* chat interface

* guide

* guide

* changes

* fixes

* Added ChatInterface Examples for Langchain, OpenAI Streaming, and HF's Text Generation Inference (StarChat)

* docstring

* tests

* tests

* tests

* tests

* rename

* guide

* chatbot

* conclusion

* demo notebooks

* clog

* test

* chat interface

* fixes

* functional test

* test

* notebook

* guides

* typing

* docstring

* script

* upgrade pyright

* upgrade pyright

* Update CHANGELOG.md

* revert pyright upgrade

* typing

* redirects

* Update CHANGELOG.md

* guide

* guide

* readme

* screenshot

* add to readme

* quickstart

* readme

* Added transformers open-source LLM example using ChatInterface

* Minor nits to guide

* Minor tweak to test - use connect fixture

* website fixes

* nav

* guide

* fix tests'

* fix

* type

* clear

* chat interface

* fix test

* fix guide

* handle edge case

* edge case

* typing

* fix example caching with streaming

* typing

---------

Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Yuvraj Sharma <48665385+yvrjsharma@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-07-17 13:22:47 -04:00
aliabid94
f2fd37ee59
Fix gr.Group, container=False (#4916)
* changes

* changes

* changes

* changes

* changes

* fix

* changes

* changes

* Deploy group demo

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-07-17 10:05:46 -07:00
Abubakar Abid
b16732ffb2
Add RTL support to Textbox, Markdown, Chatbot (#4933)
* add rtl support

* redo

* remove param

* clog

* fix backend tests; add textbox story

* add textbox story

* fix textbox story

* fixed textbox story, markdown

* markdown story

* format

* fixes'

* Update CHANGELOG.md

* update docstrings

* fix tests

* fix static checks

* fix tests
2023-07-17 12:53:23 -04:00
Hannah
7f6d0e19ad
Fix images being cut off within a gr.Row()'s children (#4896)
* apply missing flex to Row component

* remove redundant !important

* changelog

* add (sort of a) row test

* remove import
2023-07-17 17:08:17 +01:00
aliabid94
3474122cb3
Fix API page code snippets in safari (#4924)
* changes

* changes
2023-07-14 09:53:42 -07:00
pngwn
3a4b1d8f8b
move all of the chatbot component in to js/chatbot (#4900)
* changes

* fix test

* changes
2023-07-13 17:41:47 +01:00
Ali Abdalla
315d7f4283
Add gr.Group to docs (#4913)
* add group

* exclude js/_website from workflow and add echo pr test

* fix path / remove echo

---------

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-07-13 17:28:30 +03:00
Freddy Boulton
d3e1d272d5
Fix flaky ui test (#4906)
* Debug

* Upload screenshots

* Fix path

* turn on verbose mode

* turn on verbose mode

* turn on verbose mode

* await click

* cleanup

* trigger ci

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-07-12 21:08:36 -04:00
Freddy Boulton
4bf301324b
Lint website (#4879) 2023-07-11 21:00:52 -04:00
Abubakar Abid
abd0ced3db
Fixes .change() in Video, Audio, Image (#4793) 2023-07-11 16:56:46 +01:00
Ali Abdalla
3e9f5407ae
fix path to gradio.svg (#4877) 2023-07-11 13:21:44 +03:00
Freddy Boulton
c17b91e114
Fix flaky e2e test (#4864)
* Split test into two

* Don't use await

* Dont use await
2023-07-10 15:53:09 -04:00
Ali Abdalla
5d080cdb74
Fix component events matrix in docs (#4863)
* fix events matrix

* regenerate json

* remove ordered_events

* remove hardcoded events

* mistake

* add end to docs
2023-07-10 20:52:14 +03:00
Freddy Boulton
34d5053076
Fire File change event when updated programmatically (#4811)
* Change

* Add code

* remove comments

* Add changelog

* remove test

* Fix typo
2023-07-10 11:29:34 -04:00
Dawood Khan
504c9d9d06
Add hyperlinks to download files in chatbot (#4848)
* add file links

* changelog
2023-07-10 10:34:01 -04:00
Yuichiro Tachibana (Tsuchiya)
76acf3cb0b
Lite: Fix the markdown-it package name spec on the Wasm worker (#4846)
* Fix the package name spec of markdown-it on the Wasm worker

* Add changeset
2023-07-10 10:03:21 +01:00
Yuichiro Tachibana (Tsuchiya)
f0150c6260
Lite: unload local modules before executing Python scripts (#4826)
* Unload the local modules before re-executing a Python script

* Add changeset
2023-07-10 10:03:09 +01:00
Yuichiro Tachibana (Tsuchiya)
7dbfa228f7
Lite: PoC of an online editor (#4809)
* Add a Svelte app for local development

* Update the dev editor to deal with multiple files

* Rename the File type

* Rename entities

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-10 10:00:05 +01:00
aliabid94
280b5697eb
Mobile queue fixes (#4742)
* changes

* changes

* changes

* changes

* changes

* Styling for error, warning and info toasts (#4603)

* create abstract toast component for info/warning/error

* add icons

* add light mode theming

* add theme mode check and dark mode styles

* update theme_mode on update

* clean up render of toast content

* replace dynamic css vars with toast type css selectors

* tweak colours

* change error pill border colour to align with toasts

* formatting

* fix failed test

* rename icon files and clean up css

* changes

* changes

* changes

* changes

* changes

* changes

* chanegs

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-07-07 14:39:06 -05:00
Ali Abdalla
059d77eb98
Fix broken images in guides and website meta tags (#4830)
* testing meta tags

* fix broken images in guides
2023-07-07 20:51:42 +03:00
Ali Abdalla
9363328297
Fix Misleading Description for Duplicate Button (#4832)
* reword docstring for duplicatebutton

* formatting
2023-07-07 20:09:54 +03:00
Ali Abdalla
2883a12c1f
Fix Changelog Navbar in Website (#4828)
* working navbar for changelog

* testing meta tags

* nvm
2023-07-07 19:09:08 +03:00
Freddy Boulton
9b56057a98
Add gr.ClearButton component demo (#4819)
* add code

* Add notebook

* Fix typos

* Remove css

* Add notebook
2023-07-07 11:51:18 -04:00
Freddy Boulton
0f8e25cd65
Fix gr.Warning/gr.Info when using generators + interface (#4823)
* Fix bug

* Fix notebook

* Add test

* Lint backend
2023-07-06 19:37:20 -05:00
Freddy Boulton
4b7cb2a436
Add storybook for Gallery (#4818)
* Add stories

* Add show_share_button story + label

* Fix typo
2023-07-06 17:31:17 -05:00
Ali Abdalla
df804ca281
Fixing redirects in website (#4813)
* testing redirect in vercel

* adding all redirects to vercel config
2023-07-06 22:21:40 +03:00
Hannah
530e4ef164
Add border to selected image in gr.Gallery (#4790)
* add border to selected image and restore outline prop

* changelog

* amend borders for consistency in light + dark
2023-07-06 19:50:38 +01:00
pngwn
7fa5e766ce
format (#4810) 2023-07-06 18:43:49 +01:00
Freddy Boulton
bc97b7ba96
Fix login page styling (#4797)
* Fix login

* Add storybook

* Fix import

* fix import

* Add support inline

* Fix changelog

* Fix test
2023-07-06 11:21:55 -04:00
Ali Abdalla
b091c9165e
Fixes some issues with website migration (#4806)
* use _main embedded components

* fix horizontal scrolling in guide

* update guide headers on nav bar

* testing with redirects

* testing with trailingslash
2023-07-06 18:00:36 +03:00
Yuichiro Tachibana (Tsuchiya)
da0e94479a
Lite: Add methods to run Python files mounted on a virtual file system, and unmount() method (#4785)
* Create WorkerProxy.runPythonFile() to run a mounted Python file and rename .runPythonAsync() to .runPythonCode()

* Fix lite/index.html and app/lite/index.ts adjusting the new option name

* Add changeset

* Add controller.unmount()

* Add changeset

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-07-06 11:43:14 +01:00
Yuichiro Tachibana (Tsuchiya)
8d0d4e0a8e
Prebuild lite css (#4788)
* Customize scripts/generate_theme.py to reuse for the CSS generation for @gradio/lite

* Build theme.css at the build time of Gradio-lite and update the frontend app to load it at the initialization phase

* Add changeset

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-07-06 11:38:15 +01:00
pngwn
ea889fa8c4
unit tests for shared component functionality (#4794)
* add more tests

* fixes

* fixes

* fixes

* fix testmatch
2023-07-06 10:55:45 +01:00
renovate[bot]
84d890fc1b
chore(deps): update dependency prettier to v3 (#4792) 2023-07-06 09:22:09 +01:00
pngwn
726115785b
place toast message at the top of the screen on mobile (#4796) 2023-07-06 09:12:46 +01:00
aliabid94
b8eb481473
Share button (#4651)
* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* restore

* merge

* del image'

* update pnpm lock

* changes

* changes

* changes

* changes

* changes

* Update CHANGELOG.md

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

* changes

* fix

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* chagnes

* changes

* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2023-07-05 19:50:17 -05:00
Hannah
acec00f60b
Improve chromatic workflow (#4770)
* only run post deployment link on PRs

* add check for chromatic token job

* replace deprecated  set-output with github_env

* tweak

* add turbosnap config for vite

* sb tweak

* remove (incompatible) turbosnap

* remove redundant flag

* remove turbosnap
2023-07-05 15:18:21 +02:00
Dawood Khan
95ca4d9d69
Adds more tests to outbreak_forecast.spec.ts (#4752)
* tests

* Update outbreak_forecast.spec.ts
2023-07-04 15:23:50 -04:00
pngwn
a2805d5591
4701 upload button unit tests (#4744)
* First upload

* fix tests

* cleanuop

* tweak

* cleanup

* revert

---------

Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-07-04 19:47:31 +01:00
Yuichiro Tachibana (Tsuchiya)
f757febe18
Fix/lite dev code (#4784)
* Stop embedding JS scripts on lite.html because they are also bundled into the final build

* Add changeset

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-07-04 19:29:27 +01:00
Freddy Boulton
3a6406e5d5
ClearButton browser test (#4749)
* Icon testids

* Simpler test

* Add test

* Demo check

* Add notebook

* Revert demo

* Fix code

* Add non-None callable value

* change

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-07-04 19:22:25 +01:00
Dawood Khan
f04c7a8c5f
Fixes column width for textbox in gr.Examples based on the content (#4700)
* fix

* changelog

* Update CHANGELOG.md

* changes

* changes

* tweaks

* fix

* fix

* fix

* fix types

* fix notebooks

* Update CHANGELOG.md

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-07-04 12:21:23 -04:00
Dawood Khan
156bb26280
more tests (#4745)
Co-authored-by: pngwn <hello@pngwn.io>
2023-07-04 15:41:50 +01:00
Yuichiro Tachibana (Tsuchiya)
cb96d657b4
Lite: refactoring the dev script (#4753)
* Rename the 'start' npm command to 'dev' for in-project consistency

* Fix the 'dev:lite' npm command to launch the dev command of @gradio/wasm as well

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-07-04 15:35:58 +01:00
renovate[bot]
0529dfd43e
chore(deps): update dependency mdsvex to ^0.11.0 (#4782) 2023-07-04 15:19:06 +01:00
renovate[bot]
db700df910
chore(deps): update dependency typescript to v5 (#4783) 2023-07-04 14:56:01 +01:00
Ali Abdalla
cd693708cf
Converting the website into sveltekit (#3437)
* index page

* demos page

* guides gallery page

* guides

* some docs work

* changes

* changes

* docs work

* refactor some to ssr

* more refactoring

* add metatags

* add special docs pages and improve nav

* fix prev next in combining

* add changelog

* Site slugs for new website (#3431)

* safe slugs for docs

* add slugs to guides

* changes

* add flagging

---------

Co-authored-by: aliabd <ali.si3luwa@gmail.com>

* make anchor tags visible on hover

* add anchor tags to docs

* fix @html in codeblocks

* fix demos in guides

* syntax highlighting code in example usage

* fix @html in changelog

* fix contributing lin

* fix assets in guides

* fix broken assets on build

* error page

* fix meta tags updating

* move guides to be /guides/[guide] instead of /[guide]

* add headers to sections and make them linkable - freddy feedback

* add guides section to docs

* tighten width and add second nav bar

* styling second nav bar

* smooth scrolling in docs and guides

* make components clickable in event listener graph

* load latest gradio.js

* menu bar on docs mobile

* scrolling highlight menu and remove base docs page

* vercel

* refactor guides

* fix slugs in docs

* fix &lt; and code formatting in guides

* added search

* redirect all old links

* fix bad merge

* fix paths

* Fix css issue with spaces logo

* add status page link to footer

* add themes to docs

* fix new documentation.py path

* add python client docs

* make docs faster

* add clients ot docs

* colors

* convert to adapter static

* prerender

* fix broken paths in guides

* fix broken slugs

* Aliabd/website sveltekit test (#4572)

* fixes to paths

* fixes

* typechecking

* fix

* fix

* fix

* types lib

* more type fixes

* extends fix

* typing fix

* typing fix

* json typing fix

* add jsons

* rollup

* tweak

* fix lockfile

* fix maybe

* fix maybe

* changes

* ui functional fix

* oops

* pnpm version

* fix app

---------

Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-04 16:33:22 +03:00
Yuichiro Tachibana (Tsuchiya)
80b4996595
Lite: filesystem and requirements installer (#4779) 2023-07-04 14:11:22 +01:00
Yuichiro Tachibana (Tsuchiya)
46008b6659
Add 'pnpm --filter @gradio/client build' to the build script of @gradio/lite (#4747) 2023-07-04 13:33:04 +01:00
aliabid94
6cafc75099
Minor tweaks to API page UI (#4740)
* changes

* changes

* changes
2023-07-03 16:45:11 -05:00
aliabid94
6c5427230e
Create Warning, Info modals (#4518)
* changes

* changes

* changes

* changes

* changes

* Styling for error, warning and info toasts (#4603)

* create abstract toast component for info/warning/error

* add icons

* add light mode theming

* add theme mode check and dark mode styles

* update theme_mode on update

* clean up render of toast content

* replace dynamic css vars with toast type css selectors

* tweak colours

* change error pill border colour to align with toasts

* formatting

* fix failed test

* rename icon files and clean up css

* changes

* changes

* changes

* changes

* changes

* changes

* chanegs

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-07-03 16:28:39 -05:00
Hannah
33b5954a3b
Add gradio storybook (#4696)
* initialise storybook

* fix storybook config

* more config

* add test story

* add button story

* add a11y addon

* add chromatic job

* fix script path

* fix path again

* yml tweak

* typo

* tweak

* tweak job

* change when job runs

* revert change

* revert lockfile

* config tweaks

* regen lockfile

* tweak

* tweak

* move chromatic tests to ui workflow

* tweak

* add install deps cmd

* add install pnpm input

* job tweak

* test

* clean up

* regen lockfile

* remove redundant option

* workflow tweak

* tweak

* tweak

* cli tweak

* cli tweak

* restore inspector prop

* skip frontend gradio build and post sb url to PR

* remove pollen import

* cancel job if no-visual-update tag present

* move stoeybook files to /js and amend pnpm scripts

* tweak theme css script

* tweak action body / test tag

* fix plot test and tweak pr comment job

* fix yml

* add gh token

* test

* update pnpm lock

* yml test

* restore yml update comment
2023-07-03 16:21:00 +02:00
Abubakar Abid
0b7340f900
[WIP] Functional tests for yield and cancel (#4678)
* wip

* update demo

* changes

* websocket

* random

* test websockets

* fix stdio error

* fix notebooks

* cancel events

* fix test

* Update js/app/test/cancel_events.spec.ts

Co-authored-by: pngwn <hello@pngwn.io>

* Update js/app/test/cancel_events.spec.ts

Co-authored-by: pngwn <hello@pngwn.io>

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-06-30 10:59:50 -05:00
pngwn
ae80066c8a
chore: update versions (#4741)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-30 10:38:58 +01:00
Yuichiro Tachibana (Tsuchiya)
622e8c62f2
Refactor the HTML files for the gradio-lite development (#4739) 2023-06-30 10:07:28 +01:00
Yuichiro Tachibana (Tsuchiya)
1dc3c1a9a2
Lite: Rerun the Python code and refresh the frontend (#4732) 2023-06-30 08:24:35 +01:00
pngwn
9361a29da2
chore: update versions (#4735) 2023-06-29 22:35:55 +01:00
Yuichiro Tachibana (Tsuchiya)
f9171288d4
Introduce CrossOriginWorker class to load the WebWorker file from a different domain (#4731)
* Introduce CrossOriginWorker class as a workaround to load the webworker.js served from a domain different from the main page

* Update the changesets

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-06-29 21:07:04 +01:00
pngwn
b6f02bdd87
scroll to top when api clicked in spaces (#4714)
* scroll to top when api clicked in spaces

* changelog

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-29 20:59:40 +01:00
Abubakar Abid
409593e9cc
Updates to the API endpoints / docs, and fixing the Theme builder (#4683)
* view API fixes

* code snippet js

* changelog

* api name false

* examples

* client trigger tests

* fix typecheck

* black

* type

* typing

* typing

* update gif

* type ignore

* added tests

* format

* added test

* test

* fix guides

* snippet

* tests

* fix tests

* add test

* fix typing

* fix test

* remove comments
2023-06-29 14:05:25 -05:00
Freddy Boulton
acc72cddee
Fix show_label for Label component (#4713)
* Add code

* Add tests

* Add CHANGELOG
2023-06-29 11:42:26 -04:00
pngwn
8b0c680d9a
chore: update versions (#4720)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-29 15:55:28 +01:00
pngwn
f082dd6e63
fix (#4727)
* fix

* fix

* fix
2023-06-29 15:33:32 +01:00
pngwn
c0baeb4d1c
Fix 123 (#4725)
* fix

* fix again

* fix again

* fix again

* fix again

* fix again

* fix again

* try this?
2023-06-29 14:47:46 +01:00
pngwn
dbb33723fe
Fix 123 (#4724)
* fix

* fix again

* fix again

* fix again

* fix again

* fix again

* fix again
2023-06-29 14:28:55 +01:00
pngwn
16782b9b1f
Fix 123 (#4722)
* fix

* fix again

* fix again
2023-06-29 14:07:14 +01:00
Yuichiro Tachibana (Tsuchiya)
927c176ef6
Add js/lite/package.json (#4718) 2023-06-29 13:25:29 +01:00
Mickey
dc733f47ee
fix(Image): Image mod is mask or color-sketch bug; (#4692)
* fix(Image): Image mod is mask or color-sketch bug;
click undo -> the shadow line not real time change

* fix(Image): write the CHANGELOG

* changelog

* cleanup

---------

Co-authored-by: yanghao <yanghao@dragonest.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-28 23:08:25 +01:00
pngwn
2dcc0845e6
fix hidden error toast (#4712)
* fix hidden error toast

* fix

* try this

* try this

* fix ts

* cleanup
2023-06-28 22:52:12 +01:00
pngwn
085ff0394d
update deps + fix tests (#4675)
* update deps + fix tests

* tweak

* fixes

* changes

* fix everything

* fix checks

* fix

* log

* remove logs

* try this
2023-06-28 22:40:53 +01:00
Dawood Khan
bf26b5f66d
Chatbot Tests (#4662)
* playwright tests for chatbot

* more tests

* changelog

* Update CHANGELOG.md

* fix upload file delay (#4661)

* fix

* changes

* changes

---------

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

* Forward `tqdm` constructor arguments to `Progress` component (#4475)

* Forward tqdm constructor arguments to Progress component

Signed-off-by: Ilya Trushkin <ilya.trushkin@intel.com>

* lint

* reorder args

* added tests

---------

Signed-off-by: Ilya Trushkin <ilya.trushkin@intel.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Remove cleared_value (#4685)

* Remove cleared_value

* CHANGELOG

* Add requirements.txt to dialogpt demo (#4686)

* Add requirements.txt

* Update demo notebook

* Add torch

* remove streaming demo + more tests

* Fix blocks_kitchen_sink and streaming_stt demos (#4699)

* Add code

* Add json file

* Remove streaming_stt demo

* Undo generate_notebooks

* Add blocks_kitchen_sink

* fix tests

* Update js/app/test/chatbot_multimodal.spec.ts

Co-authored-by: pngwn <hello@pngwn.io>

* Update js/app/test/chatbot_multimodal.spec.ts

Co-authored-by: pngwn <hello@pngwn.io>

* Update js/app/test/chatbot_multimodal.spec.ts

Co-authored-by: pngwn <hello@pngwn.io>

* Update js/app/test/chatbot_multimodal.spec.ts

Co-authored-by: pngwn <hello@pngwn.io>

* Update js/app/test/chatbot_multimodal.spec.ts

Co-authored-by: pngwn <hello@pngwn.io>

* Update js/app/test/chatbot_multimodal.spec.ts

Co-authored-by: pngwn <hello@pngwn.io>

* Update js/app/test/chatbot_multimodal.spec.ts

Co-authored-by: pngwn <hello@pngwn.io>

* Update js/app/test/chatbot_multimodal.spec.ts

Co-authored-by: pngwn <hello@pngwn.io>

* Update js/app/test/chatbot_multimodal.spec.ts

Co-authored-by: pngwn <hello@pngwn.io>

* update notebook

* remove debug

* remove debug

---------

Signed-off-by: Ilya Trushkin <ilya.trushkin@intel.com>
Co-authored-by: aliabid94 <aabid94@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ilya Trushkin <ilya.trushkin@intel.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-28 17:11:46 -04:00
Abubakar Abid
dd97ee9940
Dropdown cutoff fix (#4691)
* form

* changelog

* overflow y

* changes

* changes

* changes

* Update js/form/src/DropdownOptions.svelte

Co-authored-by: Aarni Koskela <akx@iki.fi>

* Update js/form/src/DropdownOptions.svelte

Co-authored-by: Aarni Koskela <akx@iki.fi>

* changes

---------

Co-authored-by: Ali Abid <aabid94@gmail.com>
Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-06-28 16:00:27 -05:00
pngwn
1650e1d383
4549 autoplay (#4705)
* changes

* tests

* revert demo

* changelog

* cleanup audio

* more tests

* handle video

* cleanup

* fix notebooks

* cleanup

* reinstate files

* fix notebooks

* fixes

* fix tests
2023-06-28 19:37:21 +01:00
Hannah
58c6d68f20
Add radio unit test (#4710)
* add radio unit test

* add default selection

* remove unused spy
2023-06-28 19:26:34 +01:00
Freddy Boulton
29c916c9a6
Add success e2e test (#4688)
* Add success e2e test

* add demo notebook

* Fix

* Fix test

* Make modifications

* Dont use timeouts

* Format

* Success e2e test fix (#4698)

* try this

* tweak

* tweak

* tweak

* cleanup

* cleanup

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-06-27 15:34:52 -04:00
renovate[bot]
a287ebeaeb
chore(deps): update dependency iframe-resizer to v4.3.6 (#4604) 2023-06-27 16:45:30 +01:00
Freddy Boulton
340718e6c2
Slider browser unit tests (#4681)
* First commit

* Fix test

* move to .config

* indent

* Upgrade pnpm

* Lint + ts

* Add more tests

* Lint

* fix test

* Use spy
2023-06-27 10:28:27 -04:00
Yuichiro Tachibana (Tsuchiya)
4fbdefe94e
Gradio-lite (Gradio Wasm) (#4402) 2023-06-27 08:09:50 +01:00
aliabid94
7b8fbb17c8
fix upload file delay (#4661)
* fix

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-26 08:14:00 -05:00
Freddy Boulton
9e13cf3890
Audio Unit Tests (#4650)
* Add code

* Add better mocks

* Add tests

* Remove unnecessary import

* Remove unnecessary import

* unused import

* Check mocks

* Remove comment
2023-06-23 18:45:28 -04:00
Freddy Boulton
c7081e5747
Fix AnnotatedImage styling + add demo (#4628)
* Fix css + add demo

* CHANGELOG

* Add image_segmentation

* Add notebook

* Fix demo

* Fix demos
2023-06-23 12:49:26 -04:00
pngwn
92d97d529e
switch unit test env to jsdom (#4657) 2023-06-23 13:22:12 +01:00
pngwn
be00a687c9
Test improve (#4655)
* improve test logs for python process

* ensure port is free before startiong server
2023-06-23 12:45:20 +01:00
Dawood Khan
62701f8dce
Remove unnecessary mock json files (#4625)
* remove mock json files

* changelog

* Update CHANGELOG.md
2023-06-22 10:32:48 -04:00
pngwn
36f0b397c6
remove workbench (#4644) 2023-06-22 14:40:05 +01:00
renovate[bot]
633e07150d
chore(deps): update dependency typescript to v5 (#4640)
* chore(deps): update dependency typescript to v5

* fix ts

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-22 13:49:28 +01:00
renovate[bot]
2f488e782c
chore(deps): update dependency postcss-custom-media to v9 (#4630)
* chore(deps): update dependency postcss-custom-media to v9

* fix custom media plugin

* make path absolute

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-22 13:43:34 +01:00
renovate[bot]
04a37fced3
chore(deps): update dependency vite to v4 (#4639) 2023-06-22 12:07:34 +01:00
renovate[bot]
090ced258c
chore(deps): update dependency svelte-vega to v2 (#4637)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-22 11:46:52 +01:00
renovate[bot]
c33828cfdf
chore(deps): update dependency svelte-preprocess to v5 (#4636)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-22 11:39:18 +01:00
renovate[bot]
13f75c12e6
chore(deps): update dependency svelte-check to v3 (#4633)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-22 11:31:01 +01:00
pngwn
1b4cb3300b
Eslint (#4593)
* make eslint work

* add vscodes recommendations + settings

* more

* format

* add to ci but ignore failures

* fix

* fix lockfil

* fix

* Update .config/.eslintrc.cjs

Co-authored-by: Aarni Koskela <akx@iki.fi>

* implement review suggestions

* typo

* fix

* tweak

* add globals and fix client linting

* fix type errors

---------

Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-06-22 11:25:27 +01:00
renovate[bot]
25e021157f
chore(deps): update dependency @types/marked to v5 (#4618)
* chore(deps): update dependency @types/marked to v5

* fix types

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-22 10:34:54 +01:00
renovate[bot]
d0f38c528f
chore(deps): update dependency @testing-library/user-event to v14 (#4617)
* chore(deps): update dependency @testing-library/user-event to v14

* fix test

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-22 10:26:43 +01:00
renovate[bot]
2922e512dd
chore(deps): update dependency @sveltejs/vite-plugin-svelte to v2 (#4614)
* chore(deps): update dependency @sveltejs/vite-plugin-svelte to v2

* tweak

* tweak

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-22 09:34:44 +01:00
aliabid94
458b2d9bbd
Fix scale issues within Dropdown (#4584)
* changs

* changes
2023-06-21 12:34:12 -07:00
aliabid94
0909c35102
Duplicate spaces integration into gradio (#4458)
* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes
2023-06-21 12:25:25 -07:00
renovate[bot]
fa17457d07
chore(deps): update dependency @rollup/plugin-json to v6 (#4613)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-21 19:25:16 +01:00
renovate[bot]
6a92e19a0d
chore(deps): update all non-major dependencies (#4601)
* chore(deps): update all non-major dependencies

* Update website/homepage/Dockerfile

* changelog

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-21 15:56:10 +01:00
Hannah
2efa0b27ff
Add target="_blank" to links in markdown (#4577)
* add DOMPurify afterSanitizeAttributes hook

* changelog
2023-06-21 12:47:03 +02:00
Freddy Boulton
8c001ca769
Fix gallery style (#4576)
* Fix gallery styles

* CHANGELOG

* Fix preview height

* Add back height

* Add back height var

* Add back can_zoom logic

* can_zoom
2023-06-20 17:57:33 -04:00
Freddy Boulton
249f1865e2
Send component data on stop_recording event (#4554)
* Send audio data

* Fix webcam input

* CHANGELOG
2023-06-20 10:44:25 -04:00
pngwn
7e99ce74c7
chore: update versions (#4358) 2023-06-20 14:23:01 +01:00
pngwn
2b91d716c4
support changing the custom element src attributes (#4461)
* suppor changing the custom element src attributes

* changelog

* changelog again

* fix

* some fixes
2023-06-20 11:36:10 +01:00
Aarni Koskela
1068371b9f
Load iframe resizer asynchronously (#4336)
Refs #4332

Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-19 21:11:51 +01:00
pngwn
d6b6c87c4f
Remove mocks (#4550)
* changes

* changes

* remove mocks

* fix scripts

* tweak port

* add logs

* add logs

* do tests again

* tweaks

* fixes

* regen notebooks

* change workers

* change workers

* try to speed up ci

* try again

* try again

* try again

* try again

* try again

* fix actions

* again

* again

* again

* again

* again

* again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* add names to frontend ci steps
2023-06-19 21:02:03 +01:00
Abubakar Abid
309baab7f6
setting visible=False to gr.Group hides it (#4567)
* import init

* visible=False in Group

* restore

* changelog

* Update js/app/src/components/Group/Group.test.ts

Co-authored-by: pngwn <hello@pngwn.io>

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-06-19 13:53:35 -05:00
Freddy Boulton
98d1e8d291
Fix gallery select event with custom height and allow_preview=False (#4551)
* Logic for can_zoom

* CHANGELOG
2023-06-17 14:11:14 -05:00
aliabid94
74d235697d
Fix chatbot height (#4540)
* changes

* changes

* changes

* changes
2023-06-15 14:58:31 -07:00
pngwn
979353454d
fix modal position (#4538)
* fix modal position

* changelog
2023-06-15 22:33:47 +01:00
aliabid94
42d762c616
Chatbot streaming hotfix (#4537)
* changes

* changes

* changes

* changes
2023-06-15 13:24:40 -07:00
Freddy Boulton
e0a7f87b94
Some BarPlot Fixes (#4531)
* Fixes

* CHANGELOG

* Fix
2023-06-15 14:29:40 -04:00
Hannah
7dc73d2bec
Amend error toast and pill styling (#4454)
* remove error gradient and add border to toast

* changelog

* tweak styling for light and dark error status and toast

* run prettier

* restore removed onclick

* remove formatting

* fix dracula test

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-15 19:51:09 +02:00
pngwn
e7ab0f323a
4614 chatbot (#4527)
* fix code rendering

* tweak

* changelog

* tweaks
2023-06-15 16:24:17 +01:00
Dawood Khan
03edbc6f81
Adds Latex Delimiters Parameter (#4516)
* katex

* changes

* format

* fix test

* remove None

* changelog

* Update gradio/components/chatbot.py

* Update gradio/components/chatbot.py

* tweak

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-15 14:27:18 +01:00
Dawood Khan
72fbce22ad
Fixes new line issue in chatbot (#4491)
* fix

* Update CHANGELOG.md
2023-06-14 11:43:30 -04:00
pngwn
69291ff89d
improve error UX (#4459)
* improve error UX

* revert demo

* scroll errors into view if necessary

* changelog

* changelog

* fix error

* fix

* revert demo change

* implement review suggestions

* ensure error message are only trimmed if the begin and end with single quotes

* changelog

* attempt 2 at iframe scrolling

* tweak
2023-06-14 12:50:59 +01:00
Abubakar Abid
4729457929
Add a gr.ClearButton (#4456)
* clear button

* restore

* button in interface

* changelog

* fixes

* simplify

* changes

* components

* changed dropdown behavior

* fix label

* add tests

* update demos

* changelog

* changelog

* restore

* formatting

* revert dropdown

* frontend changes

* other fixes

* changelog

* update guide

* future

* fix tests

* fix tests

* fix tests

* changelog

* update guide
2023-06-13 19:18:14 -05:00
aliabid94
bda25eb19c
Fix JS call (#4486)
* changes

* changes
2023-06-12 19:24:09 -05:00
Freddy Boulton
3383d8872b
Add option to disable the detailed view of the gallery (#4470)
* Add feature

* Fix unit test

* CHANGELOG

* Rename to allow_preview
2023-06-12 17:11:41 -04:00
Jordi Mas
17a3be3d81
Add Catalan translation (#4483)
* Add Catalan translation

* Add CHANGELOG entry
2023-06-12 15:02:02 -05:00
Dawood Khan
e9aa9eec37
gr.Number() max/min limit (#3991)
* Add min max handling for Number (#3871)

* feat: add min max handling for Number

* Update CHANGELOG.md

* fix: Error when min or max is not specified

* fix formatting

* fix: error when nothing is specified

* Just put infinity in min and max

---------

Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>

* number limit

* Update gradio/components.py

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

* New Version Docs (#4027)

* [create-pull-request] automated change

* Trigger Build

---------

Co-authored-by: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>

* Safer `HuggingFaceDatasetSaver` (and deprecate `HuggingFaceDatasetJsonSaver`) (#3973)

* Draft for a safer HuggingFaceDatasetSaver

* Rename (and replace) gr.SaferHuggingFaceDatasetSaver as gr.HuggingFaceDatasetSaver

* update changelog

* ruff

* doc

* tmp work

* merge 2 classes

* remove useless code

* adapt tests

* Update gradio/flagging.py

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

* Update CHANGELOG.md

* fix typing

* code formatting

* removed print from tests

* removing imports

* removing imports

* fix paths

* formatting

* wording

* formating

* fix tests

---------

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

* merge

* Allow state to be rendered multiple times (#4030)

* state render

* add test

* formatting

* changelog

* Allow decoding b64 string without header in processing utils (#4031)

* allow decoding b64 string without headers

* install gradio-client in edittable mode

* update GH actions

* add test for decoding headerless b64

* add test for decoding headerless b64 image

* some linting

* fix test

---------

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

* Sets matplotlib backend to agg before rendering math (#4029)

* matplotlib-agg

* fix

* context manager

* Update CHANGELOG.md

* update demos

* linting

* removed warning

* fix test

* fixes

* fix tests

* Upgrade pyright to 1.1.305 (#4042)

* Fastapi Python Client Guide (#3892)

* fastapi guide

* changelog

* writing

* finish guide

* fix

* Update guides/06_client-libraries/fastapi-app-with-the-gradio-client.md

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>

* Update guides/06_client-libraries/fastapi-app-with-the-gradio-client.md

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>

* Update guides/06_client-libraries/fastapi-app-with-the-gradio-client.md

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>

* Update guides/06_client-libraries/fastapi-app-with-the-gradio-client.md

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>

* dependencies

* html

---------

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>

* fix overflowing gutter and dark mode base color (#4051)

* Add ability to blocklist filepaths, ability to specify where gradio temp files are created (#4047)

* temporary file

* tests

* formatting

* rename

* added another test

* guide

* formatting

* changelog

* added custom gradio temp directory (#4053)

* added custom gradio temp directory

* Update 03_sharing-your-app.md

* rename test

* address review

* remove print

* 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>

* Fixes issue with indentation in code field with streaming (#4043)

* indent fix

* fix

* changelog

* fix overflowing gutter and dark mode base color (#4051)

* Add ability to blocklist filepaths, ability to specify where gradio temp files are created (#4047)

* temporary file

* tests

* formatting

* rename

* added another test

* guide

* formatting

* changelog

* added custom gradio temp directory (#4053)

* added custom gradio temp directory

* Update 03_sharing-your-app.md

* rename test

* address review

* remove print

* 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>

* fix

* fix test

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Ali Abid <aabid94@gmail.com>

* [create-pull-request] automated change (#4059)

Co-authored-by: aliabid94 <aliabid94@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* changelog (#4064)

* New Version Docs (#4069)

* [create-pull-request] automated change

* Trigger Build

---------

Co-authored-by: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>

* Soft theme fix (#4070)

* fix

* fix

---------

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

* Empty gallery fix (#4072)

* changes

* changes

---------

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

* Fix bug where functions with type hints caused errors (#4068)

* Fix + test

* CHANGELOG

* Update test/test_utils.py

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

* Update gradio/utils.py

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

---------

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

* 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>

* [WIP] Language Agnostic Typing in `/info` route (#4039)

* First commit

* All serializers

* Remove output type

* Add route

* Format json

* Modify dropdown and slider choices

* Fix impl

* Lint

* Add tests

* Fix lint

* remove breakpoint

* Tests passing locally

* Format code

* Address comments

* Use union + fix tests

* handle multiple file case

* Add serializer to info payload

* lint

* Add to CHANGELOG

* grc version

* requirements

* fix test

---------

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

* Keep hidden Accordion content in DOM (#4073)

* changes

* changes

---------

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

* Theme builder fixes (#4080)

* theme-builder-fixes

* theme-builder-fixes

* fix expand issue

* changes

* Update gradio/themes/builder_app.py

* changelog

---------

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

* 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>

* Removing "State" from view API info (#4107)

* wip pr

* update client version

* update space fetcher

* changelog, workflow

* fix not flaky tests

* lint

* v2

* Dont send request to `/info` if version before 3.28.3 (#4109)

* Add code

* Lint

* CHANGELOG

---------

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

* Upload audio ios (#4071)

* changes

* changes

* change

* changes

* changes

* changes

---------

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

* Allow textbox / number submits to trigger Interface submit (#4090)

* changes

* changes

* changes

* changes

* changes

---------

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

* 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>

* Fix then logic to work after failures (#4115)

* change

* changes

* changes

---------

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

* 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>

* Add support for async generators (#3821)

* Add impl + unit test

* CHANGELOG

* Lint

* Type check

* Remove print

* Fix tests

* revert change

* Lint

* formatting

* Fix test

* Lint

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>

* release (#4116)

* Bumpt client version (#4125)

* New Version Docs (#4131)

* [create-pull-request] automated change

* Trigger Build

---------

Co-authored-by: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>

* Fix create version docs action (#4130)

* define version instead of upgrading

* add sleep

---------

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

* 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>

* changelog (#4136)

* Fix website build issue (#4142)

* upgrade pnpm

* changelgo

* Fix python client test (#4138)

* Fix python client test

* CHANGELOG

---------

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

* Fix isssue with running with nginx (#4133)

* nginx-root

* fix

* ability to set root path

* removed root

* removed root

* fix

* changelog

* Update gradio/routes.py

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

* Update gradio/routes.py

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

---------

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

* Record username when flagging (#4135)

* record username

* fix

* changelog fix

* format

* fix hf saver

* fix deserialization

* fixes

* Fix api info for File component (#4153)

* Fix output file type info

* Fix example inputs

* CHANGELOG

* Update client

* Add test

* Bump version

* Bump min client version

* Update .prettierignore adding client/js/dist and .venv (#4160)

* Fix the prettier.ignorePath field in the VSCode workspace settings (#4164)

Co-authored-by: pngwn <hello@pngwn.io>

* simplify format of changelog (#4163)

* Fix the wildcard in .editorconfig to match files in nested directories (#4165)

* Fix the wildcard in .editorconfig to match files in nested directories

* Remove a wrong whitespace in a brace expansion notation in .editorconfig

---------

Co-authored-by: pngwn <hello@pngwn.io>

* Fix flaky interface test (#4168)

* Fix test

* Lint

* Fix vs code lint

* Adds missing components to gradio client serializing's component mapping (#4167)

* add missing serialization

* format

* update release note format

* update release note format

* fix test

* Release 3.30 (#4166)

* release

* requirements

* [Docs] Resolve numerous typos (#4170)

* Resolve numerous typos

* Delete test.py

* Run generate_notebooks

* notebooks

---------

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

* New Version Docs (#4172)

* [create-pull-request] automated change

* Update v3.30.0_template.html

---------

Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Dispatch dropdown change on value change for any reason (#4128)

* changes

* changes

* changes

---------

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

* hotfix for test (#4173)

* hotfix for test

* removed comment

* 3712 js client (#3899)

* update ci (#4184)

* bump client version (#4185)

* bump client version

* ignore spaces-test

* Fix (#4186)

* bump client version

* ignore spaces-test

* fix

* update token for npm action (#4187)

* change (#4189)

* ci typo (#4190)

* Fix npm publish again again (#4191)

* ci typo

* fix

* Fix npm publish again again (#4192)

* ci typo

* fix

* again

* Fix npm publish again again (#4193)

* ci typo

* fix

* again

* again

* Add format argument to Audio (#4178)

* experimental

* Add test

* Rename to format

* Rename

* CHANGELOG

* Add to docstring

* Update gradio/components.py

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

---------

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

* chore: update versions (#4188)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fix npm publish again again (#4195)

* ci typo

* fix

* again

* again

* again

* client docs tweaks (#4196)

* ci typo

* fix

* again

* again

* again

* ignore workbench

* small tweaks for publish + docs

* Fix "TypeError: issubclass() arg 1 must be a class" When Optional args  (#4200)

* fix "issubclass() arg 1 must be a class" when args is Optional

* Update CHANGELOG.md

add fix "TypeError: issubclass() arg 1 must be a class" when use Optional args

* Update gradio/helpers.py

Co-authored-by: Aarni Koskela <akx@iki.fi>

* changelog

* formatting

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Aarni Koskela <akx@iki.fi>

* Fix semiver import (#4201)

* fix token (#4208)

* fix token

* add label

* Fix Explanation Regarding NumPy Image Component (#4204)

* 20230513 swap np height and width in docs

* changelog

---------

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

* Correct stacklevel for check_deprecated_parameters (#4203)

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

* Programmatically launch reload to allow factories and arguments to be passed to the app (#4119)

* Programmatically lauch reload to allow factories and arguments to be passed to the app

* add warning

* modify warning

* guide fixes

* formatting

* changes

* warning

* import fix

* fix tests

* fix tests

---------

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

* Update CONTRIBUTING.md (#4220)

* 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>

* Do not do any analytics requests if analytics are disabled (#4194)

* Move analytics-related bits to gradio.analytics

* Do not do any analytics requests if analytics are disabled

* Remove unused log_feature_analytics

* removed redundant analytics, rewrote

* renamed

* save

* fixed test'

---------

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

* Increase websocket messaging timeout (#4235)

* increase websocket timeout

* changelog

* Fix for `typing.get_type_hints()` on Python 3.9 or lower (#4228)

* fix

* fix docstring

* type hint fix

* fix test

* Update gradio/utils.py

Co-authored-by: Aarni Koskela <akx@iki.fi>

* fix indentation

---------

Co-authored-by: Aarni Koskela <akx@iki.fi>

* Some tweaks to the Client (#4230)

* parameter names

* tweaks

* separate out serialize

* fix

* changelog

* fix

* fix

* improve test

* Only allow messaging update if analytics is enabled (#4236)

* Only allow messaging update if analytics are allowed

Follows up on #4194

* Remove duplicate changelog entry

* remove circular import

---------

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

* 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>

* fix cancels (#4225)

* fix cancels

* changelog

* refactor to make it work

* chore: update versions (#4207)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fix publish (#4240)

* fix npm publish

* fix npm publish

* release (#4219)

Co-authored-by: pngwn <hello@pngwn.io>

* Fixes chatbot_dialogpt demo (#4238)

* demo fix

* changelog

* fix

* demo

---------

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

* Fix JSONDecodeError (#4241)

* Fix JSONDecodeError bug (#4237)

* Remove unused import

* Clean up code

* Fix JSONDecodeError (#4241)

* Accept all Exceptions

---------

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

* make workbench private (#4247)

* 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>

* 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>

* [create-pull-request] automated change (#4250)

Co-authored-by: aliabd <aliabd@users.noreply.github.com>

* Fix run on click (#4258)

* fix run on click

* changelog

* Upgrade black to 23.3 (#4259)

* Upgrade black

* Conservatively upgrade packaging too since it's black's dependency

* Using marked for chatbot markdown parsing (#4150)

* fix info request in js client (#4271)

* fix info request in js client

* changelog

* Temp file fixes (#4256)

* Fix bug

* Linting

* CHANGELOG

* Add tests

* Update test

* Fix remaining components + add tests

* Fix tests

* Fix tests

* Address comments

* Ensure error modal display as expected when using the queue (#4273)

* Allow passing FastAPI app options (#4282)

* App: don't force docs_url and redoc_url to None

* App.create_app: allow passing in app_kwargs

* start_server + launch: allow passing in app_kwargs

* Changelog

* Apply suggestions from code review

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

* Use .launch for tests

---------

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

* Katex support in chatbot (#4285)

* katex

* katex support

* changelog

* fixes

* pr fixes

---------

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

* Release 3.32.0 (#4293)

* release 3.32.0

* changelog

* New Version Docs (#4296)

* [create-pull-request] automated change

* Update v3.32.0_template.html

---------

Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Add overridden type annotations on `normalise_file()` to remove @ts-i… (#4315)

* Add overridden type annotations on `normalise_file()` to remove @ts-ignore, and remove its unnecessary export

* changeset

---------

Co-authored-by: pngwn <hello@pngwn.io>

* typo (minor): extra newline puts the documentation of colums to grid (#4337)

* typo (minor): extra newline puts the documentation of colums to grid

* edited changelog

* changelog

---------

Co-authored-by: thiswillbeyourgithub <github@32mail.33mail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* return a Dependency instance from Blocks.load event listener (#4304)

* return a Dependency instance from Blocks.load event listener

* a test case for chaining then from load event

* update CHANGELOG

* add test for load.then with blocks re-used

* fixes

---------

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

* Fix typo in client/js/README.md (#4310)

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

* chore: update versions (#4283)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Optimize frontend's is_dep calls (#4334)

* Optimize is_dep (36 to 12 msec)

* Call is_dep less (12 msec to 9 msec)

* Changelog

---------

Co-authored-by: pngwn <hello@pngwn.io>

* various client refactors + tweaks (#4357)

* changeset

* Add a type annotation on the `api` variable to which the return value of `view_config()` is assigned, and update the type annotation and exception handling on `view_config` as well (#4311)

* Remove unnecessary @ts-ignore (#4314)

* Remove unnecessary Promise wrapping another promise (#4313)

* Remove unnecessary Promise wrapping another promise

* Remove an error handeler that may remove detailed error stacks

* changeset

* remove changeset

---------

Co-authored-by: pngwn <hello@pngwn.io>

* Stop using `let` for unchanged variables in `client.ts` (#4312)

* Stop using `let` for unchanged variables in `client.ts`

* fixes

---------

Co-authored-by: pngwn <hello@pngwn.io>

---------

Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>

* Remove a bunch of unused frontend code (#4275)

Co-authored-by: pngwn <hello@pngwn.io>

* Respect `interactive=True` in output of `gr.Interface` (#4356)

* tests

* changelog

* lint

* Update gradio/interface.py

Co-authored-by: Aarni Koskela <akx@iki.fi>

* format

---------

Co-authored-by: Aarni Koskela <akx@iki.fi>

* Don't allow dotfiles for /file= route (#4303)

* Don't allow dotfiles or files in "dot directories" for /file=

* update guide

---------

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

* Push to spaces (#4033)

* changes

* first commit

* Update gradio/upload.py

Co-authored-by: Aarni Koskela <akx@iki.fi>

* Update gradio/upload.py

Co-authored-by: Aarni Koskela <akx@iki.fi>

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* chnages

* changes

* changes

* changes

* changes

* Update 03_sharing-your-app.md

* changes

* changes

* change

* changes

* changes

* changes

* Update gradio/deploy_space.py

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

* changes

* changes

* changes

---------

Co-authored-by: Aarni Koskela <akx@iki.fi>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Do not send HF token to other domains via `/proxy` (#4368)

* test

* fix

* changelog

* fix, add warnings

* Make chatbot input fields non-interactive while bot is streaming (#4363)

* Add demo impl

* trigger then if generating

* remove unused value

* CHANGELOG

* Fix code

* Update guide

* Update guides/07_other-tutorials/creating-a-chatbot.md

Co-authored-by: pngwn <hello@pngwn.io>

---------

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

* Prevent path traversal in `/file` routes (#4370)

* add tests

* add tests

* file route fix

* update tests

* formatting

* file access

* cleanup

* cleaning

* fix tests

* Favicon fix for Windows (#4369)

* favicon fix

* changelog

* svg

* remove favicon

* actual fix

* Add pypi classifiers to pyproject.toml (#4383)

* Add pypi classifiers to pyproject.toml

* Add OS classifier

---------

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>

* Use DOMPurify to sanitize html in chatbot (#4360)

* dompurify

* changelog

* format

* clean

* changelog

* Update run.py

* update happy-dom

---------

Co-authored-by: pngwn <hello@pngwn.io>

* fix copy button invalid & copy button (invisible) duplication bug in chatbot (#4350)

* fix a copy button duplication bug in chatbot

* fix copy button invalid issue

* Update CHANGELOG.md: Fixed Copy Button

* fix changelog typo

* switch to static HTML + event delegation for copy button

* fix

* format + notebooks

* format + notebooks

---------

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

* release 3.33.0 (#4392)

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

* Restore offline support (#4398)

* changes

* changes

* changes

* New Version Docs (#4397)

* [create-pull-request] automated change

* Update temporary_template.html

---------

Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Fix Base parent in Docs, add Group (#4391)

* fix base parent

* add group to docs

---------

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

* Remove old versioned docs and fix repo classification  (#4362)

* remove old versioned docs

* delete versioned docs when new one is created

* ignore website dir in linguist calc

* upload and download versioned docs

* modify github action

* remove gitattributes file

---------

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

* Update message when share link binary is blocked (#4380)

* update share link message

* address suggestion

* changelog

* fix

* formatting

* Update utils.py for validate_url (#4388)

* Update utils.py for validate_url

AWS s3 presigned url cannot work for both HEAD and GET. So when HEAD the presigned url, it will return 403(Forbidden)

* Update gradio/utils.py

* changelog

---------

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

* v3.33.1 + Guide on setting up Gradio behind nginx... (#4379)

* nginx guide

* delete 3.33.0

* version

* unindent

* Prevent label change event from triggering itself (#4371)

* Fix the Node and pnpm setup actions (#4394)

* Run `pnpm i` with pnpm@8.6.0 to re-generate the lock file (#4393)

* fix indent (#4404)

* Throttle scroll event  (#4158)

* Throttle scroll event

This decreases the amount of function calls when scrolling through the documentation website.

* fix themes base

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>

* merge

* fixes

* changes

* more changes

* notebook

* changelog

* error handle backend

* Update gradio/components.py

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

* Update gradio/components.py

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

* Adds `variant` and `interactive` props to `gr.UploadButton` (#4436)

* upload button

* fix index

* changelog

* formatting

* cleanup

* fix  get_continuous_fn bug when having every (#4434)

* fix the bug for wrap continuous func with parameter every while origin func return generator

* Update utils.py

* Update CHANGELOG.md

* Update test_utils.py

* Update CHANGELOG.md

* formatting

---------

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

* Fix Safari video playback (#4433)

* changes

* changes

---------

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

* test fix

* test

* tests

* fix ui test

* format

* Increase version gradio-client version/changelog (#4441)

* Increase version gradio-client version/changelog

* req

---------

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

* fixes

* notebook

* fixed tests finally

* format

* python test fix

* test fix

* remove style from test

* Update CHANGELOG.md

* theme test fix

---------

Co-authored-by: Artemy Egorov <artegoser@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: Lucain <lucainp@gmail.com>
Co-authored-by: testbot <lucainp@hf.co>
Co-authored-by: 1lint <105617163+1lint@users.noreply.github.com>
Co-authored-by: Aarni Koskela <akx@iki.fi>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Ali Abid <aabid94@gmail.com>
Co-authored-by: aliabid94 <aliabid94@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: space-nuko <24979496+space-nuko@users.noreply.github.com>
Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
Co-authored-by: Tom Aarsen <37621491+tomaarsen@users.noreply.github.com>
Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: LingFeng.Chen.Cn <lingfeng.chen.cn@gmail.com>
Co-authored-by: Der Chien <b03902015@ntu.edu.tw>
Co-authored-by: Micky Brunetti <micky2be@users.noreply.github.com>
Co-authored-by: David Ai <davidai2018@gmail.com>
Co-authored-by: thiswillbeyourgithub <26625900+thiswillbeyourgithub@users.noreply.github.com>
Co-authored-by: thiswillbeyourgithub <github@32mail.33mail.com>
Co-authored-by: Paul Garner <ego@anentropic.com>
Co-authored-by: WilliamRoyNelson <william.roy.nelson@gmail.com>
Co-authored-by: binary-husky <96192199+binary-husky@users.noreply.github.com>
Co-authored-by: Yan <alvindaiyan@gmail.com>
Co-authored-by: Shavit <shavit@users.noreply.github.com>
Co-authored-by: dkjshk <xie0510@126.com>
2023-06-10 21:12:11 -04:00
Abubakar Abid
3d82094de2
Support PAUSED Space status when embedding (#4438)
* Support paused status

* fix

* changelog

* Update client/js/src/client.ts

Co-authored-by: pngwn <hello@pngwn.io>

* formatting

* added paused space

* formatting

* logs

* added test space, fixes

* Update client/js/src/client.ts

Co-authored-by: pngwn <hello@pngwn.io>

* remove logs

* fix

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-06-09 02:20:16 -05:00
pngwn
3d334e245f
implement autoplay for Video and Audio (#4453) 2023-06-09 08:27:58 +09:00
aliabid94
6888e30e79
UI hotfixes for Examples and Dataframe (#4455)
* changes

* changes
2023-06-08 15:33:43 -07:00
pngwn
25ca014d20
fix tab layout (#4419)
* fix tab layout

* changelog

* tweak

* format

* changes

* fix

* fix

* fix tab wrapping

* formatting
2023-06-09 01:07:04 +09:00
pngwn
3e4871c3d9
UI fix (#4447)
* revert correct empty sizes for components

* tweak

* changelog

* fix empty icon alignment with custom height

* fixes

* revert demo

* more tweaks

* remove logs

* format
2023-06-08 21:24:13 +09:00
Aarni Koskela
94f0267d8e
is_external_url: support relative URLs (#4449)
Follows up on #4405
2023-06-08 12:17:29 +01:00
pngwn
fd2538bd05
add new audio + video events (#4422) 2023-06-08 12:54:02 +09:00
Aarni Koskela
9c5a1d871c
Optimize unnecessary uses of new Promise() (#4442)
* Optimize out unnecessary uses of new Promise()

* tweak

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-06-08 11:49:09 +09:00
aliabid94
ff6e676a92
Remove style parameter (#4374)
* changes

* changes

* changes

* changes

* changes

* changes

* fixes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes
2023-06-07 18:35:31 -07:00
Abubakar Abid
8617291049
Release v3.34.0 (#4446)
* version

* fix

* changes

* changes

---------

Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-06-07 17:28:15 -05:00
Dawood Khan
2829507e7d
Fixes upload button cannot upload same file twice (#4437)
* fix

* Update CHANGELOG.md
2023-06-07 13:52:09 -07:00
Abubakar Abid
d82dfb886d
Fix loading private Spaces (#4430)
* replace api key with hf_token

* removed extra slash

* changelog

* update notebooks

* lint

* changelog

* changelog

* revert demo
2023-06-07 13:55:05 -05:00
aliabid94
866b57b93c
Fix Safari video playback (#4433)
* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-06 14:49:04 -07:00
Abubakar Abid
9c45aceb30
Adds variant and interactive props to gr.UploadButton (#4436)
* upload button

* fix index

* changelog

* formatting

* cleanup
2023-06-06 13:30:10 -05:00
Hannah
1c48b3e857
Remove anchor tag target override (#4405)
* amend setAttribute logic on anchor tags

* add changelog entry

* tweak setattribute logic

* tweak logic for external links

* changelog tweak

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-06-06 14:01:49 +01:00
2-5
0a8dbcafa2
Updated CI info in contributing docs (#4415)
* updated CI info in contributing docs

* Split CI checks into two sections

* Reorder CI sections

* Renamed CI sections

---------

Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-06-06 08:52:29 -04:00
Hannah
8730d40505
Fix z-index of status tracker (#4429)
* change z-index of status tracker wrapper

* changelog

* remove typo and restore removed line
2023-06-06 11:02:01 +01:00
aliabid94
bc786ae4da
Corner status tracker (#4396)
* changes

* first commit

* Update gradio/upload.py

Co-authored-by: Aarni Koskela <akx@iki.fi>

* Update gradio/upload.py

Co-authored-by: Aarni Koskela <akx@iki.fi>

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* chnages

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* chagnes

* changes

* changes

* changes

* changes

* changes

* changes

---------

Co-authored-by: Aarni Koskela <akx@iki.fi>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-05 18:11:53 -07:00
aliabid94
e4014d058d
Remove statustracker flicker on quick requests (#4349)
* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-05 17:10:29 -07:00
Freddy Boulton
3cfb29a996
Prevent label change event from triggering itself (#4371) 2023-06-02 14:31:09 +09:00
aliabid94
b661e3a7c2
Restore offline support (#4398)
* changes

* changes

* changes
2023-06-01 15:37:07 -07:00
binary-husky
2a30deed84
fix copy button invalid & copy button (invisible) duplication bug in chatbot (#4350)
* fix a copy button duplication bug in chatbot

* fix copy button invalid issue

* Update CHANGELOG.md: Fixed Copy Button

* fix changelog typo

* switch to static HTML + event delegation for copy button

* fix

* format + notebooks

* format + notebooks

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-01 22:51:36 +09:00
Dawood Khan
01d334b0b9
Use DOMPurify to sanitize html in chatbot (#4360)
* dompurify

* changelog

* format

* clean

* changelog

* Update run.py

* update happy-dom

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-06-01 21:52:24 +09:00
Aarni Koskela
0a6a80ce02
Remove a bunch of unused frontend code (#4275)
Co-authored-by: pngwn <hello@pngwn.io>
2023-05-30 12:02:04 +09:00
Aarni Koskela
59e487d30c
Optimize frontend's is_dep calls (#4334)
* Optimize is_dep (36 to 12 msec)

* Call is_dep less (12 msec to 9 msec)

* Changelog

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-05-30 10:39:19 +09:00
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
Dawood Khan
88a487c07c
Add styles to gallery component (#3586)
* update gallery styles

* Set theme name from load (#3595)

* Add name + test

* Add theme names

* CHANGELOG

* Delete theme in interface

* Trigger event when Slider number input is released (#3589)

* Add event

* Add unit test

* CHANGELOG

* Sets up the Python `gradio` client (#3300)

* placeholder

* changelog

* added to readme

* client

* implement futures

* utils

* scripts

* lint

* reorg

* scripts

* serialization

* cleanup

* fns

* serialize

* cache

* callbacks

* updates

* formatting

* packaging

* requirements

* remove changelog

* client

* access token

* formatting

* deprecate

* format backend

* client replace

* updates

* moving from utils

* remove code duplication

* rm duplicates

* simplify

* galleryserializer

* serializable

* load serializers

* fixing errors

* errors

* typing

* tests

* changelog

* lint

* fix lint

* fixing files

* formatting

* type

* fix type checking

* changelog

* changelog

* Update client/python/gradio_client/client.py

Co-authored-by: Lucain <lucainp@gmail.com>

* formatting, tests

* formatting, tests

* gr.load

* refactoring

* refactoring'

* formatting

* formatting

* tests

* tests

* fix tests

* cleanup

* added tests

* adding scripts

* formatting

* address review comments

* readme

* serialize info

* remove from changelog

* version 0.0.2 released

* lint

* type fix

* check

* type issues

* hf_token

* update hf token

* telemetry

* docs, circle dependency

* hf token

* formatting

* updates

* sort

* script

* external

* docs

* formatting

* fixes

* scripts

* requirements

* fix tests

* context

* changes

* formatting

* fixes

* format fix

---------

Co-authored-by: Lucain <lucainp@gmail.com>

* Translate "or" for i18n (#3599)

* Translate or for i18n

* CHANGELOG

* Fixes Blocks exit issue (#3600)

* fix

* changelog

* blocks

* formatting

* Use gradio-api-server for telemetry (#3488)

* analytics

* changelog

* remove interface analytics

* ip

* remove import

* format

* theme name

* theme analytics

* format

* changelog

* fixes

* format

* remove unused param

---------

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

* Simplify tests (#3608)

* simplify tests

* imports

* imports

* formatting

* removed cometml typing

* simplify

* changelog

* fix wc error in dev mode (#3572)

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

* A few small fixes to docs / demos (#3611)

* fixes

* remove binaries

* doc

* changelog

* typing

* run on windows

* cancels

* added clarifications

* Add docs for HF Json saver (#3604)

* Add docs for flagging

* Fix params

* CHANGELOG

---------

Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>

* ensure css loads before mounting app (#3573)

* ensure css loads before mounting app

* changelog

* fix tests

* change?

* changelog

* fix issue with missing version (#3632)

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>

* Fixes chatbot autoscroll + Textbox lines > 20 issue (#3637)

* fixes

* changelog

* Update gradio/components.py

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

* Update CHANGELOG.md

* Update CHANGELOG.md

---------

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

* Fix embedded demos (#3638)

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

* Add Windows CI (#3628)

* Add Windows CI

* Update changelog

* fix

* Skip one test on Windows

* Preserve virtualenv path

* Skip another test on Windows

* Make conditional flaky

* Requested changes

* consistent os

* cleanup

* fix test for windows

* remove unnecessary check

* lint

* lint

---------

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

* move files (#3605)

* move files

* commit the rest of the files

* fix lockfile

* fix workflow

* fix type errors

* fix tests

* only run ci when certain files change

* run correct test command in ci

* version

* fix pypi script

---------

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

* Support empty lists being used in `gr.Dataframe` (#3646)

* Support empty lists being used in `gr.Dataframe`

* Update changelog

* Add empty dataframe test

---------

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

* Fix windows flake (#3650)

* fix windows flake

* format backend

---------

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>

* Raise errror if event queued but queue is not enabled (#3640)

* Raise Error

* CHANGELOG

* Add progress tracking validate_queue_settings

* Update gradio/blocks.py

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

* Fix test

---------

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

* Copy everything in website Dockerfile, fix build issues (#3659)

* dockerfile

* copy everything from repo

* correct dir

* changelog

* Correct the documentation of `gr.File` component (#3660)

This closes #3658.

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

* Nit in ValueError (#3669)

* Nit in ValueError

* CHANGELOG

---------

Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>

* Load upstream theme (#3641)

* theme loading

* upstream theme

* version

* format themes

* fixes

* tests

* one more test

* fix test

* address review

* Add job for python client ci (#3674)

* Add job + lint

* Fix path

* Fix path

* Fix path

* Checkout

* Add test requirements

* Fix syntax

* Fix test

* Lint

* Fix deps + README

* Move dependency

* Hide dropdown if in single-select mode (#3678)

* Hide dropdown if in single-select mode

* Update changelog

---------

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

* Fix default parameters value and gr.Progress in same function (#3671)

* Fix default parameters value and gr.Progress in same function

* Update changelog

* Fix tests

* Format

* Expand tests for other types of special function arguments

* Augment SelectData tests

---------

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

* warning

* changelog

* ghangelog

* changelog

* object fit optional

* Add status for Python Client Jobs (#3645)

* Add status + unit test (flaky) for now

* Install client

* Fix tests

* Lint backend + tests

* Add non-queue test

* Fix name

* Use lock instead

* Add simplify implementation + fix tests

* Restore changes to scripts

* Fix README typo

* Fix CI

* Add two concurrent test

* Fix broken spaces in docs (#3698)

* fix examples in sentence_builder

* fix sklearn error in titanic demo

* regenerate notebooks

* changelgo

* Add download button for video (#3581)

* Add download buttom

* Add missing imports

* CHANGELOG

* Update CHANGELOG.md

* Trigger CI

* Fix visibility

* Try to fix ci

* Fix deps

* download button change

* Lint

---------

Co-authored-by: Dawood <dawoodkhan82@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Fix outdated sharing your app guide (#3699)

* fix embed this space screenshot

* fix use via api

* changelog

---------

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>

* Add orig_name field to video outputs (#3700)

* Add orig_name to video

* Fix test

* CHANGELOG

* Lint

* Theme builder (#3664)

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* Update CHANGELOG.md

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

* Update gradio/themes/builder.py

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

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

---------

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

* fix dropdowns, release 3.24 (#3713)

* changes

* changes

* Update version.txt

* New Version Docs (#3715)

* [create-pull-request] automated change

* fix changelog

---------

Co-authored-by: abidlabs <abidlabs@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Fix chatbot newline issue (#3717)

* changes

* changes

* changes

* changelog

---------

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

* New Version Docs (#3720)

* [create-pull-request] automated change

* Trigger Build

---------

Co-authored-by: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>

* Fix Serializer Mapping  (#3722)

* Fix mapping and test

* Bump gradio version

* Revert gradio version bump

* Fix some bugs related to Python client (#3721)

* client format

* docs

* formatting

* fix tests

* fixed bug

* api endpoint changes

* fix tests

* fix tests

* formatting

* Add support for sessions [python client] (#3731)

* client

* add state and tests

* remove session param

* node support for js client (#3692)

* bundle js client + gen types

* changeset

* changeset

* fix bugs

* fix deps

* fix deps

* format

* fix ci

* fix types

* Support IPv6 addresses for --server-name (#3695)

* Support IPv6 addresses for --server-name

* Update changelog now that I have a PR number.

---------

Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>

* Increase timeout for analytics request + remove exception print (#3647)

* increase timeout

* merge

* Add changelog

---------

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>

* 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>

* Fix missing docstrings (new PR) (#3740)

* Move documentation for _js into docstring, not a stray comment

* Add missing argument docstrings (and remove non-existent ones)

* Add changelog entry

* updated docstrings

* changelog

* contributors

* changelog

* formatting

* removed _js

---------

Co-authored-by: Aarni Koskela <akx@iki.fi>

* import (#3742)

* Import Literal from typing extensions in client (#3741)

* Fix typing extensions

* Import typing_extensions

---------

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

* Access http token for ws connection (#3735)

* Access unsecure token

* CHANGELOG

---------

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

* Add root_url to serializers in gradio_client (#3736)

* Add root_url to serializers

* Add url fix

* Respect fn parameter

* Fix docstring

* Add other test

* Pass to method

* CI tweaks (#3752)

* Adds a pypi release action for the gradio python client (#3743)

* release action

* fixes

* name

* Update version.txt

* Update version.txt

* update

* fixes

* version

* rename

* action

* fix token

* custom dir

* fixes

* change password

* revert back to token

* scripts

* remove twine

* Get Intermediate Results from Python Client (#3694)

* Add status + unit test (flaky) for now

* Install client

* Fix tests

* Lint backend + tests

* Add non-queue test

* Fix name

* Use lock instead

* Add simplify implementation + fix tests

* Restore changes to scripts

* Fix README typo

* Fix CI

* Add intermediate results to python client

* Type check

* Typecheck again

* Catch exception:

* Thinking

* Dont read generator from config

* add no queue test

* Remove unused method

* Fix types

* Remove breakpoint

* Fix code

* Fix test

* Fix tests

* Unpack list

* Add docstring

---------

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

* changes (#3760)

* Make Client Jobs Iterable (#3762)

* Add iterator

* Break if done

* Add test for early termination

* changelog

* notebooks

---------

Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Lucain <lucainp@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Omar Sanseviero <osanseviero@gmail.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: space-nuko <24979496+space-nuko@users.noreply.github.com>
Co-authored-by: Luo Peng <luopeng.he@gmail.com>
Co-authored-by: aliabid94 <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: aliabd <aliabd@users.noreply.github.com>
Co-authored-by: Dan Sully <dan+github@sully.org>
Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-04-06 09:38:25 -07:00
space-nuko
ebfce0f784
Make gr.Code support lines, expand to fill entire element (#3651)
* Make `gr.Code` support `lines`, expand to fill entire element

* Update changelog

* Fix typeerrors

* Fix test

* fix interactive bug with update

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-04-06 15:52:57 +01:00
Abubakar Abid
c0d70a7af5
Fix for default file name of recorded audio files (#3770)
* mic name

* changelog

* marked as flaky
2023-04-05 13:20:03 -07:00
pngwn
48e8b113f4
node support for js client (#3692)
* bundle js client + gen types

* changeset

* changeset

* fix bugs

* fix deps

* fix deps

* format

* fix ci

* fix types
2023-04-03 14:33:01 +01:00
aliabid94
43680f1c7a
fix dropdowns, release 3.24 (#3713)
* changes

* changes

* Update version.txt
2023-03-30 16:38:08 -07:00
aliabid94
09aedce77c
Theme builder (#3664)
* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* Update CHANGELOG.md

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

* Update gradio/themes/builder.py

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

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-30 11:20:34 -07:00
Freddy Boulton
03a11fcd3c
Add download button for video (#3581)
* Add download buttom

* Add missing imports

* CHANGELOG

* Update CHANGELOG.md

* Trigger CI

* Fix visibility

* Try to fix ci

* Fix deps

* download button change

* Lint

---------

Co-authored-by: Dawood <dawoodkhan82@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-29 19:30:00 -04:00
space-nuko
cbb84927a7
Only give same values .selected class in gr.Dropdown (#3644)
* Only give same values .selected class in gr.Dropdown

* Update changelog

* Requested changes

* Format

* Update changelog

* isort

* Update js/form/src/DropdownOptions.svelte

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2023-03-29 23:10:43 +01:00
space-nuko
2f160e2b90
Only wrap single JS return value if not already an array (#3594)
* Only wrap single JS return value if not already an array

* Update CHANGELOG

* pin

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-29 14:40:03 -07:00
space-nuko
61b9a58175
Hide dropdown if in single-select mode (#3678)
* Hide dropdown if in single-select mode

* Update changelog

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-28 19:21:51 -07:00
pngwn
ae4277a9a8
move files (#3605)
* move files

* commit the rest of the files

* fix lockfile

* fix workflow

* fix type errors

* fix tests

* only run ci when certain files change

* run correct test command in ci

* version

* fix pypi script

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-27 16:12:58 -07:00
Abubakar Abid
5e44baa138 now scripts are generated in temp folder 2019-02-19 20:03:52 -08:00
Abubakar Abid
d8247270e1 0.1.6 2019-02-19 11:49:13 -08:00
Ali Abdalla
c4fbc259c3 css stuff 2019-02-19 02:52:28 -08:00
Abubakar Abid
bf6baabc75 copy files from package to local 2019-02-19 02:03:26 -08:00
Abubakar Abid
87be9deed5 added package data 2019-02-19 01:19:19 -08:00
Abubakar Abid
0c2c45c50b merged 2019-02-19 00:13:15 -08:00
Abubakar Abid
04ed15078b added ability to run multiple interfaces without restarting 2019-02-19 00:11:46 -08:00
Ali Abdalla
eee3179815 Merge branch 'master' of https://github.com/abidlabs/gradiome 2019-02-18 23:45:26 -08:00
Ali Abdalla
467ca213d4 image upload 2019-02-18 23:45:20 -08:00
Abubakar Abid
e196c80a29 merged 2019-02-18 22:04:08 -08:00
Abubakar Abid
388df5b0d8 fixed link sharing bug 2019-02-18 22:01:39 -08:00
Ali Abdalla
3a2eba1f18 added outputs and inputs 2019-02-18 21:57:24 -08:00
Abubakar Abid
7b23941de8 handle model closing 2019-02-17 20:34:57 -08:00
Abubakar Abid
835f17f2ba handle model closing 2019-02-17 20:00:40 -08:00
Ali Abdalla
62f5b5ef67 added pre and postprocessing 2019-02-17 18:22:17 -08:00
Ali Abdalla
5a781ead5e seperated inputs and outputs, added webcam interface 2019-02-16 20:11:28 -08:00
Abubakar Abid
cd53f6fc2a reorganized files and added landing page 2018-12-20 10:06:05 -08:00
Abubakar Abid
9018c54b4f rewrote everything using local sockets 2018-12-19 22:32:11 -08:00