GitHub Actions commited on
Commit
0474f3a
·
1 Parent(s): cb0a80f

Sync from GitHub Actions

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. src/__init__.py +0 -0
app.py CHANGED
@@ -3,7 +3,7 @@ import sys
3
  from pathlib import Path
4
  import streamlit as st
5
  from PIL import Image
6
- ROOT_DIR = Path(__file__).resolve().parents[1]
7
  if str(ROOT_DIR) not in sys.path:
8
  sys.path.insert(0, str(ROOT_DIR))
9
 
@@ -100,7 +100,7 @@ def main():
100
  )
101
 
102
  config = load_config(
103
- str(ROOT_DIR / "configs" / "config.yaml")
104
  )
105
 
106
  repo_id = config.get("model", {}).get(
 
3
  from pathlib import Path
4
  import streamlit as st
5
  from PIL import Image
6
+ ROOT_DIR = Path(__file__).resolve().parent
7
  if str(ROOT_DIR) not in sys.path:
8
  sys.path.insert(0, str(ROOT_DIR))
9
 
 
100
  )
101
 
102
  config = load_config(
103
+ ROOT_DIR / "configs" / "config.yaml"
104
  )
105
 
106
  repo_id = config.get("model", {}).get(
src/__init__.py ADDED
File without changes