Spaces:
Sleeping
Sleeping
MerlenMaven
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import zipfile
|
2 |
import os
|
|
|
3 |
|
4 |
# Path to your ZIP file and extraction directory
|
5 |
zip_path = "fer.zip" # Ensure the correct path to your ZIP file
|
@@ -10,6 +11,9 @@ if not os.path.exists(extract_folder):
|
|
10 |
with zipfile.ZipFile(zip_path, "r") as zip_ref:
|
11 |
zip_ref.extractall(extract_folder) # Extract to 'fer' directory
|
12 |
|
|
|
|
|
|
|
13 |
import gradio as gr
|
14 |
import cv2
|
15 |
import librosa
|
|
|
1 |
import zipfile
|
2 |
import os
|
3 |
+
import sys
|
4 |
|
5 |
# Path to your ZIP file and extraction directory
|
6 |
zip_path = "fer.zip" # Ensure the correct path to your ZIP file
|
|
|
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
|
19 |
import librosa
|