Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -146,11 +146,9 @@ def process_and_store(pdf_path=None, pptx_path=None):
|
|
| 146 |
images.extend(extract_images_from_pptx(pptx_path))
|
| 147 |
store_data(texts, images)
|
| 148 |
|
| 149 |
-
|
| 150 |
-
|
| 151 |
# FastAPI Endpoints
|
| 152 |
@app.get("/")
|
| 153 |
-
def
|
| 154 |
# Run Data Processing
|
| 155 |
process_and_store(pdf_path=pdf_file, pptx_path=pptx_file)
|
| 156 |
return {"Document store": "created!"}
|
|
|
|
| 146 |
images.extend(extract_images_from_pptx(pptx_path))
|
| 147 |
store_data(texts, images)
|
| 148 |
|
|
|
|
|
|
|
| 149 |
# FastAPI Endpoints
|
| 150 |
@app.get("/")
|
| 151 |
+
def create_vector():
|
| 152 |
# Run Data Processing
|
| 153 |
process_and_store(pdf_path=pdf_file, pptx_path=pptx_file)
|
| 154 |
return {"Document store": "created!"}
|