VyLala commited on
Commit
4eba6c8
·
verified ·
1 Parent(s): 0867c1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -288,7 +288,7 @@ with gr.Blocks() as interface:
288
 
289
  tmp_dir = tempfile.mkdtemp()
290
  output_file_path = os.path.join(tmp_dir, "batch_output_live.xlsx")
291
- limited_acc = 50 + (10 if email.strip() else 0)
292
 
293
  # Step 1: Parse input
294
  accessions, error = extract_accessions_from_input(file, text)
@@ -326,7 +326,8 @@ with gr.Blocks() as interface:
326
  print(f"🧪 increment_usage at STOP: {email=} {processed_accessions=}")
327
  usage_count = increment_usage(email, processed_accessions)
328
  email_tracked = True
329
- usage_text = f"**{usage_count}** samples used by this email. Ten more samples are added first (you now have 60 limited accessions), then wait we will contact you via this email."
 
330
  else:
331
  usage_text = f"The limited accession is 50. The user has used {processed_accessions}, and only {50 - processed_accessions} left."
332
 
@@ -375,7 +376,8 @@ with gr.Blocks() as interface:
375
  print(f"🧪 increment_usage at END: {email=} {processed_accessions=}")
376
  usage_count = increment_usage(email, processed_accessions)
377
  email_tracked = True
378
- usage_text = f"**{usage_count}** samples used by this email. Ten more samples are added first (you now have 60 limited accessions), then wait we will contact you via this email."
 
379
  elif not email.strip():
380
  usage_text = f"The limited accession is 50. The user has used {processed_accessions}, and only {50 - processed_accessions} left."
381
 
 
288
 
289
  tmp_dir = tempfile.mkdtemp()
290
  output_file_path = os.path.join(tmp_dir, "batch_output_live.xlsx")
291
+ limited_acc = 50 + (0 if email.strip() else 0)
292
 
293
  # Step 1: Parse input
294
  accessions, error = extract_accessions_from_input(file, text)
 
326
  print(f"🧪 increment_usage at STOP: {email=} {processed_accessions=}")
327
  usage_count = increment_usage(email, processed_accessions)
328
  email_tracked = True
329
+ usage_text = f"**{usage_count}**/50 free samples used by this email."
330
+ #Ten more samples are added first (you now have 60 limited accessions), then wait we will contact you via this email."
331
  else:
332
  usage_text = f"The limited accession is 50. The user has used {processed_accessions}, and only {50 - processed_accessions} left."
333
 
 
376
  print(f"🧪 increment_usage at END: {email=} {processed_accessions=}")
377
  usage_count = increment_usage(email, processed_accessions)
378
  email_tracked = True
379
+ usage_text = f"**{usage_count}**/50 free samples used by this email."
380
+ #Ten more samples are added first (you now have 60 limited accessions), then wait we will contact you via this email."
381
  elif not email.strip():
382
  usage_text = f"The limited accession is 50. The user has used {processed_accessions}, and only {50 - processed_accessions} left."
383