Update app.py
Browse files
app.py
CHANGED
@@ -5,11 +5,11 @@ import numpy as np
|
|
5 |
import os
|
6 |
|
7 |
@st.cache_resource
|
8 |
-
def
|
9 |
model_path = "model.keras" # Update with the actual CAPTCHA model path
|
10 |
return tf.keras.models.load_model(model_path)
|
11 |
|
12 |
-
model =
|
13 |
|
14 |
def prepare_captcha_image(img):
|
15 |
# Resize image to the input shape required by the CAPTCHA model
|
|
|
5 |
import os
|
6 |
|
7 |
@st.cache_resource
|
8 |
+
def load_model():
|
9 |
model_path = "model.keras" # Update with the actual CAPTCHA model path
|
10 |
return tf.keras.models.load_model(model_path)
|
11 |
|
12 |
+
model = load_model()
|
13 |
|
14 |
def prepare_captcha_image(img):
|
15 |
# Resize image to the input shape required by the CAPTCHA model
|