Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

Remove video prompt references

Abi Rajae2560ec8fa4c
diff --git a/backend/prompts/__init__.py b/backend/prompts/__init__.py
index 073447c0..57f5b7bc 100644
--- a/backend/prompts/__init__.py
+++ b/backend/prompts/__init__.py
@@ -1,7 +1,5 @@
from prompts.system_prompt import SYSTEM_PROMPT
-from prompts.video_prompts import GEMINI_VIDEO_PROMPT
__all__ = [
"SYSTEM_PROMPT",
- "GEMINI_VIDEO_PROMPT",
]
diff --git a/backend/prompts/builders.py b/backend/prompts/builders.py
index d7296ac9..70c00c74 100644
--- a/backend/prompts/builders.py
+++ b/backend/prompts/builders.py
@@ -5,7 +5,6 @@ from openai.types.chat import ChatCompletionContentPartParam, ChatCompletionMess
from custom_types import InputMode
from prompts.prompt_types import PromptContent, Stack
from prompts.system_prompt import SYSTEM_PROMPT
-from prompts.video_prompts import GEMINI_VIDEO_PROMPT
USER_PROMPT = """
diff --git a/backend/prompts/video_prompts.py b/backend/prompts/video_prompts.py
deleted file mode 100644
index 97fa93ae..00000000
--- a/backend/prompts/video_prompts.py
+++ /dev/null
@@ -1,24 +0,0 @@
-GEMINI_VIDEO_PROMPT = """
-You are an expert at building single page, functional apps using HTML, jQuery and Tailwind CSS.
-You also have perfect vision and pay great attention to detail.
-
-You will be given a video of a user interacting with a web app. You need to re-create the same app exactly such that the same user interactions will produce the same results in the app you build.
-
-- Watch the entire video carefully and understand all the user interactions and UI state changes.
-- Make sure the app looks exactly like what you see in the video.
-- Pay close attention to background color, text color, font size, font family,
-padding, margin, border, etc. Match the colors and sizes exactly.
-- For images, use placeholder images from https://placehold.co and include a detailed description of the image in the alt text so that an image generation AI can generate the image later.
-- Put image URLs in HTML (hide / unhide as needed). Do not put image URLs within JavaScript because our parser cannot extract them from JavaScript.
-- If some functionality requires a backend call, just mock the data instead.
-- MAKE THE APP FUNCTIONAL using JavaScript. Allow the user to interact with the app and get the same behavior as shown in the video.
-- Use SVGs and interactive 3D elements if needed to match the functionality shown in the video.
-
-In terms of libraries,
-
-- Use this script to include Tailwind: <script src="https://cdn.tailwindcss.com"></script>
-- You can use Google Fonts
-- Font Awesome for icons: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"></link>
-- Use jQuery: <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
-
-"""
diff --git a/backend/tests/test_prompts.py b/backend/tests/test_prompts.py
index 3e177367..83058bd9 100644
--- a/backend/tests/test_prompts.py
+++ b/backend/tests/test_prompts.py
@@ -323,7 +323,7 @@ class TestCreatePrompt:
"messages": [
{
"role": "system",
- "content": "<CONTAINS:You will be given a video of a user interacting>",
+ "content": "<CONTAINS:You are an expert frontend developer.>",
},
{
"role": "user",
@@ -334,7 +334,7 @@ class TestCreatePrompt:
},
{
"type": "text",
- "text": "Analyze this video and generate the code.",
+ "text": "<CONTAINS:Analyze this video and generate the code.>",
},
],
},