MCPcopy Create free account
hub / github.com/ResearAI/AutoFigure / handlePdfExample

Function handlePdfExample

frontend/components/chat-example-panel.tsx:94–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92 }
93
94 const handlePdfExample = async () => {
95 setInput("Summarize this paper as a diagram")
96
97 try {
98 const response = await fetch("/chain-of-thought.txt")
99 const blob = await response.blob()
100 const file = new File([blob], "chain-of-thought.txt", {
101 type: "text/plain",
102 })
103 setFiles([file])
104 } catch (error) {
105 console.error("Error loading text file:", error)
106 }
107 }
108
109 return (
110 <div className="py-6 px-2 animate-fade-in">

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected