Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
Python
fix type errors introduced with previous changes
Abi Rajaec1bada3e238
diff --git a/backend/prompts/test_prompts.py b/backend/prompts/test_prompts.pyindex 42e89c33..4e3d7a77 100644--- a/backend/prompts/test_prompts.py+++ b/backend/prompts/test_prompts.py@@ -1,3 +1,4 @@+from llm import Llmfrom prompts import assemble_imported_code_prompt, assemble_promptTAILWIND_SYSTEM_PROMPT = """@@ -345,7 +346,7 @@ def test_prompts():def test_imported_code_prompts():tailwind_prompt = assemble_imported_code_prompt(- "code", "html_tailwind", "result_image_data_url"+ "code", "html_tailwind", Llm.GPT_4O_2024_05_13)expected_tailwind_prompt = [{"role": "system", "content": IMPORTED_CODE_TAILWIND_SYSTEM_PROMPT},@@ -354,7 +355,7 @@ def test_imported_code_prompts():assert tailwind_prompt == expected_tailwind_promptreact_tailwind_prompt = assemble_imported_code_prompt(- "code", "react_tailwind", "result_image_data_url"+ "code", "react_tailwind", Llm.GPT_4O_2024_05_13)expected_react_tailwind_prompt = [{"role": "system", "content": IMPORTED_CODE_REACT_TAILWIND_SYSTEM_PROMPT},@@ -363,7 +364,7 @@ def test_imported_code_prompts():assert react_tailwind_prompt == expected_react_tailwind_promptbootstrap_prompt = assemble_imported_code_prompt(- "code", "bootstrap", "result_image_data_url"+ "code", "bootstrap", Llm.GPT_4O_2024_05_13)expected_bootstrap_prompt = [{"role": "system", "content": IMPORTED_CODE_BOOTSTRAP_SYSTEM_PROMPT},@@ -372,7 +373,7 @@ def test_imported_code_prompts():assert bootstrap_prompt == expected_bootstrap_promptionic_tailwind = assemble_imported_code_prompt(- "code", "ionic_tailwind", "result_image_data_url"+ "code", "ionic_tailwind", Llm.GPT_4O_2024_05_13)expected_ionic_tailwind = [{"role": "system", "content": IMPORTED_CODE_IONIC_TAILWIND_SYSTEM_PROMPT},@@ -381,7 +382,7 @@ def test_imported_code_prompts():assert ionic_tailwind == expected_ionic_tailwindvue_tailwind = assemble_imported_code_prompt(- "code", "vue_tailwind", "result_image_data_url"+ "code", "vue_tailwind", Llm.GPT_4O_2024_05_13)expected_vue_tailwind = [{"role": "system", "content": IMPORTED_CODE_VUE_TAILWIND_PROMPT},@@ -389,7 +390,7 @@ def test_imported_code_prompts():]assert vue_tailwind == expected_vue_tailwind- svg = assemble_imported_code_prompt("code", "svg", "result_image_data_url")+ svg = assemble_imported_code_prompt("code", "svg", Llm.GPT_4O_2024_05_13)expected_svg = [{"role": "system", "content": IMPORTED_CODE_SVG_SYSTEM_PROMPT},{"role": "user", "content": "Here is the code of the SVG: code"},