diff --git a/components/MedicalReport.tsx b/components/MedicalReport.tsx index 0e85184..0d0445c 100644 --- a/components/MedicalReport.tsx +++ b/components/MedicalReport.tsx @@ -47,7 +47,7 @@ const MedicalReport: React.FC = () => { const extractedText = await analyzeImage(base64Image); console.log(extractedText); setResult(extractedText); - const response = await run(extractedText); + const response: any = await run(extractedText); if ( response && response.data && diff --git a/components/MedicineAnalyzer.tsx b/components/MedicineAnalyzer.tsx index ad6fc64..a7452d2 100644 --- a/components/MedicineAnalyzer.tsx +++ b/components/MedicineAnalyzer.tsx @@ -7,11 +7,12 @@ import { GoogleGenerativeAI } from "@google/generative-ai"; type MedicineAnalyzerProps = {}; type ErrorType = string | null; +type specialType = any; const MedicineAnalyzer: React.FC = () => { const [inputMessage, setInputMessage] = useState(""); const [isGenerating, setIsGenerating] = useState(false); - const [resultJSON, setResultJSON] = useState({}); + const [resultJSON, setResultJSON] = useState({}); const [error, setError] = useState(null); const genAI = new GoogleGenerativeAI( "AIzaSyD7U09b460pOmzMPyJQN5J326ooOqB04ew"