Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
| 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
|