Spaces:
No application file
No application file
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,6 +21,7 @@ from Bio import SeqIO
|
|
| 21 |
from Bio.Seq import Seq
|
| 22 |
from Bio.SeqRecord import SeqRecord
|
| 23 |
import stat
|
|
|
|
| 24 |
|
| 25 |
# --- Global Variables ---
|
| 26 |
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
@@ -744,8 +745,6 @@ def run_pipeline(dna_input, similarity_score=95.0, build_ml_tree=False):
|
|
| 744 |
logging.error(f"Full traceback: {traceback.format_exc()}")
|
| 745 |
return error_msg, "", "", "", "", None, None, None, error_msg
|
| 746 |
|
| 747 |
-
# Add missing import
|
| 748 |
-
import time
|
| 749 |
|
| 750 |
# --- Gradio Interface ---
|
| 751 |
def create_interface():
|
|
@@ -862,7 +861,7 @@ def create_interface():
|
|
| 862 |
gr.HTML("<h3 style='color: #1e40af; margin-bottom: 10px;'>⚙️ Analysis Settings</h3>")
|
| 863 |
|
| 864 |
similarity_score = gr.Slider(
|
| 865 |
-
minimum=
|
| 866 |
maximum=99.0,
|
| 867 |
value=95.0,
|
| 868 |
step=1.0,
|
|
|
|
| 21 |
from Bio.Seq import Seq
|
| 22 |
from Bio.SeqRecord import SeqRecord
|
| 23 |
import stat
|
| 24 |
+
import time
|
| 25 |
|
| 26 |
# --- Global Variables ---
|
| 27 |
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
| 745 |
logging.error(f"Full traceback: {traceback.format_exc()}")
|
| 746 |
return error_msg, "", "", "", "", None, None, None, error_msg
|
| 747 |
|
|
|
|
|
|
|
| 748 |
|
| 749 |
# --- Gradio Interface ---
|
| 750 |
def create_interface():
|
|
|
|
| 861 |
gr.HTML("<h3 style='color: #1e40af; margin-bottom: 10px;'>⚙️ Analysis Settings</h3>")
|
| 862 |
|
| 863 |
similarity_score = gr.Slider(
|
| 864 |
+
minimum=30.0,
|
| 865 |
maximum=99.0,
|
| 866 |
value=95.0,
|
| 867 |
step=1.0,
|