mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-17 11:29:58 +08:00
* initial setup * fix hf token prefix * warnings + error handling * implement stream, predict and submit * update blocks with new client * add changeset * temp comment * add changeset * add sse_v3 chages * imrpove typing, reimplement websocket logic * refactor zerogpu logic * integrate fetch_implemenation * wasm changes * tweaks * tscheck fixes * type fixes * test * test import tweaks * test * package.json * improve typing + config * config tweak * remove fetch-mock * pnpm lock * config * remove module * tweak * tweak * fix config * test * test * lockfile * fix types * more config tweaks * type fixes * formatting * fix typing * formatting * type fixes * test * lockfile * revert comment * package.json * tweak * formatting * test * revert ts removal * remove comments + logic fixes * type fix * formatting * test * stream logic changes * fix test * revert comments * fix streaming test * stream tweak * data typing * fix wasm fetch * client typing tweaks * more fixes + typing improvements * move functions * event_source tweaks * cleanup * add hardware types and cleanup jwt * improve api info typing * add await client() backwards compatiblity * rename create to connect and move duplicate logic * Update `Client` usage examples (#8003) * update client examples * remove test data * fix types * remove types changes * client -> Client.create * Update client/js/README.md Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * Update client/js/README.md Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * update duplicate docs * attempt to update cn docs * format --------- Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * type improvements and config error handling * fix image editor issue * Merge branch 'main' into refactor-client * improve typing --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co> |
||
---|---|---|
.. | ||
src | ||
static | ||
.gitignore | ||
.npmrc | ||
.prettierignore | ||
CHANGELOG.md | ||
jsconfig.json | ||
package.json | ||
README.md | ||
svelte.config.js | ||
vite.config.js |
create-svelte
Everything you need to build a Svelte project, powered by create-svelte
.
Creating a project
If you're seeing this, you've probably already done this step. Congrats!
# create a new project in the current directory
npm create svelte@latest
# create a new project in my-app
npm create svelte@latest my-app
Developing
Once you've created a project and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
Building
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.
To deploy your app, you may need to install an adapter for your target environment.