Skip to content

Commit 3e53bde

Browse files
added console log for tags coming from api
1 parent 5d3bb3b commit 3e53bde

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

src/app/api/ai-upload/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export async function POST(req: Request) {
7171
}
7272
const tags = await processAndAnalyze({ imageURL });
7373

74-
// console.log("Final tags:", tags);
74+
console.log(" tags:", tags);
7575

7676
const finalTags = await setTagsFromCurrentLists(tags);
7777
const subject = finalTags["course-name"];

src/app/upload/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ const Page = () => {
120120
if (isPdf && files[0]) {
121121
formData.append("image", await pdfToImage(files[0]));
122122
}
123+
123124
// formData.append("exam", exam);
124125
formData.append("campus", campus);
125126

src/util/gemini.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ type AnalysisResult = {
1313
rawAnalysis: string;
1414
};
1515

16-
// type MistralResponse = {
17-
// choices: Array<{
18-
// message: {
19-
// content: string;
20-
// };
21-
// }>;
22-
// };
2316

2417
// Custom error type
2518
class ProcessingError extends Error {

0 commit comments

Comments
 (0)