gnumanth commited on
Commit
3ebc257
·
verified ·
1 Parent(s): 0c78edd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -4,6 +4,8 @@ import google.generativeai as genai
4
  import tempfile
5
  import os
6
  from pathlib import Path
 
 
7
 
8
  # Initialize MarkItDown
9
  md = MarkItDown()
@@ -34,7 +36,7 @@ def save_uploaded_file(uploaded_file):
34
  with open(temp_filename, 'wb') as f:
35
  f.write(file_object.read())
36
 
37
- print(filename, temp_filename)
38
 
39
  return temp_filename
40
 
 
4
  import tempfile
5
  import os
6
  from pathlib import Path
7
+ from transformers.utils import logging
8
+
9
 
10
  # Initialize MarkItDown
11
  md = MarkItDown()
 
36
  with open(temp_filename, 'wb') as f:
37
  f.write(file_object.read())
38
 
39
+ logger.info(filename, temp_filename)
40
 
41
  return temp_filename
42