Spaces:
Running
Running
feat: fix runtime errors
Browse files- Dockerfile +1 -0
- requirements.txt +2 -1
- src/streamlit_app.py +4 -3
Dockerfile
CHANGED
|
@@ -10,6 +10,7 @@ RUN apt-get update && apt-get install -y \
|
|
| 10 |
|
| 11 |
COPY requirements.txt ./
|
| 12 |
COPY src/ ./src/
|
|
|
|
| 13 |
|
| 14 |
RUN pip3 install -r requirements.txt
|
| 15 |
|
|
|
|
| 10 |
|
| 11 |
COPY requirements.txt ./
|
| 12 |
COPY src/ ./src/
|
| 13 |
+
COPY data/ ./data/
|
| 14 |
|
| 15 |
RUN pip3 install -r requirements.txt
|
| 16 |
|
requirements.txt
CHANGED
|
@@ -14,4 +14,5 @@ tqdm
|
|
| 14 |
transformers
|
| 15 |
tokenizers>=0.15.0
|
| 16 |
sentencepiece
|
| 17 |
-
plotly
|
|
|
|
|
|
| 14 |
transformers
|
| 15 |
tokenizers>=0.15.0
|
| 16 |
sentencepiece
|
| 17 |
+
plotly
|
| 18 |
+
streamlit
|
src/streamlit_app.py
CHANGED
|
@@ -53,11 +53,12 @@ Each metric cell in the CSVs is a list of scores (one per model).
|
|
| 53 |
We expand this to (Model × Species × Dataset) and aggregate according to your filters.
|
| 54 |
"""
|
| 55 |
|
| 56 |
-
|
|
|
|
|
|
|
|
|
|
| 57 |
PEARSON_PATH = os.path.join(DATA_DIR, "bigwig_dataset.csv")
|
| 58 |
MCC_PATH = os.path.join(DATA_DIR, "bed_dataset.csv")
|
| 59 |
-
|
| 60 |
-
|
| 61 |
# ---------------------------------------------------------------------
|
| 62 |
# Data loading & preprocessing
|
| 63 |
# ---------------------------------------------------------------------
|
|
|
|
| 53 |
We expand this to (Model × Species × Dataset) and aggregate according to your filters.
|
| 54 |
"""
|
| 55 |
|
| 56 |
+
HERE = os.path.dirname(os.path.abspath(__file__)) # /app/src
|
| 57 |
+
PROJECT_ROOT = os.path.dirname(HERE) # /app
|
| 58 |
+
DATA_DIR = os.path.join(PROJECT_ROOT, "data")
|
| 59 |
+
|
| 60 |
PEARSON_PATH = os.path.join(DATA_DIR, "bigwig_dataset.csv")
|
| 61 |
MCC_PATH = os.path.join(DATA_DIR, "bed_dataset.csv")
|
|
|
|
|
|
|
| 62 |
# ---------------------------------------------------------------------
|
| 63 |
# Data loading & preprocessing
|
| 64 |
# ---------------------------------------------------------------------
|