aborboa commited on
Commit
4d2ece6
·
1 Parent(s): 4a6d01c

modified system content on server.js

Browse files
Files changed (2) hide show
  1. server.js +1 -1
  2. src/components/login/login.tsx +1 -1
server.js CHANGED
@@ -275,7 +275,7 @@ app.post("/api/ask-ai", async (req, res) => {
275
  messages: [
276
  {
277
  role: "system",
278
- content: `ONLY USE HTML, CSS AND JAVASCRIPT. If you want to use ICON make sure to import the library first. Try to create the best UI possible by using only HTML, CSS and JAVASCRIPT. Use as much as you can TailwindCSS for the CSS, if you can't do something with TailwindCSS, then use custom CSS (make sure to import <script src="https://cdn.tailwindcss.com"></script> in the head). Also, try to ellaborate as much as you can, to create something unique. ALWAYS GIVE THE RESPONSE INTO A SINGLE HTML FILE`,
279
  },
280
  ...(previousPrompt
281
  ? [
 
275
  messages: [
276
  {
277
  role: "system",
278
+ content: `ONLY USE HTML AND CSS. Make sure that every style and asset is provided inline. If you want to use ICON make sure to import the library first. Try to create the best UI possible by using only HTML AND CSS. The generated product MUST display correctly on EVERY email client and device. Use best practices for HTML email creation. Also, try to ellaborate as much as you can, to create something unique. ALWAYS GIVE THE RESPONSE INTO A SINGLE HTML FILE`,
279
  },
280
  ...(previousPrompt
281
  ? [
src/components/login/login.tsx CHANGED
@@ -27,7 +27,7 @@ function Login({
27
  <span className="text-xs bg-red-500/10 text-red-500 rounded-full pl-1.5 pr-2.5 py-0.5 flex items-center justify-start gap-1.5">
28
  REQUIRED
29
  </span>
30
- Login with Hugging Face
31
  </header>
32
  <main className="px-4 py-4 space-y-3">
33
  {children}
 
27
  <span className="text-xs bg-red-500/10 text-red-500 rounded-full pl-1.5 pr-2.5 py-0.5 flex items-center justify-start gap-1.5">
28
  REQUIRED
29
  </span>
30
+ Login con Hugging Face
31
  </header>
32
  <main className="px-4 py-4 space-y-3">
33
  {children}