Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
alfrencho authored Jan 30, 2023
1 parent 5af3efd commit 0cecdaf
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import axios from "axios";

const Home = () => {
const [userInput, setUserInput] = useState('');
};
const [apiOutput, setApiOutput] = useState('');
const [isGenerating, setIsGenerating] = useState(false);

Expand All @@ -22,10 +21,6 @@ const Home = () => {
},
body: JSON.stringify({ userInput }),
});

const basePromptOutput = baseCompletion.data.choices.pop();

res.status(200).json({ output: basePromptOutput });
};

return (
Expand Down

1 comment on commit 0cecdaf

@vercel
Copy link

@vercel vercel bot commented on 0cecdaf Jan 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.