Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
Python
add default backend home route so people know it's running correctly
Abi Raja96d45cf1c2b5
diff --git a/backend/main.py b/backend/main.pyindex f91b25a0..e7cc082a 100644--- a/backend/main.py+++ b/backend/main.py@@ -1,5 +1,6 @@# Load environment variables firstfrom dotenv import load_dotenv+from fastapi.responses import HTMLResponseload_dotenv()@@ -38,6 +39,13 @@ SHOULD_MOCK_AI_RESPONSE = bool(os.environ.get("MOCK", False))app.include_router(screenshot.router)[email protected]("/")+async def get_status():+ return HTMLResponse(+ content="<h3>Your backend is running correctly. Please open the front-end URL (default is http://localhost:5173) to use screenshot-to-code.</h3>"+ )++def write_logs(prompt_messages, completion):# Get the logs path from environment, default to the current working directorylogs_path = os.environ.get("LOGS_PATH", os.getcwd())