Reaumur commited on
Commit
f69eea1
·
verified ·
1 Parent(s): 2c73483

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,11 +5,11 @@ import numpy as np
5
  import os
6
 
7
  @st.cache_resource
8
- def load_captcha_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_captcha_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