Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -209,6 +209,7 @@ with gr.Blocks() as interface:
|
|
209 |
if email.strip() and not email_tracked:
|
210 |
# user_hash = hash_user_id(email)
|
211 |
# usage_count = increment_usage(user_hash, len(all_rows))
|
|
|
212 |
usage_count = increment_usage(email, processed_accessions)
|
213 |
email_tracked = True
|
214 |
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."
|
@@ -255,9 +256,11 @@ with gr.Blocks() as interface:
|
|
255 |
|
256 |
# Final update
|
257 |
usage_text = ""
|
|
|
258 |
if email.strip() and not email_tracked:
|
259 |
# user_hash = hash_user_id(email)
|
260 |
# usage_count = increment_usage(user_hash, len(all_rows))
|
|
|
261 |
usage_count = increment_usage(email, processed_accessions)
|
262 |
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."
|
263 |
elif not email.strip():
|
|
|
209 |
if email.strip() and not email_tracked:
|
210 |
# user_hash = hash_user_id(email)
|
211 |
# usage_count = increment_usage(user_hash, len(all_rows))
|
212 |
+
print("print(processed_accessions at stop) ",processed_accessions)
|
213 |
usage_count = increment_usage(email, processed_accessions)
|
214 |
email_tracked = True
|
215 |
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."
|
|
|
256 |
|
257 |
# Final update
|
258 |
usage_text = ""
|
259 |
+
|
260 |
if email.strip() and not email_tracked:
|
261 |
# user_hash = hash_user_id(email)
|
262 |
# usage_count = increment_usage(user_hash, len(all_rows))
|
263 |
+
print("print(processed_accessions final) ",processed_accessions)
|
264 |
usage_count = increment_usage(email, processed_accessions)
|
265 |
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."
|
266 |
elif not email.strip():
|