Spaces:
Running
Running
use zImage for image generation
Browse files- lib/prompts.ts +15 -2
lib/prompts.ts
CHANGED
|
@@ -11,8 +11,21 @@ export const PROJECT_NAME_END = ">>>>>>> PROJECT_NAME_END";
|
|
| 11 |
export const PROMPT_FOR_REWRITE_PROMPT = "<<<<<<< PROMPT_FOR_REWRITE_PROMPT ";
|
| 12 |
export const PROMPT_FOR_REWRITE_PROMPT_END = " >>>>>>> PROMPT_FOR_REWRITE_PROMPT_END";
|
| 13 |
|
| 14 |
-
export const PROMPT_FOR_IMAGE_GENERATION = `If you want to use image placeholder, http://Static.photos Usage:Format: http://static.photos/[category]/[dimensions]/[seed] where dimensions must be one of: 200x200, 320x240, 640x360, 1024x576, or 1200x630; seed can be any number (1-999+) for consistent images or omit for random; categories include: nature, office, people, technology, minimal, abstract, aerial, blurred, bokeh, gradient, monochrome, vintage, white, black, blue, red, green, yellow, cityscape, workspace, food, travel, textures, industry, indoor, outdoor, studio, finance, medical, season, holiday, event, sport, science, legal, estate, restaurant, retail, wellness, agriculture, construction, craft, cosmetic, automotive, gaming, or education.
|
| 15 |
-
Examples: http://static.photos/red/320x240/133 (red-themed with seed 133), http://static.photos/640x360 (random category and image), http://static.photos/nature/1200x630/42 (nature-themed with seed 42).`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
export const PROMPT_FOR_PROJECT_NAME = `REQUIRED: Generate a name for the project, based on the user's request. Try to be creative and unique. Add a emoji at the end of the name. It should be short, like 6 words. Be fancy, creative and funny. DON'T FORGET IT, IT'S IMPORTANT!`
|
| 17 |
|
| 18 |
export const INITIAL_SYSTEM_PROMPT_LIGHT = `You are an expert UI/UX and Front-End Developer.
|
|
|
|
| 11 |
export const PROMPT_FOR_REWRITE_PROMPT = "<<<<<<< PROMPT_FOR_REWRITE_PROMPT ";
|
| 12 |
export const PROMPT_FOR_REWRITE_PROMPT_END = " >>>>>>> PROMPT_FOR_REWRITE_PROMPT_END";
|
| 13 |
|
| 14 |
+
// export const PROMPT_FOR_IMAGE_GENERATION = `If you want to use image placeholder, http://Static.photos Usage:Format: http://static.photos/[category]/[dimensions]/[seed] where dimensions must be one of: 200x200, 320x240, 640x360, 1024x576, or 1200x630; seed can be any number (1-999+) for consistent images or omit for random; categories include: nature, office, people, technology, minimal, abstract, aerial, blurred, bokeh, gradient, monochrome, vintage, white, black, blue, red, green, yellow, cityscape, workspace, food, travel, textures, industry, indoor, outdoor, studio, finance, medical, season, holiday, event, sport, science, legal, estate, restaurant, retail, wellness, agriculture, construction, craft, cosmetic, automotive, gaming, or education.
|
| 15 |
+
// Examples: http://static.photos/red/320x240/133 (red-themed with seed 133), http://static.photos/640x360 (random category and image), http://static.photos/nature/1200x630/42 (nature-themed with seed 42).`
|
| 16 |
+
export const PROMPT_FOR_IMAGE_GENERATION = `
|
| 17 |
+
If you want to use image, you can use the following URL:
|
| 18 |
+
https://enzostvs-cached-generation.hf.space/generate/[prompt]?[options]
|
| 19 |
+
|
| 20 |
+
[Options]:
|
| 21 |
+
- format: square, portrait-3_4, portrait-9_16, landscape-16_9, landscape-4_3
|
| 22 |
+
|
| 23 |
+
[Examples]:
|
| 24 |
+
https://enzostvs-cached-generation.hf.space/generate/A beautiful sunset over a calm ocean with a small boat in the foreground?format=square
|
| 25 |
+
https://enzostvs-cached-generation.hf.space/generate/A professional business meeting in a modern office with a large table and chairs?format=portrait-3_4
|
| 26 |
+
https://enzostvs-cached-generation.hf.space/generate/A group of friends enjoying a sunny day at the beach?format=landscape-16_9
|
| 27 |
+
https://enzostvs-cached-generation.hf.space/generate/A group of friends enjoying a sunny day at the beach?format=landscape-4_3
|
| 28 |
+
`
|
| 29 |
export const PROMPT_FOR_PROJECT_NAME = `REQUIRED: Generate a name for the project, based on the user's request. Try to be creative and unique. Add a emoji at the end of the name. It should be short, like 6 words. Be fancy, creative and funny. DON'T FORGET IT, IT'S IMPORTANT!`
|
| 30 |
|
| 31 |
export const INITIAL_SYSTEM_PROMPT_LIGHT = `You are an expert UI/UX and Front-End Developer.
|