Anishkumar101 commited on
Commit
3e07d2a
1 Parent(s): 351a55c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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])