Saturday, March 21, 2026

import { useState, useRef } from "react"; export default function CartoonToReal() { const [cartoonSrc, setCartoonSrc] = useState(null); const [cartoonBase64, setCartoonBase64] = useState(null); const [cartoonMime, setCartoonMime] = useState("image/jpeg"); const [realisticSrc, setRealisticSrc] = useState(null); const [status, setStatus] = useState("idle"); const [statusMsg, setStatusMsg] = useState(""); const [error, setError] = useState(""); const canvasRef = useRef(null); const processFile = (file) => { if (!file || !file.type.startsWith("image/")) return; setCartoonMime(file.type); const reader = new FileReader(); reader.onload = (e) => { setCartoonSrc(e.target.result); setCartoonBase64(e.target.result.split(",")[1]); setRealisticSrc(null); setStatus("idle"); setError(""); }; reader.readAsDataURL(file); }; const generateReal = async () => { if (!cartoonBase64) return; setStatus("analyzing"); setStatusMsg("Character analyze ho raha hai..."); setError(""); setRealisticSrc(null); try { const res = await fetch("https://api.anthropic.com/v1/messages", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ model: "claude-sonnet-4-20250514", max_tokens: 1000, messages: [{ role: "user", content: [ { type: "image", source: { type: "base64", media_type: cartoonMime, data: cartoonBase64 } }, { type: "text", text: "This is a cartoon character. Write a detailed image generation prompt to create a PHOTOREALISTIC real human version of this character. Include: face shape, body type, skin tone, hair, clothing, expression, Indian village background, cinematic lighting. Write ONLY the prompt. No explanation. Max 150 words." } ] }] }) }); const data = await res.json(); if (!data.content?.[0]?.text) throw new Error("No response"); const prompt = data.content[0].text.trim(); setStatus("generating"); setStatusMsg("Realistic image ban rahi hai... (30-40 sec lagenge)"); const encoded = encodeURIComponent(prompt + ", photorealistic, 8k, cinematic, professional portrait"); const seed = Math.floor(Math.random() * 999999); const imageUrl = `https://image.pollinations.ai/prompt/${encoded}?width=512&height=512&nologo=true&seed=${seed}&model=flux`; const img = new Image(); img.crossOrigin = "anonymous"; await new Promise((resolve, reject) => { img.onload = resolve; img.onerror = reject; img.src = imageUrl; setTimeout(() => reject(new Error("timeout")), 90000); }); setRealisticSrc(imageUrl); setStatus("done"); } catch (err) { setError("Error aaya. Dobara try karo."); setStatus("error"); } }; const downloadCombined = () => { const canvas = canvasRef.current; const ctx = canvas.getContext("2d"); const W = 1080, H = 540; canvas.width = W; canvas.height = H; ctx.fillStyle = "#0a0a0f"; ctx.fillRect(0, 0, W, H); const img1 = new Image(); img1.onload = () => { ctx.drawImage(img1, 0, 0, W / 2, H); const g = ctx.createLinearGradient(W/2-2, 0, W/2+2, H); g.addColorStop(0, "#f5c842"); g.addColorStop(1, "#e63b7a"); ctx.fillStyle = g; ctx.fillRect(W/2 - 2, 0, 4, H); ctx.font = "bold 52px Arial"; ctx.fillStyle = "#f5c842"; ctx.textAlign = "center"; ctx.fillText("VS", W/2, H/2 + 18); const img2 = new Image(); img2.crossOrigin = "anonymous"; img2.onload = () => { ctx.drawImage(img2, W/2, 0, W/2, H); ctx.fillStyle = "#000a"; ctx.fillRect(10, 10, 150, 36); ctx.fillStyle = "#fff"; ctx.font = "bold 15px Arial"; ctx.textAlign = "left"; ctx.fillText("CARTOON", 20, 33); ctx.fillStyle = "#f5c842"; ctx.fillRect(W/2+10, 10, 160, 36); ctx.fillStyle = "#000"; ctx.fillText("REAL LIFE", W/2+20, 33); const a = document.createElement("a"); a.download = "cartoon-vs-real.jpg"; a.href = canvas.toDataURL("image/jpeg", 0.95); a.click(); }; img2.src = realisticSrc; }; img1.src = cartoonSrc; }; const isLoading = status === "analyzing" || status === "generating"; return (
{/* Header */}
✨ AI Powered Tool
CARTOON → REAL LIFE
Upload • AI Transform • Download
{/* Upload Box — plain visible input */}
{cartoonSrc ? "✅" : "๐ŸŽจ"}
{cartoonSrc ? "Image load ho gayi! Neeche Generate karo" : "Apni cartoon image select karo"}
{ if (e.target.files[0]) processFile(e.target.files[0]); }} style={{ width: "100%", padding: "12px", background: "#1e1b35", border: "1px solid #3a3060", borderRadius: 10, color: "#d0c8e8", fontSize: 14, cursor: "pointer", display: "block" }} />
{/* Preview + Buttons */} {cartoonSrc && (
{/* Cartoon side */}
๐ŸŽจ Cartoon
cartoon
{/* VS */}
VS
{/* Real side */} {isLoading ? (
{statusMsg}
) : realisticSrc ? (
⚡ Real Life
realistic
) : (
๐Ÿค–
AI yahan realistic
version banayega
)}
{/* Action Buttons */}
{status !== "done" && ( )} {status === "done" && ( <> )}
{error && (
⚠️ {error}
)}
)}
); }

