Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
Python
Update text_prompt_builder.py
Abi Raja88077f9b87db
diff --git a/backend/prompts/text_prompt_builder.py b/backend/prompts/text_prompt_builder.pyindex 525d2f74..7f97efa1 100644--- a/backend/prompts/text_prompt_builder.py+++ b/backend/prompts/text_prompt_builder.py@@ -8,6 +8,16 @@ def build_text_prompt_messages(text_prompt: str,stack: Stack,) -> list[ChatCompletionMessageParam]:++ USER_PROMPT = f"""+Generate UI for {text_prompt}.+Selected stack: {stack}.++# Instructions++- Make sure to make it look modern and sleek.+- Use modern, professional fonts and colors.+- Follow UX best practices."""return [{"role": "system",@@ -15,12 +25,6 @@ def build_text_prompt_messages(},{"role": "user",- "content": f"""- - Make sure to make it look modern and sleek.- - Use modern, professional fonts and colors.- - Follow UX best practices.- Selected stack: {stack}.- Generate UI for {text_prompt}.- """,+ "content": USER_PROMPT,},]