Spaces:
Running
Running
Update script.js
Browse files
script.js
CHANGED
|
@@ -13,7 +13,8 @@ const modelLinks = ["https://api-inference.huggingface.co/models/Shakker-Labs/FL
|
|
| 13 |
"https://api-inference.huggingface.co/models/glif/90s-anime-art",
|
| 14 |
"https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-2-1",
|
| 15 |
"https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev",
|
| 16 |
-
"https://api-inference.huggingface.co/models/Jovie/Midjourney"
|
|
|
|
| 17 |
|
| 18 |
|
| 19 |
// async function query(data) {
|
|
@@ -35,7 +36,7 @@ const modelLinks = ["https://api-inference.huggingface.co/models/Shakker-Labs/FL
|
|
| 35 |
// }
|
| 36 |
|
| 37 |
async function query(data) {
|
| 38 |
-
const response = await fetch(modelLinks[
|
| 39 |
headers: {
|
| 40 |
Authorization: `Bearer ${token}`,
|
| 41 |
"Content-Type": "application/json",
|
|
|
|
| 13 |
"https://api-inference.huggingface.co/models/glif/90s-anime-art",
|
| 14 |
"https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-2-1",
|
| 15 |
"https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev",
|
| 16 |
+
"https://api-inference.huggingface.co/models/Jovie/Midjourney",
|
| 17 |
+
"https://api-inference.huggingface.co/models/runwayml/stable-diffusion-v1-5"]
|
| 18 |
|
| 19 |
|
| 20 |
// async function query(data) {
|
|
|
|
| 36 |
// }
|
| 37 |
|
| 38 |
async function query(data) {
|
| 39 |
+
const response = await fetch(modelLinks[5], {
|
| 40 |
headers: {
|
| 41 |
Authorization: `Bearer ${token}`,
|
| 42 |
"Content-Type": "application/json",
|