Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -31,7 +31,8 @@ def run_chatnt(dna_text, fasta_file, custom_question):
31
  if dna_text and dna_text.strip():
32
  dna_sequence = dna_text.strip().replace("\n", "")
33
  elif fasta_file is not None:
34
- file_content = fasta_file.read().decode("utf-8")
 
35
  lines = file_content.splitlines()
36
  sequence = ""
37
  for line in lines:
 
31
  if dna_text and dna_text.strip():
32
  dna_sequence = dna_text.strip().replace("\n", "")
33
  elif fasta_file is not None:
34
+ with open(fasta_file.name, "r") as f:
35
+ file_content = f.read()
36
  lines = file_content.splitlines()
37
  sequence = ""
38
  for line in lines: