Spaces:
Running
Running
await community models query
Browse files
skills.js
CHANGED
|
@@ -12,7 +12,11 @@ A majestic peacock with iridescent feathers perched on a branch, while a brillia
|
|
| 12 |
A futuristic skyscraper that pushes the boundaries of design and technology, reminiscent of the iconic Burj Khalifa. The building features a sleek and soaring silhouette, with a combination of reflective glass panels and metallic elements that shimmer in the sunlight. The interior spaces are luxurious and contemporary, with state-of-the-art amenities and breathtaking views of the cityscape. The color palette is a sophisticated blend of cool silvers, deep blues, and hints of gold, exuding a sense of elegance and opulence.
|
| 13 |
|
| 14 |
A portrait of a tiger with piercing eyes, set against a lush jungle background with warm golden lighting, photorealistic, dslr, 8k, ultra realistic`,
|
| 15 |
-
community_image_models: (paramsAsQuerystring, includeInstructions=true) =>{
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
let completeGuide = `
|
| 17 |
|
| 18 |
# COMMUNITY DIFFUSION MODELS - HOW TO USE
|
|
@@ -33,12 +37,12 @@ A portrait of a tiger with piercing eyes, set against a lush jungle background w
|
|
| 33 |
|
| 34 |
Please Note: If you decide to use a community model, tell the user! Just in case some collaborative debugging is required.
|
| 35 |
|
| 36 |
-
${
|
| 37 |
`
|
| 38 |
if (includeInstructions)
|
| 39 |
return completeGuide
|
| 40 |
else
|
| 41 |
-
return
|
| 42 |
|
| 43 |
},
|
| 44 |
create_image: {
|
|
|
|
| 12 |
A futuristic skyscraper that pushes the boundaries of design and technology, reminiscent of the iconic Burj Khalifa. The building features a sleek and soaring silhouette, with a combination of reflective glass panels and metallic elements that shimmer in the sunlight. The interior spaces are luxurious and contemporary, with state-of-the-art amenities and breathtaking views of the cityscape. The color palette is a sophisticated blend of cool silvers, deep blues, and hints of gold, exuding a sense of elegance and opulence.
|
| 13 |
|
| 14 |
A portrait of a tiger with piercing eyes, set against a lush jungle background with warm golden lighting, photorealistic, dslr, 8k, ultra realistic`,
|
| 15 |
+
community_image_models: async(paramsAsQuerystring, includeInstructions=true) =>{
|
| 16 |
+
let mods=await queryCommunityModels(paramsAsQuerystring)
|
| 17 |
+
let directory = JSON.stringify(mods, null, 2) //The list of models and their attributes
|
| 18 |
+
|
| 19 |
+
//Instructions on how to use them
|
| 20 |
let completeGuide = `
|
| 21 |
|
| 22 |
# COMMUNITY DIFFUSION MODELS - HOW TO USE
|
|
|
|
| 37 |
|
| 38 |
Please Note: If you decide to use a community model, tell the user! Just in case some collaborative debugging is required.
|
| 39 |
|
| 40 |
+
${directory}
|
| 41 |
`
|
| 42 |
if (includeInstructions)
|
| 43 |
return completeGuide
|
| 44 |
else
|
| 45 |
+
return directory
|
| 46 |
|
| 47 |
},
|
| 48 |
create_image: {
|