MerlenMaven commited on
Commit
30cd067
·
verified ·
1 Parent(s): 5eb80a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,8 +11,8 @@ if not os.path.exists(extract_folder):
11
  with zipfile.ZipFile(zip_path, "r") as zip_ref:
12
  zip_ref.extractall(extract_folder) # Extract to 'fer' directory
13
 
14
- # Add the extracted folder to sys.path so we can import the FER module
15
- sys.path.append(extract_folder)
16
 
17
  import gradio as gr
18
  import cv2
 
11
  with zipfile.ZipFile(zip_path, "r") as zip_ref:
12
  zip_ref.extractall(extract_folder) # Extract to 'fer' directory
13
 
14
+ # Add the extracted folder to sys.path so we can import the FER module from there
15
+ sys.path.insert(0, os.path.abspath(extract_folder)) # Insert at the beginning
16
 
17
  import gradio as gr
18
  import cv2