Spaces:
Sleeping
Sleeping
Commit
·
1e1a787
1
Parent(s):
229b1de
corrected local paths
Browse files
app.py
CHANGED
@@ -52,16 +52,13 @@ speech_model = whisper.load_model("base")
|
|
52 |
num_labels=7
|
53 |
label_mapping = ['angry', 'calm', 'disgust', 'fearful', 'happy', 'sad', 'surprised']
|
54 |
|
55 |
-
# Get the path of the current directory
|
56 |
-
current_dir = os.path.dirname(os.path.abspath(__file__))
|
57 |
-
print(f'current_dir is {current_dir}\n')
|
58 |
# Create the path to the file in the parent directory
|
59 |
-
tokenizer1_dir =
|
60 |
|
61 |
# Define your model name from the Hugging Face model hub
|
62 |
model_weights_path = "https://huggingface.co/netgvarun2005/MultiModalBertHubert/resolve/main/MultiModal_model_state_dict.pth"
|
63 |
# GenAI model
|
64 |
-
tokenizer2_dir =
|
65 |
|
66 |
|
67 |
# Emo Detector
|
|
|
52 |
num_labels=7
|
53 |
label_mapping = ['angry', 'calm', 'disgust', 'fearful', 'happy', 'sad', 'surprised']
|
54 |
|
|
|
|
|
|
|
55 |
# Create the path to the file in the parent directory
|
56 |
+
tokenizer1_dir = "./EmotionDetector/Models/Tokenizer/"
|
57 |
|
58 |
# Define your model name from the Hugging Face model hub
|
59 |
model_weights_path = "https://huggingface.co/netgvarun2005/MultiModalBertHubert/resolve/main/MultiModal_model_state_dict.pth"
|
60 |
# GenAI model
|
61 |
+
tokenizer2_dir = "./GenAI/Tokenizer/"
|
62 |
|
63 |
|
64 |
# Emo Detector
|