Skip to content

Commit

Permalink
type check done
Browse files Browse the repository at this point in the history
  • Loading branch information
chetandivekar committed Dec 17, 2023
1 parent 8170bb6 commit 7f6e33e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/MedicalReport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const MedicalReport: React.FC<MedicalReportProps> = () => {
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 &&
Expand Down
3 changes: 2 additions & 1 deletion components/MedicineAnalyzer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ import { GoogleGenerativeAI } from "@google/generative-ai";

type MedicineAnalyzerProps = {};
type ErrorType = string | null;
type specialType = any;

const MedicineAnalyzer: React.FC<any> = () => {
const [inputMessage, setInputMessage] = useState("");
const [isGenerating, setIsGenerating] = useState(false);
const [resultJSON, setResultJSON] = useState({});
const [resultJSON, setResultJSON] = useState<specialType>({});
const [error, setError] = useState<ErrorType>(null);
const genAI = new GoogleGenerativeAI(
"AIzaSyD7U09b460pOmzMPyJQN5J326ooOqB04ew"
Expand Down

0 comments on commit 7f6e33e

Please sign in to comment.