MidAtBest commited on
Commit
b59506b
·
1 Parent(s): 17c5f8f

feat: fix runtime errors

Browse files
Files changed (3) hide show
  1. Dockerfile +1 -0
  2. requirements.txt +2 -1
  3. 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
- DATA_DIR = "./data"
 
 
 
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
  # ---------------------------------------------------------------------