Friday, March 20, 2026

Bullion Today - Live Gold Silver Rates India
LIVE
Loading rates...
USD / INR
Live
Gold Rates (per 10g)
Gold 24K
999 Pure
per 10 grams
--
Gold 22K
916 Hallmark
per 10 grams
--
Silver Rate
Silver
per 1 kilogram
--
--
per 10 grams
--
per 1 gram
All Rates (INR)
MetalPer GramPer 10g
Gold 24K999 Pure
--
--
Gold 22K916 Hallmark
--
--
Gold 18K750 Purity
--
--
Silver999 Fine
--
--
Disclaimer: Rates based on international spot prices (XAU/XAG) converted to INR. Actual jewellery prices vary due to making charges, GST (3%), and local market conditions.

Tuesday, March 17, 2026

Gold rate

Bullion Today — Live Gold & Silver Rates
Fetching Live Rates...

Bullion Today

Live Gold & Silver Market Intelligence
Awaiting data...
๐Ÿฅ‡
Gold
22K — Per 10 Gram (India)
Indian Rupees
24K / 10g
1 Troy Oz (USD)
1 Gram (INR)
1 Tola (INR)
๐Ÿฅˆ
Silver
Per KG (India)
Indian Rupees
Per 10 Gram
1 Troy Oz (USD)
1 Gram (INR)
Gold:Silver Ratio
✦ AI Market Analysis
✦ Indicative Trend (Simulated History)
✦ Comparative Rates
Metal Purity Weight INR Price USD Price
Loading rates...
Rates are AI-fetched indicative prices for reference only. Not financial advice. Verify with certified jewellers before transactions.

Saturday, July 19, 2025

Online Game Hub

GAME HUB

Latest Government Jobs

SSC CGL Recruitment 2025

Organization: Staff Selection Commission (SSC)

Application Start: 15 July 2025 Last Date: 14 August 2025

Combined Graduate Level Examination for various Group 'B' and Group 'C' posts. Eligibility: Bachelor's Degree in any stream.

View Details & Apply (Mock)

UPSC Civil Services Exam 2025

Organization: Union Public Service Commission (UPSC)

Application Start: 01 July 2025 Last Date: 21 July 2025

Recruitment for Indian Administrative Service (IAS), Indian Police Service (IPS), and other Group 'A' and 'B' services. Eligibility: Bachelor's Degree.

View Details & Apply (Mock)

Indian Navy Agniveer (SSR/MR) 2025

Organization: Indian Navy

Application Start: 10 July 2025 Last Date: 05 August 2025

Recruitment for Agniveer (SSR) and Agniveer (MR) posts. Eligibility: 10th / 12th Pass.

View Details & Apply (Mock)

Railway RRB NTPC Vacancy 2025

Organization: Railway Recruitment Board (RRB)

Application Start: 20 June 2025 Last Date: 19 July 2025

Non-Technical Popular Categories (NTPC) recruitment. Eligibility: 12th Pass / Graduate.

View Details & Apply (Mock)
Happy Raksha Bandhan!

A Special Raksha Bandhan Wish Awaits!

Click anywhere to unveil a heartfelt message.

Happy Raksha Bandhan!

On this auspicious occasion of Raksha Bandhan, I want to express my deepest love and gratitude. May our bond grow stronger with each passing year, filled with joy, laughter, and endless support. Thank you for always being there.

With love,

[Your Name Here]

To my dear,

[Brother/Sister's Name Here]

Wishing you a very Happy Raksha Bandhan!