Redmind commited on
Commit
2e4f58f
·
verified ·
1 Parent(s): 672c572

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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 greet_json():
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!"}