cfahlgren1 HF staff commited on
Commit
fdab00f
1 Parent(s): b14d567

add readme and dockerfile

Browse files
Files changed (3) hide show
  1. Dockerfile +15 -0
  2. README.md +14 -38
  3. vite.config.ts +5 -2
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM oven/bun:1
2
+
3
+ WORKDIR /app
4
+
5
+ COPY package.json bun.lockb* ./
6
+
7
+ RUN bun install --frozen-lockfile
8
+
9
+ COPY . .
10
+
11
+ RUN bun run build
12
+
13
+ EXPOSE 4173
14
+
15
+ CMD ["bun", "run", "preview", "--host", "0.0.0.0", "--port", "4173"]
README.md CHANGED
@@ -1,38 +1,14 @@
1
- # create-svelte
2
-
3
- Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte).
4
-
5
- ## Creating a project
6
-
7
- If you're seeing this, you've probably already done this step. Congrats!
8
-
9
- ```bash
10
- # create a new project in the current directory
11
- npm create svelte@latest
12
-
13
- # create a new project in my-app
14
- npm create svelte@latest my-app
15
- ```
16
-
17
- ## Developing
18
-
19
- Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
20
-
21
- ```bash
22
- npm run dev
23
-
24
- # or start the server and open the app in a new browser tab
25
- npm run dev -- --open
26
- ```
27
-
28
- ## Building
29
-
30
- To create a production version of your app:
31
-
32
- ```bash
33
- npm run build
34
- ```
35
-
36
- You can preview the production build with `npm run preview`.
37
-
38
- > To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
 
1
+ ---
2
+ title: Smol Playground
3
+ emoji: 📈
4
+ colorFrom: green
5
+ colorTo: purple
6
+ sdk: docker
7
+ pinned: false
8
+ license: mit
9
+ app_port: 4173
10
+ ---
11
+
12
+ # Smol Playground
13
+
14
+ A fun demo showcasing the [SmolLM](https://huggingface.co/mlc-ai/SmolLM-360M-Instruct-q4f16_1-MLC) model from Hugging Face powered by WebLLM.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vite.config.ts CHANGED
@@ -2,5 +2,8 @@ import { sveltekit } from '@sveltejs/kit/vite';
2
  import { defineConfig } from 'vite';
3
 
4
  export default defineConfig({
5
- plugins: [sveltekit()]
6
- });
 
 
 
 
2
  import { defineConfig } from 'vite';
3
 
4
  export default defineConfig({
5
+ plugins: [sveltekit()],
6
+ server: {
7
+ host: '0.0.0.0',
8
+ }
9
+ });