Commit Graph

466 Commits

Author SHA1 Message Date
renovate[bot]
3d66e61d64
chore(deps): update dependency hast-util-to-string to v3 (#5381)
* chore(deps): update dependency hast-util-to-string to v3

* add changeset

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-30 12:19:13 -07:00
Ali Abdalla
97c3c7b173
Move scripts from old website to CI (#5271)
* delete old version docs script

* script and workflow

* if merged

* syntax

* changes

* add missing demos

* hide state component

* fix html component demo

* fix model3d guide

* fix workflow

* fix issues with oauth and main

* demo notebooks

* add changeset

* demo notebook

* refactor into existing workflows

* remove assert in networking server

* add changeset

* Fix type check

* lint

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-08-30 11:06:52 -07:00
Jared Deckard
6466652583
Cancel Dropdown Filter (#5360)
* Reset the dropdown filter on blur

* Remove focus triggered by blurring to the label

* add changeset

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-08-30 11:11:01 +01:00
Mehdi Bahri
4ccb9a86f1
Makes it possible to set the initial camera position for the Model3D component as a tuple of (alpha, beta, radius) (#5266)
* Allow setting alpha

* Allow setting beta and radius

* Formatting

* Change to tuple of (alpha, beta, radius)

* Renamed parameter

* Formatting

* add changeset

* add to update

* Change to tuple of (alpha, beta, radius)

* Renamed parameter

* Formatting

* Docstring for Model3D

* rename parameter

* add changeset

* type

* 180

* dupe

* 180

* linting

* lint

* lint

* add test

* Formatting in docstring + added what unit the angles are

* Added babylon types to model3d's package.json

* pnpm lockfile

* Type narrowing of helperCamera + assumed not null

* refactor

* docstring

* lint

* type checking

* fix test

---------

Co-authored-by: Mehdi <mehdi.bahri@epicgames.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-29 17:02:05 -07:00
Freddy Boulton
119c834331
Faster reload mode (#5267)
* This works

* Add code

* Final touches

* Lint

* Fix bug in other dirs

* add changeset

* Reload

* lint + test

* Load from frontend

* add changeset

* Use key

* tweak frontend config generation

* tweak

* WIP ipython

* Fix robust

* fix

* Fix for jupyter notebook

* Add checks

* Lint frontend

* Undo demo changes

* add changeset

* Use is_in_or_equal

* python 3.11 changes and no if __name__

* Forward sys.argv + guide

* lint

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-29 17:29:15 -04:00
renovate[bot]
61803c6545
chore(deps): update dependency extendable-media-recorder to v9 (#5370)
* chore(deps): update dependency extendable-media-recorder to v9

* add changeset

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-29 12:02:35 -07:00
Dawood Khan
0cc7e2dcf6
Hide avatar when message none (#5366)
* hide avatar when message none

* add changeset

* frontend test and story

* test fix

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-29 14:40:10 -04:00
Abubakar Abid
b27f758325
Change markdown rendering to set breaks to false (#5368)
* change markdown rendering to set breaks to false

* add changeset

* update stories

* lint

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-29 11:20:41 -07:00
Dawood Khan
05892302fb
Adds kwarg to disable html sanitization in gr.Chatbot() (#5304)
* disable sanitize

* add changeset

* Fix devcontainer postCreateCommand (#5289)

* add chmod commands to grant execute permissions to each script before running them

* increase the memory limit

* Increase memory requirement to 8

* Setting a minimum specification for codespace machines

* Rotate axes labels on LinePlot, BarPlot, and ScatterPlot (#5305)

* add chmod commands to grant execute permissions to each script before running them

* increase the memory limit

* Increase memory requirement to 8

* Setting a minimum specification for codespace machines

* Added label_angle parameter to LinePlot

* add the x_label_angle and y_label_angle to the postprocess

* Add x_label_angle and y_label_angle to ScatterPlot

* Add x_label_angle and y_label_angle to BarPlot

* Remove postCreateCommand update from this PR, it is in its own PR

* Remove custumization on the devcontainer, it is on another PR

* Remove extra line  on the devcontainer, it is on another PR

* add changeset

* update the parameter definition in the docstring

---------

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

* `make_waveform()` twitter video resolution fix (#5296)

* waveform res fix

* add changeset

* add changeset

* Improve audio streaming (#5238)

* changes

* changes

* add changeset

* add changeset

* chages

* Update silver-clowns-brush.md

* changes

* chagers

* changes

* Update silver-clowns-brush.md

* change

* change

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>

* Tweaks to `icon` parameter in `gr.Button()` (#5285)

* button

* add changeset

* fix

* add changeset

* add changeset

* types

* type fix

* formatting

* fix based on review

* fix unit tests

* stories

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* test

* test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabid94 <aabid94@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Allow caching examples with streamed output (#5295)

* changes

* changes

* add changeset

* add changeset

* chages

* Update silver-clowns-brush.md

* changes

* chagers

* changes

* Update silver-clowns-brush.md

* change

* change

* change

* changes

* chages

* changes

* add changeset

* changes

* changes

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>

* Create event listener table for components on docs (#5298)

* changes

* changes

* remove languages from code docs

* fix img path in guide

* rework event listeners

* add changeset

* remove console log

* name it event arguments

* Update js/_website/src/lib/components/EventListeners.svelte

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

* Update js/_website/src/lib/components/EventListeners.svelte

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

* requested changes

---------

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

* merge

* fix (#5308)

* only start listening for events after the components are mounted (#5312)

* only start listening for events after the components are mounted

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* Restores missing part of bottom border on file component (#5313)

* removes missing part of bottom border on file component

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* chore: update versions (#5177)

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

* Test Blocks.svelte footer copy (#5307)

* test test

* fix test

* tweak

* tweak test name

* ensure login form has correct styles (#5324)

* fix changelog generation (#5328)

* Add ignore scripts to pnpm i in pypi action (#5316)

* add json generation to prepare

* add changeset

* remove pnpm prepare

* add changeset

* bring back prepare, add ignore scripts

* delete changeset

* add to right commadn

* add frozen lockfile to gh_action_pypi

* remove unused gh_action_pypi script

* remove unused scripts

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* ensure dropdown stays open when identical data is passed in (#5323)

* ensure dropwdown stays open when new data is passed in

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* Fix ci again again again (#5329)

* fix changelog generation

* fix changelog generation

* fix

* chore: update versions (#5326)

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

* Fix ci again again again (#5330)

* fix changelog generation

* fix changelog generation

* fix

* fix script

* Fix ci again again again (#5331)

* fix changelog generation

* fix changelog generation

* fix

* fix script

* fix script

* Fix ci again again again (#5332)

* fix changelog generation

* fix changelog generation

* fix

* fix script

* fix script

* fix vars

* Fix ci again again again (#5333)

* fix changelog generation

* fix changelog generation

* fix

* fix script

* fix script

* fix vars

* fix vars

* Fix Checkbox select dispatch (#5340)

* Fix bug

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* Minor bug fix sweep (#5284)

* changes

* changes

* add changeset

* changes

* changes

* fix box changes on website

* add changeset

* changes

* changes

* Revert "changes"

This reverts commit 189b4e844a.

* chanegs

* changes

* changes

* changes

* changes

* add changeset

* Update fancy-bats-deny.md

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Fix: wrap avatar-image in a div to clip its shape (#5319)

* fix: wrap avatar-image in a div to clip its shape

and add data url support

* add changeset

* revert get file from data url

* add changeset

---------

Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* chore: update versions (#5341)

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

* add kwarg to markdown

* add changeset

* config

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Faiga Alawad <faiga.alawd91@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabid94 <aabid94@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: Keldos <Keldos.ljw@gmail.com>
2023-08-29 00:26:29 -04:00
Dawood Khan
c5bf91385a
Add chat bubble width param (#5334)
* chat width

* add changeset

* fixes

* fix

* test

* reformat

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-28 20:48:52 -04:00
pngwn
1dc797adcb
chore: update versions (#5341)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-25 12:07:20 -07:00
Keldos
3341148c10
Fix: wrap avatar-image in a div to clip its shape (#5319)
* fix: wrap avatar-image in a div to clip its shape

and add data url support

* add changeset

* revert get file from data url

* add changeset

---------

Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-25 14:37:45 -04:00
aliabid94
5f25eb6836
Minor bug fix sweep (#5284)
* changes

* changes

* add changeset

* changes

* changes

* fix box changes on website

* add changeset

* changes

* changes

* Revert "changes"

This reverts commit 189b4e844a.

* chanegs

* changes

* changes

* changes

* changes

* add changeset

* Update fancy-bats-deny.md

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-25 11:31:18 -07:00
Freddy Boulton
df090e89f7
Fix Checkbox select dispatch (#5340)
* Fix bug

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-25 11:42:46 -04:00
pngwn
632e4d8378
chore: update versions (#5326)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-24 18:47:07 +01:00
pngwn
e32b0928d2
ensure dropdown stays open when identical data is passed in (#5323)
* ensure dropwdown stays open when new data is passed in

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-24 18:22:41 +01:00
pngwn
31996c991d
ensure login form has correct styles (#5324) 2023-08-24 16:42:28 +01:00
Hannah
2592d4e380
Test Blocks.svelte footer copy (#5307)
* test test

* fix test

* tweak

* tweak test name
2023-08-24 12:12:27 +02:00
pngwn
ba4c6d9e65
chore: update versions (#5177)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-23 15:41:08 -07:00
Abubakar Abid
54bcb72417
Restores missing part of bottom border on file component (#5313)
* removes missing part of bottom border on file component

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-23 15:26:09 -07:00
pngwn
f769cb6714
only start listening for events after the components are mounted (#5312)
* only start listening for events after the components are mounted

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-23 23:07:58 +01:00
pngwn
fe057300f0
delegate gradio events via a custom event dispatcher (#5279)
* delegate gradio events via a custom event dispatcher

* improve md perf + share code

* fix df markdown

* prevent model3d from rerending too frequently

* tweaks

* fix more event bugs with video

* add changeset

* optimise handle mount

* does this do anything

* fix

* remove old dispatches

* fix dropdown position

* oops

* fixes

* fix tests

* fix types

* format

* fix markdown code

* add changeset

* fix typecheck

* fix typecheck

* fix demos

* notebooks

* fix tests

* changer

* maybe this

* fixes

* add changeset

* fix chatbot alignment mobile

* fix chantbot

* add changeset

* changeset

* changeset

* storybook

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-23 21:48:10 +01:00
Ali Abdalla
cf167cd1dd
Create event listener table for components on docs (#5298)
* changes

* changes

* remove languages from code docs

* fix img path in guide

* rework event listeners

* add changeset

* remove console log

* name it event arguments

* Update js/_website/src/lib/components/EventListeners.svelte

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

* Update js/_website/src/lib/components/EventListeners.svelte

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

* requested changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-23 12:38:42 -07:00
Abubakar Abid
cdfd42174a
Tweaks to icon parameter in gr.Button() (#5285)
* button

* add changeset

* fix

* add changeset

* add changeset

* types

* type fix

* formatting

* fix based on review

* fix unit tests

* stories

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-22 15:05:22 -07:00
Abubakar Abid
a74605572d
Add height parameter and scrolling to gr.Dataframe (#5283)
* add height and scrolling to dataframe

* add changeset

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-22 14:42:02 -07:00
Hannah
804fcc058e
Add render function to <gradio-app> (#5158)
* add function on_load to gradio-app web element

* typo

* fix test

* add ready event

* add custom events and use onMount

* add changeset

* add changeset

* move event logic

* add changeset

* clean up whitespace

* add onloadcomplete to guide

* add changeset

* add changeset

* add highlight

* change event name to render and ensure it runs after DOM mounting is complete

* update docs

* rename var

* tweak

* renaming

* tweak

* tweaks

* mount statustracker nodes

* typo

* tweaks

* copy tweak

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-22 12:11:19 +02:00
Dawood Khan
92282cea6a
Chatbot Avatar Images (#5258)
* avatar images

* images

* add changeset

* fixes

* format

* type fix

* test fix

* format

* fixes

* tuple

* change to tuple

* test fix

* remove index file

* fixes

* save

* test fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-21 17:15:59 -04:00
Hannah
502f1015bf
Ensure Blocks translation copy renders correctly (#5276)
* fix copy render in blocks

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-21 06:54:42 -07:00
Abubakar Abid
f49028cfe3
Move markdown & latex processing to the frontend for the gr.Markdown and gr.DataFrame components (#5268)
* changes

* katex

* add changeset

* dataframe

* add changeset

* latex in dataframe

* add changeset

* lint

* lint

* stories and types

* stories

* type

* restore lock

* pnpm lock

* fix backend tests

* xray configs

* test files

* test utils

* fix utils

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-21 06:54:20 -07:00
Hannah
46a2b600a7
ensure translations for audio work correctly (#5264)
* fix audio import

* set i18n locale

* add changeset

* tweak

* add changeset

* add curly brackets

* add changeset

* changes

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-18 17:37:19 +01:00
Abubakar Abid
06982212df
Removes scrollbar from File preview when not needed (#5265)
* fix scrollbar when not needed

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-18 09:13:52 -07:00
pngwn
96e4f5b922
remove index files and update test paths (#5262) 2023-08-18 16:33:07 +01:00
Abubakar Abid
933db53e93
Better handling of empty dataframe in gr.DataFrame (#5256)
* better handling of empty dataframe

* add changeset

* hide comments

* add changeset

* remove

* lint

* null case

* add stories

* stories

* lint

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-18 08:20:02 -07:00
renovate[bot]
1cefee7fc0
chore(deps): update dependency marked to v7 (#5112)
* chore(deps): update dependency marked to v7

* add changeset

* fix types

* add changeset

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-08-18 13:14:14 +01:00
Hannah
4b58ea6d98
Update i18n tokens and locale files (#5216)
* tokenize en strings in components and refactor en.json

* add changeset

* refactor more translation files

* more translation files

* tweak

* fix test

* fix other test

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-18 12:36:52 +01:00
Abubakar Abid
f344592aeb
Allows setting a height to gr.File and improves the UI of the component (#5221)
* file

* file downlaod

* add changeset

* added story

* lint

* fix test

* add changeset

* margin

* fixes

* lint

* modify

* lint

* add changeset

* revert

* revert

* add changeset

* Delete Chatbot.stories.svelte

* revert

* revert

* add changeset

* redesign

* lint

* fixes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-17 18:43:12 -07:00
pngwn
ddac7e4d0f
Ensure File component uploads files to the server. (#5253)
* fix dynamic -> interactive

* fix checks

* add changeset

* add changeset

* fix changeset

* fix linting issues

* fix typing issue

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-17 12:20:19 -07:00
Abubakar Abid
c57d4c232a
gr.Radio and gr.CheckboxGroup can now accept different names and values (#5232)
* radio

* radio checkboxgroup

* add changeset

* type

* fix tests

* types

* fix unit test

* Update gradio/components/radio.py

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

* Update gradio/components/checkboxgroup.py

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

* fix review

* examples

* backend

* type fixes

* fix test

* fixed example

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2023-08-16 11:27:39 -07:00
Hannah
2b397791fe
Fix message text overflow onto copy button in gr.Chatbot (#5242)
* increase message padding before copy button

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-16 15:06:34 +01:00
pngwn
fbdad78af4
Lazy load interactive or static variants of a component individually, rather than loading both variants regardless. This change will improve performance for many applications. (#5215)
* lazy load compoennts more granularly

* add changeset

* format

* add changeset

* fix casing

* fix casing

* fix casing

* revert changelog formatting

* add changeset

* revert changelog formatting

* add changeset

* make interactive updates work

* revert changelog stuff

* fix order

* fix static dataframe

* revert demo change

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-15 19:21:41 +01:00
Dawood Khan
3b8053469a
Allows code block in chatbot to scroll horizontally (#5122)
* wrap

* scroll

* add changeset

* fix copy button position

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-15 10:26:54 -04:00
Freddy Boulton
e8fd4e4ec6
Completely hide api page if show_api=False (#5219)
* Add code

* add changeset

* type check

* CHANGELOG

* Update dirty-snails-love.md

* Add test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-15 10:07:53 -04:00
pngwn
640397075d
add gradio as a devdep of @gradio/lite (#5226)
* add gradio as a devdep of @gradio/lite

* add gradio as a devdep of @gradio/lite

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-15 10:36:33 +01:00
Freddy Boulton
24b66e1cff
homepage demo update (#5186)
* homepage demo update

* add changeset

* Fix spacing

* Switch demo order

* asd (#5191)

* asd (#5192)

* homepage demo update

* Fix spacing

* add changeset

* Switch demo order

* remove endocardiogram

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-08-11 19:04:49 -04:00
pngwn
643442e1a5
generate docs json in ci, reimplement main vs release (#5092)
* fixup site

* fix docs versions

* test ci

* test ci some more

* test ci some more

* test ci some more

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* test

* fix

* add changeset

* fix

* fix

* fix

* test ci

* test ci

* test ci

* test ci

* test ci

* test ci

* test ci

* test ci

* test ci

* notebook ci

* notebook ci

* more ci

* more ci

* update changeset

* update changeset

* update changeset

* fix site

* fix

* fix

* fix

* fix

* fix ci

* render mising pages

* remove changeset

* fix path

* fix workflows

* fix workflows

* fix workflows

* fix comment

* tweaks

* tweaks

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-11 15:54:56 +01:00
pngwn
9d1bd28bdf
chore: update versions (#5038)
* chore: update versions

* update actions

* update changelog

* other changelgo

* extra

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-10 16:59:00 -04:00
Jiri Puc
80be7a1ca4
chatbot conversation nodes can contain a copy button (#5125)
* chatbot conversation nodes can contain a copy button

* add changeset

* the newly added chatbot copy message button is now called show_copy_button

* chatbot's Copy component styling improved

* chatbot's Copy component - typing fix

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-10 10:11:26 -04:00
aliabid94
abec340a54
Share all media content in chat (#5159)
* test

* test

* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-09 16:02:57 -07:00
Hannah
144df459a3
Add show_edit_button param to gr.Audio (#5149)
* add show_edit_button param

* add changeset

* formatting

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-09 16:38:07 -04:00
Jae-Won Chung
22aa5eba3f
Use font size --text-md for <code> in Chatbot messages (#5137)
* Use --text-md for <code> in Chatbot message

* add changeset

* Update js/chatbot/static/ChatBot.svelte

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

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-08-09 15:10:45 -04:00
aliabid94
667875b244
Live audio streaming output (#5077)
* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-08 15:08:28 -07:00
Abubakar Abid
cd1353fa3e
Fixes the display of minutes in the video player (#5140)
* video timestamp

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-08 17:31:51 -04:00
Sanjaiyan Parthipan
eaa1ce14ac
Enhancing Tamil Translation: Language Refinement 🌟 (#5136)
* improve Tamil vocabulary 🔡

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-08 15:35:06 -04:00
Hannah
56d2609de9
Reset textbox value to empty string when value is None (#5114)
* reset value to empty string when null

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-08 14:53:57 -04:00
Ali Abdalla
b84a35b7b9
Add icon and link to DuplicateButton (#5111)
* fix icon/link in duplicatebutton

* add changeset

* add changeset

* add icon/link to duplicate

* add changeset

* jsons

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-07 12:54:36 -04:00
Hannah
1b017e68f6
Add interactive args to gr.ColorPicker (#5118)
* add interactive args to colorpicker

* add changeset

* add changeset

* add colorpicker stories

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-07 17:25:12 +02:00
Hannah
37caa2e0fe
Add icon and link params to gr.Button (#5080)
* add icons and link params

* tweak

* add changeset

* prepend icon param with /file=

* prepend icon with /file=

* restore and add button stories

* add changeset

* param description tweak

* tweak param description

* type tweak

* fix i18n in story

* fix formatting

* fix test

* tweak

* fix typo

* fix icon bug

* fix inconsistent width

* remove <a /> target

* styling changes + add story

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-04 17:47:20 +02:00
renovate[bot]
13e4783535
chore(deps): update dependency extendable-media-recorder to v8 (#5085)
* chore(deps): update dependency extendable-media-recorder to v8

* add changeset

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-04 08:28:58 -04:00
pngwn
1419538ea7
Refactor component directories (#5074)
* asd

* changes

* fix everything

* cleanup

* add changeset

* fix casing

* lockfile

* fix casing

* fix ci, enable linting

* fix test

* add changeset

* add changeset

* delete changeset

* fix dirs

* fix casing

* fix notebooks

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-03 23:01:18 +01:00
Freddy Boulton
2745075a26
Add deploy_discord to docs (#5076)
* Add deploy_discord to docs

* add changeset

* add jsons

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-08-03 10:07:13 -07:00
Abubakar Abid
7d89716519
gr.Dropdown now has correct behavior in static mode as well as when an option is selected (#5062)
* dropdown fixes

* add changeset

* add changeset

* guide

* guide

* stories

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-02 12:32:45 -04:00
Jody Zhou
f5539c7618
Enhancement: Add focus event to textbox and number component (#5005)
* Add focus event to textbox and number component

* add changeset

* Combine Blurrable and Focusable into Focusable event

* Add focus and blur to Dropdown and Colorpicker components

* add focus to home page template

* Add Focus to doc

* Fix linting error

* fixes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2023-08-01 16:02:50 -04:00
Hannah
883ac364f6
Add step param to Number (#5047)
* add step param to number component

* add changeset

* fix test

* fix BE test

* fix test again

* update number.py

* fix test

* test fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-01 12:44:33 +01:00
Hannah
6693660a79
Add download button to selected images in Gallery (#5025)
* add download button to gallery selected images

* add changeset

* add story

* tweak

* fix href val for internal file paths

* set show_download_button to True by default

* lint backend

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-07-31 19:31:49 +02:00
Hannah
5244c5873c
Allow new lines in HighlightedText with /n and preserve whitespace (#5046)
* allow new lines in highlighted text with /n

* add changeset

* preserve white spaces in text

* add changeset

* add changeset

* add highlighted text stories

* add changeset

* fix broken story

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-07-31 16:54:29 +02:00
Abubakar Abid
620e464527
gr.Dropdown() now supports values with arbitrary characters and doesn't clear value when re-focused (#5039)
* changelog

* changes

* add changeset

* fixes

* revert

* add changeset

* python reorder

* add changeset

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-07-31 08:31:39 -04:00
renovate[bot]
c7a20e0970
Update dependency prettier-plugin-svelte to v3 (#4973)
* chore(deps): update dependency prettier-plugin-svelte to v3

* add changeset

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-29 00:00:15 +03:00
renovate[bot]
e6317d77f8
Update dependency extendable-media-recorder to v8 (#5023)
* Update dependency extendable-media-recorder to v8

* add changeset

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-29 00:00:03 +03:00
Ali Abdalla
42488c076a
Correct gradio version on website (#5037)
* fix jsons

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-07-28 21:55:17 +02:00
pngwn
861d752a83
chore: update versions (#4999)
* chore: update versions

* undo diff

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-07-26 17:10:24 -04:00
aliabid94
44ac8ad08d
Allow setting sketch color default (#4979)
* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

---------

Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-07-25 11:39:51 -07:00
Hannah
3f8c210b01
Implement left and right click in Gallery component and show implicit images in Gallery grid (#4995)
* tweak responsive behaviour in gallery

* test

* add function to move left + right on click

* add changeset

* fix ts error

* Delete soft-eyes-repeat.md

* add changeset

* add gallery story

* change y overflow to scroll

---------

Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-07-25 15:02:44 +01:00
aliabid94
41c83070b0
Add CSS resets and specifiers to play nice with HF blog (#4997)
* changes

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-07-24 16:35:53 -07:00
Ali Abdalla
71c9039401
Make sure tags aren't rendered inside a guide (#5007)
* remove tags

* small fixes to guides

* add changeset

* add changeset

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-07-24 22:54:33 +02:00
Ali Abdalla
3e70fc81fc
Correctly render changelog on website after new formatting (#5009)
* fix changelog rendering

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-07-24 22:44:10 +02:00
Luke Cheng
4b0e98e40a
docs: Initiate the Chinese translation (#4767)
* docs: init for the chs translation

* docs: translate guides to Chinese. (#1)

* 翻译文档

* update ChangeLog

* docs: add spaces with the heyspace tool

* 翻译文档

* docs: add spaces to the follow-up files

---------

Co-authored-by: Luke Cheng <2258420+chenglu@users.noreply.github.com>

* ignore cn dir in website

---------

Co-authored-by: TERRY LEE <59245973+liteli1987gmail@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-07-24 14:10:39 +02:00
Abubakar Abid
dc07a9f947
Revert "Revert "Add download button for audio"" (#4993)
* Revert "Revert "Add download button for audio (#4977)" (#4992)"

This reverts commit ad99df4fdd.

* removed changelog updates

* add changeset

* credit leuryr

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-07-22 03:20:29 +03:00
pngwn
62306d9ed1
unified release process (#4986)
* Implement unified version and release mechanism for all python and javascript packages.

* Update gradio/package.json

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

* fix changelog

* fix changelog

* Update js/button/README.md

* Update .github/workflows/generate-changeset.yml

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-21 19:13:21 +01:00
Abubakar Abid
ad99df4fdd
Revert "Add download button for audio (#4977)" (#4992)
This reverts commit c58ea4780f.
2023-07-21 08:00:33 +03:00
Leury Rodriguez
c58ea4780f
Add download button for audio (#4977)
* Add download button for audio

* Add summary to CHANGELOG

* Add bool param to gr.Audio for button visibility

* Update CHANGELOG

* formatting

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-21 07:43:15 +03:00
Abubakar Abid
683bdf7623
Release 3.38 (#4991)
* release

* changelog

* changelog

* changelog

* chatbot

* remove test

* Add code

* add min width to submit button

---------

Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-07-21 00:57:35 +03:00
Freddy Boulton
c57a4e2729
Add css variable for controlling chatbot user message border accent (#4989)
* Add css variable

* Fix var name

* Add CHANGELOG
2023-07-20 16:47:01 -04:00
aliabid94
b68aeea412
Improve gr.ChatInterface UI, add autofocus to textbox (#4978)
* changes

* changes

* lint

* fix tests

* fix

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-20 14:44:52 +03:00
Hannah
a0efc1180d
Add show_download_button to gr.Image() (#4959)
* add show_download_button param

* add static image story

* chlog

* fix test

* typo

* add default value

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

* fix test

* fix another test

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-19 19:00:02 +01:00
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