Fourstore commited on
Commit
e359ad2
·
verified ·
1 Parent(s): c7a80ca

Update endpoints/imageProcessor

Browse files
Files changed (1) hide show
  1. endpoints/imageProcessor +0 -18
endpoints/imageProcessor CHANGED
@@ -158,24 +158,6 @@ async function extractTextFromImage(imagePath) {
158
  });
159
  }
160
 
161
- async function main() {
162
- console.log('🏁 DEBUG: Starting main function');
163
- try {
164
- const result = await extractTextFromImage('main_instruction.png');
165
- if (result.status) {
166
- console.log('🎉 FINAL RESULT - Teks yang diekstrak:', result.response);
167
- } else {
168
- console.log('💥 FINAL RESULT - Gagal:', result.response);
169
- }
170
- } catch (error) {
171
- console.error('💥 FINAL ERROR:', error);
172
- }
173
- }
174
-
175
- if (require.main === module) {
176
- main();
177
- }
178
-
179
  module.exports = {
180
  extractTextFromImage,
181
  getRandomSessionId,
 
158
  });
159
  }
160
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
161
  module.exports = {
162
  extractTextFromImage,
163
  getRandomSessionId,