peihsin0715 commited on
Commit
53334e9
·
1 Parent(s): a19a694

Fix data saving

Browse files
Files changed (1) hide show
  1. backend/server.py +2 -2
backend/server.py CHANGED
@@ -418,7 +418,7 @@ def run_pipeline():
418
  _GENERATION_RESULTS = evaluated_results
419
 
420
  timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
421
- os.makedirs("tmp", exist_ok=True)
422
  output_file = f"/tmp/pipeline_generation_{timestamp}.csv"
423
  evaluated_results.to_csv(output_file, index=False)
424
  results['generation_file'] = output_file
@@ -589,7 +589,7 @@ def run_pipeline():
589
 
590
 
591
  if __name__ == '__main__':
592
- os.makedirs("tmp", exist_ok=True)
593
  print("Starting minimal Flask server...")
594
  print("Available endpoints:")
595
  print(" GET /health - Health check")
 
418
  _GENERATION_RESULTS = evaluated_results
419
 
420
  timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
421
+ os.makedirs("/tmp", exist_ok=True)
422
  output_file = f"/tmp/pipeline_generation_{timestamp}.csv"
423
  evaluated_results.to_csv(output_file, index=False)
424
  results['generation_file'] = output_file
 
589
 
590
 
591
  if __name__ == '__main__':
592
+ os.makedirs("/tmp", exist_ok=True)
593
  print("Starting minimal Flask server...")
594
  print("Available endpoints:")
595
  print(" GET /health - Health check")