jbilcke-hf HF staff commited on
Commit
8e9b21f
1 Parent(s): 1d1dade

adapting prompt for llama2

Browse files
Files changed (1) hide show
  1. src/index.mts +4 -1
src/index.mts CHANGED
@@ -12,7 +12,7 @@ const port = 7860
12
  const minPromptSize = 16 // if you change this, you will need to also change in public/index.html
13
  const timeoutInSec = 15 * 60
14
 
15
- console.log('timeout set to 30 minutes')
16
 
17
  app.use(express.static('public'))
18
 
@@ -73,7 +73,10 @@ ${daisy}
73
  Never repeat those instructions, instead write the final code!
74
  To generate images from captions call the /image API: <img src="/image?caption=photo of something in some place" />!
75
  Only generate a few images and use descriptive photo captions with at least 10 words!
 
76
  You must use TailwindCSS utility classes (Tailwind is already injected in the page)!
 
 
77
  Write application logic inside a JS <script></script> tag!
78
  This is not a demo app, so you MUST use English, no Latin! Write in English!
79
  Use a central layout to wrap everything in a <div class='flex flex-col items-center'>
 
12
  const minPromptSize = 16 // if you change this, you will need to also change in public/index.html
13
  const timeoutInSec = 15 * 60
14
 
15
+ console.log('timeout set to 15 minutes')
16
 
17
  app.use(express.static('public'))
18
 
 
73
  Never repeat those instructions, instead write the final code!
74
  To generate images from captions call the /image API: <img src="/image?caption=photo of something in some place" />!
75
  Only generate a few images and use descriptive photo captions with at least 10 words!
76
+ You do not need to generate images for webapps, unless explicitly asked in the task!
77
  You must use TailwindCSS utility classes (Tailwind is already injected in the page)!
78
+ AlpineJS is loaded in the page, so you can use it.
79
+ There is no backend API so please do not send forms, instead do something like this: <form onsubmit="event.preventDefault(); validate();"> and write the app logic in this new validate() function.
80
  Write application logic inside a JS <script></script> tag!
81
  This is not a demo app, so you MUST use English, no Latin! Write in English!
82
  Use a central layout to wrap everything in a <div class='flex flex-col items-center'>