Arihant0008 commited on
Commit
1480e06
·
verified ·
1 Parent(s): 04856c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -31,7 +31,7 @@ HF_TOKEN = os.environ.get("HF_TOKEN")
31
  limiter = Limiter(
32
  get_remote_address,
33
  app=app,
34
- default_limits=["4 per day"],
35
  storage_uri="memory://"
36
  )
37
 
@@ -468,7 +468,7 @@ Generate a comprehensive, detailed report following this structure while maintai
468
 
469
  # --- Download Report Route (CRITICAL FIXES HERE) ---
470
  @app.route('/download_report', methods=['POST'])
471
- @limiter.limit("4 per day")
472
  def download_report():
473
  print("🔍 DEBUG: Processing download request.")
474
 
@@ -549,7 +549,7 @@ p {{ margin: 8px 0; text-align: justify; }}
549
 
550
  # --- Index Route ---
551
  @app.route('/', methods=['GET', 'POST'])
552
- @limiter.limit("4 per day")
553
  def index():
554
  if request.method == 'POST':
555
  if 'file' not in request.files or request.files['file'].filename == '':
 
31
  limiter = Limiter(
32
  get_remote_address,
33
  app=app,
34
+ default_limits=["1 per day"],
35
  storage_uri="memory://"
36
  )
37
 
 
468
 
469
  # --- Download Report Route (CRITICAL FIXES HERE) ---
470
  @app.route('/download_report', methods=['POST'])
471
+ @limiter.limit("1 per day")
472
  def download_report():
473
  print("🔍 DEBUG: Processing download request.")
474
 
 
549
 
550
  # --- Index Route ---
551
  @app.route('/', methods=['GET', 'POST'])
552
+ @limiter.limit("1 per day")
553
  def index():
554
  if request.method == 'POST':
555
  if 'file' not in request.files or request.files['file'].filename == '':