Spaces:
Runtime error
Runtime error
Commit
·
a4f0c21
1
Parent(s):
fd8eb4e
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ max_length = 5
|
|
| 11 |
img_width = 200
|
| 12 |
img_height = 50
|
| 13 |
|
| 14 |
-
model = from_pretrained_keras("keras-io/ocr-for-captcha")
|
| 15 |
|
| 16 |
prediction_model = keras.models.Model(
|
| 17 |
model.get_layer(name="image").input, model.get_layer(name="dense2").output
|
|
|
|
| 11 |
img_width = 200
|
| 12 |
img_height = 50
|
| 13 |
|
| 14 |
+
model = from_pretrained_keras("keras-io/ocr-for-captcha", compile=False)
|
| 15 |
|
| 16 |
prediction_model = keras.models.Model(
|
| 17 |
model.get_layer(name="image").input, model.get_layer(name="dense2").output
|