()
| 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"> |
nothing calls this directly
no outgoing calls
no test coverage detected