astirn commited on
Commit
dc6d628
·
1 Parent(s): fdd03a5

don't keep uploaded files

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import tiger
2
  import pandas as pd
3
  import streamlit as st
@@ -53,6 +54,7 @@ def initiate_run():
53
  with open(fasta_path, 'w') as f:
54
  f.write(st.session_state.fasta_entry.getvalue().decode('utf-8'))
55
  transcripts = tiger.load_transcripts([fasta_path], enforce_unique_ids=False)
 
56
 
57
  # convert to upper case as used by tokenizer
58
  transcripts[tiger.SEQ_COL] = transcripts[tiger.SEQ_COL].apply(lambda s: s.upper())
 
1
+ import os
2
  import tiger
3
  import pandas as pd
4
  import streamlit as st
 
54
  with open(fasta_path, 'w') as f:
55
  f.write(st.session_state.fasta_entry.getvalue().decode('utf-8'))
56
  transcripts = tiger.load_transcripts([fasta_path], enforce_unique_ids=False)
57
+ os.remove(fasta_path)
58
 
59
  # convert to upper case as used by tokenizer
60
  transcripts[tiger.SEQ_COL] = transcripts[tiger.SEQ_COL].apply(lambda s: s.upper())