Update app.py
#1
by
Anishkumar101
- opened
app.py
CHANGED
@@ -220,7 +220,7 @@ def main():
|
|
220 |
decoderType = decoderMapping[decoderSelect]
|
221 |
|
222 |
#Finally, we call the model with this image as attribute and display the Best Candidate and its probability on the Interface
|
223 |
-
model = Model(list(open(modelDir + "/charList.txt").read()), modelDir, decoderType, must_restore=True)
|
224 |
inferedText = infer(modelDir == '../model/line-model', model, 'userInput.png')
|
225 |
|
226 |
st.write("**Best Candidate: **", inferedText[0][0])
|
|
|
220 |
decoderType = decoderMapping[decoderSelect]
|
221 |
|
222 |
#Finally, we call the model with this image as attribute and display the Best Candidate and its probability on the Interface
|
223 |
+
model = Model(list(open(modelDir + "word-model/charList.txt").read()), modelDir, decoderType, must_restore=True)
|
224 |
inferedText = infer(modelDir == '../model/line-model', model, 'userInput.png')
|
225 |
|
226 |
st.write("**Best Candidate: **", inferedText[0][0])
|