Sathvik-kota commited on
Commit
86e6250
·
verified ·
1 Parent(s): dc56b59

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -716,11 +716,10 @@ def health_check():
716
  from fastapi import BackgroundTasks
717
 
718
  @app.get("/run-all-samples")
719
- async def run_all_samples(background: BackgroundTasks):
720
- def task():
721
- import run_all_samples
722
- run_all_samples.main()
723
-
724
- background.add_task(task)
725
- return {"status": "started", "message": "Running extraction on all 15 samples in background."}
726
-
 
716
  from fastapi import BackgroundTasks
717
 
718
  @app.get("/run-all-samples")
719
+ async def run_all_samples_endpoint():
720
+ import run_all_samples
721
+ run_all_samples.main() # RUN DIRECTLY, NOT BACKGROUND
722
+ return {
723
+ "status": "completed",
724
+ "message": "All samples processed. Check results/ folder."
725
+ }