Skip to content

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

Python

improve code and add note about inputs and outputs

Abi Raja3fae4d1aa73a
diff --git a/backend/evals/runner.py b/backend/evals/runner.py
index 7f4618c4..cb79cb1b 100644
--- a/backend/evals/runner.py
+++ b/backend/evals/runner.py
@@ -2,20 +2,10 @@ from typing import Any, Coroutine, List, Optional
import asyncio
import os
from llm import Llm
+from prompts.types import Stack
from .core import generate_code_for_image
from .utils import image_to_data_url
from .config import EVALS_DIR
-from typing_extensions import Literal
-
-Stack = Literal[
- "html_css",
- "html_tailwind",
- "react_tailwind",
- "bootstrap",
- "ionic_tailwind",
- "vue_tailwind",
- "svg",
-]
async def run_image_evals(
diff --git a/frontend/src/components/evals/RunEvalsPage.tsx b/frontend/src/components/evals/RunEvalsPage.tsx
index 2ec256f2..a82a8175 100644
--- a/frontend/src/components/evals/RunEvalsPage.tsx
+++ b/frontend/src/components/evals/RunEvalsPage.tsx
@@ -56,6 +56,22 @@ function RunEvalsPage() {
return (
<div className="flex flex-col items-center justify-center min-h-screen">
<h1 className="text-2xl font-bold mb-8">Run Evaluations</h1>
+
+ <div className="max-w-md text-center mb-8 text-gray-600">
+ <p className="mb-2">
+ Evaluation inputs will be read from:
+ <code className="block bg-gray-100 p-1 mt-1 rounded">
+ backend/evals_data/inputs
+ </code>
+ </p>
+ <p>
+ Results will be saved to:
+ <code className="block bg-gray-100 p-1 mt-1 rounded">
+ backend/evals_data/outputs
+ </code>
+ </p>
+ </div>
+
<div className="mb-4">
<label className="block text-gray-700 text-sm font-bold mb-2">
Select Model