Skip to content

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

Python

update settings

Abi Rajaf742ff53f2b9
diff --git a/backend/models/gemini.py b/backend/models/gemini.py
index a33618e9..493c3c00 100644
--- a/backend/models/gemini.py
+++ b/backend/models/gemini.py
@@ -287,7 +287,8 @@ async def stream_gemini_response_video(
parts=[
types.Part(
inline_data=types.Blob(data=video_bytes, mime_type=video_mime_type),
- video_metadata=types.VideoMetadata(fps=10),
+ video_metadata=types.VideoMetadata(fps=20),
+ media_resolution=types.PartMediaResolutionLevel.MEDIA_RESOLUTION_HIGH
),
types.Part(text="Analyze this video and generate the code."),
],
@@ -316,8 +317,8 @@ async def stream_gemini_response_video(
api_model_name = "gemini-3-flash-preview"
elif model_name in ["gemini-3-pro-preview (high thinking)", "gemini-3-pro-preview"]:
config = types.GenerateContentConfig(
- temperature=0,
- max_output_tokens=30000,
+ temperature=1.0,
+ max_output_tokens=50000,
system_instruction=system_prompt,
thinking_config=types.ThinkingConfig(
thinking_level="high", include_thoughts=True
diff --git a/backend/prompts/claude_prompts.py b/backend/prompts/claude_prompts.py
index 31819372..6902995b 100644
--- a/backend/prompts/claude_prompts.py
+++ b/backend/prompts/claude_prompts.py
@@ -64,6 +64,7 @@ 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.
- 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,