Skip to content

Commit

Permalink
Merge pull request #10 from Play2HelpWorld-com/Create-HomePage
Browse files Browse the repository at this point in the history
Create home page
  • Loading branch information
ibugithub authored Sep 4, 2023
2 parents f95b41e + a4658bf commit cced5e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/Ask/askMe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
import React, { useState} from 'react';
import axios from 'axios';
import Image from 'next/image';
import LoadingDots from './loadingAnimation';

const AskMe = () => {
const [question, setQuestion] = useState('');
const [response, setResponse] = useState('');
const [error, setError] = useState(false);
const [isLoading, setIsLoading] = useState(false);

const handleAsk = async () => {
Expand All @@ -20,7 +18,7 @@ const AskMe = () => {
method: 'POST',
headers: {
'content-type': 'application/json',
'X-RapidAPI-Key': '3e23859a70msh24ff10192c00a8dp1962edjsn2a9fc0364514',
'X-RapidAPI-Key': '12865b262bmsh1df342a7a8209adp11946djsned15b0207e45',
'X-RapidAPI-Host': 'open-ai21.p.rapidapi.com'
},
body: JSON.stringify({
Expand Down

0 comments on commit cced5e7

Please sign in to comment.