Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,6 @@ import google.generativeai as genai
|
|
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,7 +34,7 @@ def save_uploaded_file(uploaded_file):
|
|
36 |
with open(temp_filename, 'wb') as f:
|
37 |
f.write(file_object.read())
|
38 |
|
39 |
-
|
40 |
|
41 |
return temp_filename
|
42 |
|
|
|
4 |
import tempfile
|
5 |
import os
|
6 |
from pathlib import Path
|
|
|
|
|
7 |
|
8 |
# Initialize MarkItDown
|
9 |
md = MarkItDown()
|
|
|
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 |
|