File tree Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export async function POST(req: Request) {
71
71
}
72
72
const tags = await processAndAnalyze ( { imageURL } ) ;
73
73
74
- // console.log("Final tags:", tags);
74
+ console . log ( " tags:" , tags ) ;
75
75
76
76
const finalTags = await setTagsFromCurrentLists ( tags ) ;
77
77
const subject = finalTags [ "course-name" ] ;
Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ const Page = () => {
120
120
if ( isPdf && files [ 0 ] ) {
121
121
formData . append ( "image" , await pdfToImage ( files [ 0 ] ) ) ;
122
122
}
123
+
123
124
// formData.append("exam", exam);
124
125
formData . append ( "campus" , campus ) ;
125
126
Original file line number Diff line number Diff line change @@ -13,13 +13,6 @@ type AnalysisResult = {
13
13
rawAnalysis : string ;
14
14
} ;
15
15
16
- // type MistralResponse = {
17
- // choices: Array<{
18
- // message: {
19
- // content: string;
20
- // };
21
- // }>;
22
- // };
23
16
24
17
// Custom error type
25
18
class ProcessingError extends Error {
You can’t perform that action at this time.
0 commit comments