VyLala commited on
Commit
d79f1bd
·
verified ·
1 Parent(s): 40993b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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 + (0 if email.strip() else 0)
292
  # Step 1: Parse input
293
  accessions, error = extract_accessions_from_input(file, text)
294
  print("🧪 Accessions received:", accessions)
@@ -316,7 +316,7 @@ with gr.Blocks() as interface:
316
  log_lines = []
317
  if not email.strip():
318
  output_file_path = None#"Write your email so that you can download the outputs."
319
- log_lines.append("📥 Provide your email to receive a downloadable Excel report.")
320
  # Step 2: Loop through accessions
321
  for i, acc in enumerate(accessions):
322
  if global_stop_flag.value:
@@ -330,7 +330,7 @@ with gr.Blocks() as interface:
330
  usage_text = f"**{usage_count}**/50 free samples used by this email."
331
  #Ten more samples are added first (you now have 60 limited accessions), then wait we will contact you via this email."
332
  else:
333
- usage_text = f"The limited accession is 50. The user has used {processed_accessions}, and only {50 - processed_accessions} left."
334
 
335
  yield (
336
  make_html_table(all_rows),
@@ -382,7 +382,7 @@ with gr.Blocks() as interface:
382
  usage_text = f"**{usage_count}**/50 free samples used by this email."
383
  #Ten more samples are added first (you now have 60 limited accessions), then wait we will contact you via this email."
384
  elif not email.strip():
385
- usage_text = f"The limited accession is 50. The user has used {processed_accessions}, and only {50 - processed_accessions} left."
386
 
387
  yield (
388
  make_html_table(all_rows),
 
288
 
289
  tmp_dir = tempfile.mkdtemp()
290
  output_file_path = os.path.join(tmp_dir, "batch_output_live.xlsx")
291
+ limited_acc = 30 + (20 if email.strip() else 0)
292
  # Step 1: Parse input
293
  accessions, error = extract_accessions_from_input(file, text)
294
  print("🧪 Accessions received:", accessions)
 
316
  log_lines = []
317
  if not email.strip():
318
  output_file_path = None#"Write your email so that you can download the outputs."
319
+ log_lines.append("📥 Provide your email to receive a downloadable Excel report and get 20 more free queries.")
320
  # Step 2: Loop through accessions
321
  for i, acc in enumerate(accessions):
322
  if global_stop_flag.value:
 
330
  usage_text = f"**{usage_count}**/50 free samples used by this email."
331
  #Ten more samples are added first (you now have 60 limited accessions), then wait we will contact you via this email."
332
  else:
333
+ usage_text = f"The limited accession is 30. The user has used {processed_accessions}, and only {30 - processed_accessions} left."
334
 
335
  yield (
336
  make_html_table(all_rows),
 
382
  usage_text = f"**{usage_count}**/50 free samples used by this email."
383
  #Ten more samples are added first (you now have 60 limited accessions), then wait we will contact you via this email."
384
  elif not email.strip():
385
+ usage_text = f"The limited accession is 30. The user has used {processed_accessions}, and only {30 - processed_accessions} left."
386
 
387
  yield (
388
  make_html_table(all_rows),