Update chatbot.py
Browse files- chatbot.py +2 -2
chatbot.py
CHANGED
|
@@ -62,7 +62,7 @@ Follow these professional guidelines:
|
|
| 62 |
5) Content & Comments:
|
| 63 |
- Use meaningful placeholder text (not lorem ipsum)
|
| 64 |
- Add short code comments to explain each major section
|
| 65 |
-
- Accurately match the **font-size, font-weight, and line-height** of all visible text, especially major headings and hero titles.
|
| 66 |
- Use **CSS font-size in rem or px** to replicate the exact visual size of headings and subheadings from the screenshot.
|
| 67 |
- Ensure text blocks wrap correctly as in the screenshot (e.g., long headings on one line, subheadings on two lines if seen). Use **max-width, white-space, and line-height** to control wrapping.
|
| 68 |
|
|
@@ -84,7 +84,7 @@ Assume this is for real production-ready front-end code generation from a web UI
|
|
| 84 |
]
|
| 85 |
|
| 86 |
llm = ChatGoogleGenerativeAI(model="gemini-2.5-flash", temperature=0.1)
|
| 87 |
-
max_retries =
|
| 88 |
generated_code = None
|
| 89 |
|
| 90 |
for attempt in range(max_retries):
|
|
|
|
| 62 |
5) Content & Comments:
|
| 63 |
- Use meaningful placeholder text (not lorem ipsum)
|
| 64 |
- Add short code comments to explain each major section
|
| 65 |
+
- Accurately match the **font-size, font-weight, text-size and line-height** of all visible text, especially major headings and hero titles.
|
| 66 |
- Use **CSS font-size in rem or px** to replicate the exact visual size of headings and subheadings from the screenshot.
|
| 67 |
- Ensure text blocks wrap correctly as in the screenshot (e.g., long headings on one line, subheadings on two lines if seen). Use **max-width, white-space, and line-height** to control wrapping.
|
| 68 |
|
|
|
|
| 84 |
]
|
| 85 |
|
| 86 |
llm = ChatGoogleGenerativeAI(model="gemini-2.5-flash", temperature=0.1)
|
| 87 |
+
max_retries = 9
|
| 88 |
generated_code = None
|
| 89 |
|
| 90 |
for attempt in range(max_retries):
|