Spaces:
Paused
Paused
Savestate: Update HuggingFace Inference API URL
Browse files- index.html +1 -1
- package-lock.json +29 -0
- package.json +1 -0
- src/ai/flux-client.js +1 -1
index.html
CHANGED
|
@@ -65,7 +65,7 @@
|
|
| 65 |
</head>
|
| 66 |
<body class="dark-theme in-chat-view">
|
| 67 |
|
| 68 |
-
<div id="live-version-badge" style="position: fixed; top: 50px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--text-secondary); opacity: 0.6; z-index: 99999; pointer-events: none; font-weight: 500; font-family: monospace; letter-spacing: 1px; background: rgba(0,0,0,0.2); padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05);">BUILD 1.8.
|
| 69 |
|
| 70 |
<!-- SVG Filters for Liquid Glass Refraction -->
|
| 71 |
<svg width="0" height="0" style="position: absolute; pointer-events: none;">
|
|
|
|
| 65 |
</head>
|
| 66 |
<body class="dark-theme in-chat-view">
|
| 67 |
|
| 68 |
+
<div id="live-version-badge" style="position: fixed; top: 50px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--text-secondary); opacity: 0.6; z-index: 99999; pointer-events: none; font-weight: 500; font-family: monospace; letter-spacing: 1px; background: rgba(0,0,0,0.2); padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05);">BUILD 1.8.216</div>
|
| 69 |
|
| 70 |
<!-- SVG Filters for Liquid Glass Refraction -->
|
| 71 |
<svg width="0" height="0" style="position: absolute; pointer-events: none;">
|
package-lock.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
| 13 |
"@capacitor/core": "^6.0.0",
|
| 14 |
"@capacitor/filesystem": "^6.0.0",
|
| 15 |
"@capacitor/preferences": "^6.0.0",
|
|
|
|
| 16 |
"@supabase/supabase-js": "^2.110.0",
|
| 17 |
"body-parser": "^2.3.0",
|
| 18 |
"cheerio": "^1.2.0",
|
|
@@ -2375,6 +2376,34 @@
|
|
| 2375 |
"node": ">=12"
|
| 2376 |
}
|
| 2377 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2378 |
"node_modules/@hutson/parse-repository-url": {
|
| 2379 |
"version": "3.0.2",
|
| 2380 |
"resolved": "https://registry.npmjs.org/@hutson/parse-repository-url/-/parse-repository-url-3.0.2.tgz",
|
|
|
|
| 13 |
"@capacitor/core": "^6.0.0",
|
| 14 |
"@capacitor/filesystem": "^6.0.0",
|
| 15 |
"@capacitor/preferences": "^6.0.0",
|
| 16 |
+
"@huggingface/inference": "^4.13.23",
|
| 17 |
"@supabase/supabase-js": "^2.110.0",
|
| 18 |
"body-parser": "^2.3.0",
|
| 19 |
"cheerio": "^1.2.0",
|
|
|
|
| 2376 |
"node": ">=12"
|
| 2377 |
}
|
| 2378 |
},
|
| 2379 |
+
"node_modules/@huggingface/inference": {
|
| 2380 |
+
"version": "4.13.23",
|
| 2381 |
+
"resolved": "https://registry.npmjs.org/@huggingface/inference/-/inference-4.13.23.tgz",
|
| 2382 |
+
"integrity": "sha512-sUi2+AZP0Gda1zBXDl3HZo3O/qJnhUks53e7DKD4s+igo3ccbbULWvCZrU99M/nqDMSWCcZQxJCX8mH+OHNy2g==",
|
| 2383 |
+
"license": "MIT",
|
| 2384 |
+
"dependencies": {
|
| 2385 |
+
"@huggingface/jinja": "^0.5.9",
|
| 2386 |
+
"@huggingface/tasks": "^0.21.25"
|
| 2387 |
+
},
|
| 2388 |
+
"engines": {
|
| 2389 |
+
"node": ">=18"
|
| 2390 |
+
}
|
| 2391 |
+
},
|
| 2392 |
+
"node_modules/@huggingface/jinja": {
|
| 2393 |
+
"version": "0.5.9",
|
| 2394 |
+
"resolved": "https://registry.npmjs.org/@huggingface/jinja/-/jinja-0.5.9.tgz",
|
| 2395 |
+
"integrity": "sha512-uWTG+l3VJRsl7EXxYizuL3P+cCPoc3cRqbWWRcQN0FhejRfbdq0RNhCmbY/YDtnTcz9icdLYuLDjsnz4d8JMuw==",
|
| 2396 |
+
"license": "MIT",
|
| 2397 |
+
"engines": {
|
| 2398 |
+
"node": ">=18"
|
| 2399 |
+
}
|
| 2400 |
+
},
|
| 2401 |
+
"node_modules/@huggingface/tasks": {
|
| 2402 |
+
"version": "0.21.27",
|
| 2403 |
+
"resolved": "https://registry.npmjs.org/@huggingface/tasks/-/tasks-0.21.27.tgz",
|
| 2404 |
+
"integrity": "sha512-mpIwN14zIDWSwP9XfMvsv52K76YuijSL9qdbncDVBZXKvCN8RC7UU1+2mmuqk900DxvYwWs/VC04SZBP7yvmIQ==",
|
| 2405 |
+
"license": "MIT"
|
| 2406 |
+
},
|
| 2407 |
"node_modules/@hutson/parse-repository-url": {
|
| 2408 |
"version": "3.0.2",
|
| 2409 |
"resolved": "https://registry.npmjs.org/@hutson/parse-repository-url/-/parse-repository-url-3.0.2.tgz",
|
package.json
CHANGED
|
@@ -15,6 +15,7 @@
|
|
| 15 |
"@capacitor/core": "^6.0.0",
|
| 16 |
"@capacitor/filesystem": "^6.0.0",
|
| 17 |
"@capacitor/preferences": "^6.0.0",
|
|
|
|
| 18 |
"@supabase/supabase-js": "^2.110.0",
|
| 19 |
"body-parser": "^2.3.0",
|
| 20 |
"cheerio": "^1.2.0",
|
|
|
|
| 15 |
"@capacitor/core": "^6.0.0",
|
| 16 |
"@capacitor/filesystem": "^6.0.0",
|
| 17 |
"@capacitor/preferences": "^6.0.0",
|
| 18 |
+
"@huggingface/inference": "^4.13.23",
|
| 19 |
"@supabase/supabase-js": "^2.110.0",
|
| 20 |
"body-parser": "^2.3.0",
|
| 21 |
"cheerio": "^1.2.0",
|
src/ai/flux-client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
export class FluxClient {
|
| 2 |
constructor() {
|
| 3 |
-
this.huggingFaceUrl = "https://
|
| 4 |
}
|
| 5 |
|
| 6 |
async fillImage(prompt, originalBase64, maskBase64, apiKey) {
|
|
|
|
| 1 |
export class FluxClient {
|
| 2 |
constructor() {
|
| 3 |
+
this.huggingFaceUrl = "https://router.huggingface.co/hf-inference/models/black-forest-labs/FLUX.1-Fill-dev";
|
| 4 |
}
|
| 5 |
|
| 6 |
async fillImage(prompt, originalBase64, maskBase64, apiKey) {
|