Update main.py
Browse files
main.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import tensorflow as tf
|
2 |
from transformers import pipeline
|
3 |
-
|
4 |
import pandas as pd
|
5 |
import numpy as np
|
6 |
import joblib
|
@@ -41,7 +41,7 @@ if not sys.warnoptions:
|
|
41 |
warnings.simplefilter("ignore")
|
42 |
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
43 |
|
44 |
-
model
|
45 |
|
46 |
|
47 |
def feat_ext(data):
|
|
|
1 |
import tensorflow as tf
|
2 |
from transformers import pipeline
|
3 |
+
from huggingface_hub import from_pretrained_keras
|
4 |
import pandas as pd
|
5 |
import numpy as np
|
6 |
import joblib
|
|
|
41 |
warnings.simplefilter("ignore")
|
42 |
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
43 |
|
44 |
+
model=from_pretrained_keras( 'Mohamed41/MODEL_EMOTION_AR_TEXT_72P')
|
45 |
|
46 |
|
47 |
def feat_ext(data):
|