Thomas Dehaene commited on
Commit
7b11265
·
1 Parent(s): 0f0f483

Update streamlit

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -4,6 +4,7 @@ from transformers import pipeline
4
  import nlpaug.augmenter.char as nac
5
  import subprocess
6
  import sys
 
7
 
8
  def install():
9
  subprocess.check_call([sys.executable, "-m", "pip", "install", "streamlit==0.89.0"])
@@ -12,6 +13,8 @@ install()
12
 
13
  import streamlit as st
14
 
 
 
15
 
16
  st.markdown('# ByT5 Dutch OCR Corrector :pill:')
17
  st.write('This app corrects common dutch OCR mistakes, to showcase how this could be used in an OCR post-processing pipeline.')
 
4
  import nlpaug.augmenter.char as nac
5
  import subprocess
6
  import sys
7
+ import logging
8
 
9
  def install():
10
  subprocess.check_call([sys.executable, "-m", "pip", "install", "streamlit==0.89.0"])
 
13
 
14
  import streamlit as st
15
 
16
+ logging.warning(pip.get_installed_distributions())
17
+
18
 
19
  st.markdown('# ByT5 Dutch OCR Corrector :pill:')
20
  st.write('This app corrects common dutch OCR mistakes, to showcase how this could be used in an OCR post-processing pipeline.')