Spaces:
Runtime error
Runtime error
Update app.py
#12
by
Yanisadel
- opened
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 |
-
|
|
|
|
| 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:
|