Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
Python
update models and lib
Abi Raja298cf18b5c7e
diff --git a/backend/poetry.lock b/backend/poetry.lockindex a7c769cc..1107a910 100644--- a/backend/poetry.lock+++ b/backend/poetry.lock@@ -253,18 +253,6 @@ charset-normalizer = ["charset-normalizer"]html5lib = ["html5lib"]lxml = ["lxml"]-[[package]]-name = "cachetools"-version = "5.5.0"-description = "Extensible memoizing collections and decorators"-optional = false-python-versions = ">=3.7"-groups = ["main"]-files = [- {file = "cachetools-5.5.0-py3-none-any.whl", hash = "sha256:02134e8439cdc2ffb62023ce1debca2944c3f289d66bb17ead3ab3dede74b292"},- {file = "cachetools-5.5.0.tar.gz", hash = "sha256:2cc24fb4cbe39633fb7badd9db9ca6295d766d9c2995f245725a46715d050f2a"},-]-[[package]]name = "certifi"version = "2024.12.14"@@ -626,49 +614,48 @@ files = [[[package]]name = "google-auth"-version = "2.46.0"+version = "2.47.0"description = "Google Authentication Library"optional = false-python-versions = ">=3.7"+python-versions = ">=3.8"groups = ["main"]files = [- {file = "google_auth-2.46.0-py3-none-any.whl", hash = "sha256:fa51659c3745cb7024dd073f4ab766222767ea5f7dee2472110eaa03c9dbd2cb"},- {file = "google_auth-2.46.0.tar.gz", hash = "sha256:cb04c071a73394a6e3b9e48c1a7f48506001175b33e9679587a0f5320a21a34d"},+ {file = "google_auth-2.47.0-py3-none-any.whl", hash = "sha256:c516d68336bfde7cf0da26aab674a36fedcf04b37ac4edd59c597178760c3498"},+ {file = "google_auth-2.47.0.tar.gz", hash = "sha256:833229070a9dfee1a353ae9877dcd2dec069a8281a4e72e72f77d4a70ff945da"},][package.dependencies]-cachetools = ">=2.0.0,<7.0"pyasn1-modules = ">=0.2.1"requests = {version = ">=2.20.0,<3.0.0", optional = true, markers = "extra == \"requests\""}rsa = ">=3.1.4,<5"[package.extras]aiohttp = ["aiohttp (>=3.6.2,<4.0.0)", "requests (>=2.20.0,<3.0.0)"]-cryptography = ["cryptography (<39.0.0) ; python_version < \"3.8\"", "cryptography (>=38.0.3)"]+cryptography = ["cryptography (>=38.0.3)"]enterprise-cert = ["cryptography", "pyopenssl"]-pyjwt = ["cryptography (<39.0.0) ; python_version < \"3.8\"", "cryptography (>=38.0.3)", "pyjwt (>=2.0)"]-pyopenssl = ["cryptography (<39.0.0) ; python_version < \"3.8\"", "cryptography (>=38.0.3)", "pyopenssl (>=20.0.0)"]+pyjwt = ["cryptography (>=38.0.3)", "pyjwt (>=2.0)"]+pyopenssl = ["cryptography (>=38.0.3)", "pyopenssl (>=20.0.0)"]reauth = ["pyu2f (>=0.1.5)"]requests = ["requests (>=2.20.0,<3.0.0)"]-testing = ["aiohttp (<3.10.0)", "aiohttp (>=3.6.2,<4.0.0)", "aioresponses", "cryptography (<39.0.0) ; python_version < \"3.8\"", "cryptography (<39.0.0) ; python_version < \"3.8\"", "cryptography (>=38.0.3)", "cryptography (>=38.0.3)", "flask", "freezegun", "grpcio", "oauth2client", "packaging", "pyjwt (>=2.0)", "pyopenssl (<24.3.0)", "pyopenssl (>=20.0.0)", "pytest", "pytest-asyncio", "pytest-cov", "pytest-localserver", "pyu2f (>=0.1.5)", "requests (>=2.20.0,<3.0.0)", "responses", "urllib3"]+testing = ["aiohttp (<3.10.0)", "aiohttp (>=3.6.2,<4.0.0)", "aioresponses", "cryptography (>=38.0.3)", "cryptography (>=38.0.3)", "flask", "freezegun", "grpcio", "oauth2client", "packaging", "pyjwt (>=2.0)", "pyopenssl (<24.3.0)", "pyopenssl (>=20.0.0)", "pytest", "pytest-asyncio", "pytest-cov", "pytest-localserver", "pyu2f (>=0.1.5)", "requests (>=2.20.0,<3.0.0)", "responses", "urllib3"]urllib3 = ["packaging", "urllib3"][[package]]name = "google-genai"-version = "1.56.0"+version = "1.60.0"description = "GenAI Python SDK"optional = falsepython-versions = ">=3.10"groups = ["main"]files = [- {file = "google_genai-1.56.0-py3-none-any.whl", hash = "sha256:9e6b11e0c105ead229368cb5849a480e4d0185519f8d9f538d61ecfcf193b052"},- {file = "google_genai-1.56.0.tar.gz", hash = "sha256:0491af33c375f099777ae207d9621f044e27091fafad4c50e617eba32165e82f"},+ {file = "google_genai-1.60.0-py3-none-any.whl", hash = "sha256:967338378ffecebec19a8ed90cf8797b26818bacbefd7846a9280beb1099f7f3"},+ {file = "google_genai-1.60.0.tar.gz", hash = "sha256:9768061775fddfaecfefb0d6d7a6cabefb3952ebd246cd5f65247151c07d33d1"},][package.dependencies]anyio = ">=4.8.0,<5.0.0"distro = ">=1.7.0,<2"-google-auth = {version = ">=2.45.0,<3.0.0", extras = ["requests"]}+google-auth = {version = ">=2.47.0,<3.0.0", extras = ["requests"]}httpx = ">=0.28.1,<1.0.0"pydantic = ">=2.9.0,<3.0.0"requests = ">=2.28.1,<3.0.0"diff --git a/backend/routes/generate_code.py b/backend/routes/generate_code.pyindex c1cec245..3fbbff14 100644--- a/backend/routes/generate_code.py+++ b/backend/routes/generate_code.py@@ -524,7 +524,7 @@ class VideoGenerationStage:system_prompt=GEMINI_VIDEO_PROMPT,api_key=gemini_api_key,callback=lambda x: process_chunk(x, 0),- model_name="gemini-3-pro-preview (low thinking)",+ model_name="gemini-3-pro-preview (high thinking)",thinking_callback=lambda x: process_thinking(x, 0),)]