Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
pngwn ce0bbdab89 | 1 year ago | |
---|---|---|
.. | ||
packages | 1 year ago | |
.editorconfig | 2 years ago | |
.gitignore | 2 years ago | |
.npmrc | 1 year ago | |
.prettierignore | 2 years ago | |
.prettierrc.json | 1 year ago | |
JSX.d.ts | 1 year ago | |
README.md | 2 years ago | |
globals.d.ts | 1 year ago | |
package.json | 1 year ago | |
playwright-setup.js | 1 year ago | |
playwright.config.js | 2 years ago | |
pnpm-lock.yaml | 1 year ago | |
pnpm-workspace.yaml | 2 years ago | |
postcss.config.cjs | 2 years ago | |
svelte.config.js | 2 years ago | |
tailwind.config.cjs | 1 year ago | |
tsconfig.json | 1 year ago | |
vitest.config.ts | 2 years ago |
This folder contains all of the Gradio UI and component source code.
Note: The below assumes you are in the
ui
directory unless alternative instructions are given.
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
Install all dependencies from the ui
folder:
pnpm i
This will install the dependencies for all packages within the ui
folder and link any local packages
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:
cd ui #move back into ui if you haven't already
pnpm dev
From the ui
folder run the build.
pnpm build
This will create the necessary files in ui/app/public
and also in gradio/templates/frontend
.
The repos currently has two quality checks that can be run locally and are run in CI.
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
We use TypeScript to provide static types to javascript code. These checks are also run in CI.
to typecheck the code:
pnpm ts:check
Currently the following checks are run in CI:
pnpm format:check
)pnpm ts:check
)pnpm build
)No Description
HTML Python SVG TypeScript Svelte other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》