From 0cecdafc09bb6aa3fb3616605c9a12afa9b4f760 Mon Sep 17 00:00:00 2001 From: David Fisher <123786348+alfrencho@users.noreply.github.com> Date: Mon, 30 Jan 2023 15:54:13 -0500 Subject: [PATCH] Update index.js --- pages/index.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pages/index.js b/pages/index.js index c8cf4cce9..63a9419f2 100644 --- a/pages/index.js +++ b/pages/index.js @@ -3,7 +3,6 @@ import axios from "axios"; const Home = () => { const [userInput, setUserInput] = useState(''); -}; const [apiOutput, setApiOutput] = useState(''); const [isGenerating, setIsGenerating] = useState(false); @@ -22,10 +21,6 @@ const Home = () => { }, body: JSON.stringify({ userInput }), }); - - const basePromptOutput = baseCompletion.data.choices.pop(); - - res.status(200).json({ output: basePromptOutput }); }; return (