"use client" import { useEffect, useRef, useState } from "react" export function DemoSection() { const containerRef = useRef(null) const [loaded, setLoaded] = useState(false) useEffect(() => { if (loaded) return // Load Gradio script dynamically const script = document.createElement("script") script.type = "module" script.src = "https://gradio.s3-us-west-2.amazonaws.com/5.9.1/gradio.js" script.onload = () => { if (!containerRef.current) return // Create the gradio-app custom element after the script loads const gradioApp = document.createElement("gradio-app") gradioApp.setAttribute("src", "https://opceanai-yuuki.hf.space") gradioApp.style.minHeight = "600px" gradioApp.style.width = "100%" containerRef.current.appendChild(gradioApp) } document.head.appendChild(script) setLoaded(true) }, [loaded]) return (
Live Demo

Try Yuuki Now

Generate code directly in your browser. This Space runs the Yuuki-best model on HuggingFace infrastructure. No setup required.

{/* Window chrome */}
opceanai-yuuki.hf.space Open in new tab
{/* Gradio embed */}

The Space may take a moment to load if it has been idle. Powered by HuggingFace Spaces.

) }