Freddy Boulton 25484f4bfb
Group chatbot messages by default (#10169)
* handle pasted text as file

* test

* add changeset

* remove unneeded test

* update file UI

* add changeset

* Revert "handle pasted text as file"

This reverts commit 1910029f103f89573210ee0a8b62823505a1b1db.

* add changeset

* Revert "test"

This reverts commit 25c17bd8d3505d09cd571382afeeacdec197bd9c.

* story

* remove border

* Revert "add changeset"

This reverts commit 29a91ee9dff771663c414880d10815ffe2f6b961.

* add changeset

* add code

* Code

* add code

* add changeset

* Update solid-hands-nail.md

* code

* add metadata typecheck

* trigger ci

* remove thought css

* Revert "remove thought css"

This reverts commit f1ea8f88f6ced9dc8e8897abdfd529952f851954.

* fix tuples - add borders

* lint

* Fix typecheck

* css tweak

* add code

* fix parameter name

---------

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-12-13 20:11:43 +00:00
..
2024-10-08 22:17:17 -07:00
2024-11-27 18:10:49 -05:00
2024-11-27 18:10:49 -05:00
2024-11-27 18:10:49 -05:00
2024-10-21 19:28:58 -07:00
2024-11-27 18:10:49 -05:00
2024-11-27 18:10:49 -05:00
2024-11-27 18:10:49 -05:00
2024-11-27 18:10:49 -05:00
2024-11-27 18:10:49 -05:00
2024-11-27 18:10:49 -05:00
2024-11-27 18:10:49 -05:00
2024-11-27 18:10:49 -05:00
2024-11-27 18:10:49 -05:00
2024-11-27 18:10:49 -05:00
2024-11-27 18:10:49 -05:00
2024-10-09 13:46:26 +01:00
2024-10-21 19:28:58 -07:00
2024-11-27 18:10:49 -05:00
2024-11-27 18:10:49 -05:00
2024-12-04 15:04:48 -08:00
2024-11-27 18:10:49 -05:00
2024-11-27 18:10:49 -05:00
2024-11-27 18:10:49 -05:00
2024-11-27 18:10:49 -05:00
2024-11-27 18:10:49 -05:00
2024-10-25 12:33:07 -07:00
2024-11-27 18:10:49 -05:00
2024-11-27 18:10:49 -05:00
2024-10-25 12:33:07 -07:00
2024-11-27 18:10:49 -05:00
2024-09-06 09:10:25 +08:00
2024-10-25 12:33:07 -07:00
2024-11-27 18:10:49 -05:00
2024-11-27 18:10:49 -05:00
2024-11-27 18:10:49 -05:00
2024-11-27 18:10:49 -05:00
2024-09-06 09:10:25 +08:00
2024-11-27 18:10:49 -05:00
2024-11-27 18:10:49 -05:00
2024-11-27 18:10:49 -05:00
2024-11-04 14:59:10 -08:00
2023-03-27 16:12:58 -07:00
2024-08-22 16:38:45 +00: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