Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -39,6 +39,10 @@ async def perform_document_qa(
|
|
39 |
image,
|
40 |
question.strip()
|
41 |
)
|
|
|
|
|
|
|
|
|
42 |
answers_dict[question] = result['answer']
|
43 |
|
44 |
return answers_dict
|
@@ -64,6 +68,10 @@ async def load_file(
|
|
64 |
image,
|
65 |
question.strip()
|
66 |
)
|
|
|
|
|
|
|
|
|
67 |
answers_dict[question] = result['answer']
|
68 |
|
69 |
return answers_dict
|
|
|
39 |
image,
|
40 |
question.strip()
|
41 |
)
|
42 |
+
|
43 |
+
# Print the result for debugging
|
44 |
+
print(result)
|
45 |
+
|
46 |
answers_dict[question] = result['answer']
|
47 |
|
48 |
return answers_dict
|
|
|
68 |
image,
|
69 |
question.strip()
|
70 |
)
|
71 |
+
|
72 |
+
# Print the result for debugging
|
73 |
+
print(result)
|
74 |
+
|
75 |
answers_dict[question] = result['answer']
|
76 |
|
77 |
return answers_dict
|