Manishkumaryadav commited on
Commit
20634c6
Β·
verified Β·
1 Parent(s): 11036a5

Rename api.py to app.py

Browse files
Files changed (1) hide show
  1. api.py β†’ app.py +1 -2
api.py β†’ app.py RENAMED
@@ -7,7 +7,7 @@ import pandas as pd
7
  import zipfile
8
  from waitress import serve
9
 
10
- # βœ… Extract the ZIP at runtime (always extract)
11
  zip_file = "company_news.zip"
12
  extract_folder = "company_news"
13
 
@@ -28,7 +28,6 @@ def analyze():
28
  if not company_name:
29
  return jsonify({"error": "Company name is required"}), 400
30
 
31
- # CSV file with extracted articles
32
  csv_file = f"company_news/{company_name}_news.csv"
33
 
34
  if not os.path.exists(csv_file):
 
7
  import zipfile
8
  from waitress import serve
9
 
10
+ # βœ… Extract the ZIP at runtime
11
  zip_file = "company_news.zip"
12
  extract_folder = "company_news"
13
 
 
28
  if not company_name:
29
  return jsonify({"error": "Company name is required"}), 400
30
 
 
31
  csv_file = f"company_news/{company_name}_news.csv"
32
 
33
  if not os.path.exists(csv_file):