For hugging face.
Browse files- README.md +18 -0
- package.json +1 -1
README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: LLM Playground (Browser-only)
|
| 3 |
+
emoji: 🚀
|
| 4 |
+
colorFrom: purple
|
| 5 |
+
colorTo: indigo
|
| 6 |
+
sdk: static
|
| 7 |
+
app_build_command: "npm install && npm run build -- --outfile=./dist/index.js && cp index.html ./dist/index.html"
|
| 8 |
+
app_file: "./dist/index.html" # This is where Vite typically outputs its index.html
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# My Browser-only LLM Playground
|
| 12 |
+
|
| 13 |
+
This Hugging Face Space hosts a client-side machine learning playground built with HTML, CSS, and JavaScript.
|
| 14 |
+
It uses [Vite/esbuild] for the build process.
|
| 15 |
+
|
| 16 |
+
### How it works:
|
| 17 |
+
- The `app_build_command` in `README.md` runs `npm install` and `npm run build`.
|
| 18 |
+
- The built static assets are then served from the `dist/` directory, as specified by `app_file`.
|
package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"name": "localm",
|
| 3 |
-
"version": "1.2.
|
| 4 |
"description": "Chat application",
|
| 5 |
"scripts": {
|
| 6 |
"build": "esbuild src/index.js --target=es6 --bundle --sourcemap --outfile=./index.js --format=iife --external:fs --external:path --external:child_process --external:ws --external:katex/dist/katex.min.css",
|
|
|
|
| 1 |
{
|
| 2 |
"name": "localm",
|
| 3 |
+
"version": "1.2.10",
|
| 4 |
"description": "Chat application",
|
| 5 |
"scripts": {
|
| 6 |
"build": "esbuild src/index.js --target=es6 --bundle --sourcemap --outfile=./index.js --format=iife --external:fs --external:path --external:child_process --external:ws --external:katex/dist/katex.min.css",
|