gradio/js
pngwn 2eaa0667e1
Fix duplicate attribute error (#9630)
* fix duplicate attribute

* fix duplicate attribute

* add changeset

* add changeset

* format

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-10-09 14:28:07 -07:00
..
_cdn-test 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
_spaces-test 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
_website fixes to website (#9615) 2024-10-09 19:52:12 +01:00
accordion i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
annotatedimage i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
app Fix duplicate attribute error (#9630) 2024-10-09 14:28:07 -07:00
atoms i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
audio i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
box i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
build i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
button i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
chatbot Fix duplicate attribute error (#9630) 2024-10-09 14:28:07 -07:00
checkbox i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
checkboxgroup i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
code i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
colorpicker i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
column i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
component-test i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
core Fix dark mode detection and container height (#9617) 2024-10-09 22:11:28 +01:00
dataframe Fix retry and undo reactivity in gr.Chatbot (#9614) 2024-10-09 09:33:10 -07:00
dataset i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
datetime i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
downloadbutton i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
dropdown i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
fallback i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
file i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
fileexplorer i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
form i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
gallery i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
group i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
highlightedtext i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
html i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
icons i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
image i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
imageeditor i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
json i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
label i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
lite Fix duplicate attribute error (#9630) 2024-10-09 14:28:07 -07:00
markdown i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
model3D i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
multimodaltextbox i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
nativeplot i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
number i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
paramviewer i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
plot i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
preview i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
radio i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
row i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
simpledropdown i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
simpleimage i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
simpletextbox i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
slider i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
spa Fix Functional Tests (#9619) 2024-10-09 14:12:39 -07:00
state chore: update versions (#9168) 2024-09-06 09:10:25 +08:00
statustracker Fix dark mode detection and container height (#9617) 2024-10-09 22:11:28 +01:00
storybook i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
tabitem i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
tabs i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
textbox Fix stopping chat interface when stop button is clicked (#9626) 2024-10-09 14:00:58 -07:00
theme i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
timer i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
tooltip chore: update versions (#9168) 2024-09-06 09:10:25 +08:00
tootils i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
upload i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
uploadbutton i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
utils i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
video i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
wasm i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
.npmrc move files (#3605) 2023-03-27 16:12:58 -07:00
jsx.d.ts Fix published package exports (#9163) 2024-08-22 16:38:45 +00:00
README.md Updated CI info in contributing docs (#4415) 2023-06-06 08:52:29 -04:00

gradio-ui

This folder contains all of the Gradio UI and component source code.

setup

This folder is managed as 'monorepo' a multi-package repository which make dependency management very simple. In order to do this we use pnpm as our package manager.

Make sure pnpm is installed by following the installation instructions for your system.

You will also need node which you probably already have

running the application

Install all dependencies:

pnpm i

This will install the dependencies for all packages and link any local packages

local development

To develop locally, open two terminal tabs from the root of the repository.

Run the python test server, from the root directory:

cd demo/kitchen_sink
python run.py

This will start a development server on port 7860 that the web app is expecting.

Run the web app:

pnpm dev

building for production

Run the build:

pnpm build

This will create the necessary files in js/app/public and also in gradio/templates/frontend.

quality checks

The repos currently has two quality checks that can be run locally and are run in CI.

formatting

Formatting is handled by prettier to ensure consistent formatting and prevent style-focused conversations. Formatting failures will fails CI and should be reoslve before merging.

To check formatting:

pnpm format:check

If you have formatting failures then you can run the following command to fix them:

pnpm format:write

type checking

We use TypeScript to provide static types to javascript code. These checks are also run in CI.

to typecheck the code:

pnpm ts:check

ci checks

Currently the following checks are run in CI:

static checks

  • Format check (pnpm format:check)
  • Build css (pnpm css)
  • Build client (pnpm build)
  • Type check (pnpm ts:check)
  • Unit tests (pnpm test:run)

functional test

pip install -r demo/outbreak_forecast/requirements.txt
pnpm exec playwright install chromium
pnpm exec playwright install-deps chromium
pnpm test:browser:full