Spaces:
No application file
No application file
Create admin.py
Browse files
admin.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from utils.ingest_image import extract_and_store_images
|
2 |
+
from utils.ingest_text import create_vector_database
|
3 |
+
from utils.ingest_video import initiate_video
|
4 |
+
|
5 |
+
def process_pdf(pdf_path):
|
6 |
+
image_collection = extract_and_store_images(pdf_path)
|
7 |
+
text_collection = create_vector_database(pdf_path)
|
8 |
+
video_collection = initiate_video(video_path)
|
9 |
+
return image_collection, text_collection, video_collection
|