diff --git a/components/chat-example-panel.tsx b/components/chat-example-panel.tsx index f0bc446..2c48263 100644 --- a/components/chat-example-panel.tsx +++ b/components/chat-example-panel.tsx @@ -21,6 +21,23 @@ export default function ExamplePanel({ console.error("Error loading example image:", error); } }; + + // Handler for the "Replicate this in aws style" button + const handleReplicateArchitecture = async () => { + setInput("Replicate this in aws style"); + + try { + // Fetch the architecture image + const response = await fetch("/architecture.png"); + const blob = await response.blob(); + const file = new File([blob], "architecture.png", { type: "image/png" }); + + // Set the file to the files state + setFiles([file]); + } catch (error) { + console.error("Error loading architecture image:", error); + } + }; return (

@@ -33,6 +50,12 @@ export default function ExamplePanel({

Try these examples:

+