Commit 9c76a64a authored by Paranagama R.P.S.D.'s avatar Paranagama R.P.S.D.

fix : Model load issue fix

parent 62495789
......@@ -49,3 +49,11 @@
2023-08-30 22:40:09,427 - INFO - Error.
2023-08-30 22:40:09,427 - INFO - Error.
2023-08-30 22:40:09,427 - INFO - Error.
2023-09-02 18:07:23,625 - INFO - Failed to make predictions. 'NoneType' object has no attribute 'predict'
2023-09-02 18:07:23,625 - INFO - Failed to make predictions. 'NoneType' object has no attribute 'predict'
2023-09-02 18:07:23,625 - INFO - Failed to make predictions. 'NoneType' object has no attribute 'predict'
2023-09-02 18:07:23,625 - INFO - Failed to make predictions. 'NoneType' object has no attribute 'predict'
2023-09-02 18:07:23,627 - INFO - Error.
2023-09-02 18:07:23,627 - INFO - Error.
2023-09-02 18:07:23,627 - INFO - Error.
2023-09-02 18:07:23,627 - INFO - Error.
......@@ -17,8 +17,7 @@ class ImageRequest(BaseModel):
# Load your Keras model
# model = tf.keras.models.load_model('../ML_Models/sign_language_to_text/models/sign_language_model.h5')
model= None
model = tf.keras.models.load_model('../ML_Models/sign_language_to_text/models/sign_language_model.h5')
CLASSES = mappings.classes
NUM_CLASSES = len(mappings.classes) # number of classes
IMG_SIZE = 224 # image size
......
......@@ -7,3 +7,4 @@ moviepy==1.0.3
SpeechRecognition==3.10.0
tk==0.1.0
requests==2.31.0
pymongo==4.5.0
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment