hugbump commited on
Commit
b5ae78c
1 Parent(s): 4f62844

Move import streamlit as st to top

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  from transformers import TrOCRProcessor, VisionEncoderDecoderModel
2
  from PIL import Image
3
 
@@ -14,7 +16,6 @@ def process_image(image):
14
  return generated_text
15
 
16
  ########################## Streamlit Code ##########################
17
- import streamlit as st
18
  st.title('Streamlit Replication of nielsr/TrOCR-handwritten')
19
  uploaded_file = st.file_uploader("Choose an image...")
20
  if uploaded_file:
 
1
+ import streamlit as st
2
+
3
  from transformers import TrOCRProcessor, VisionEncoderDecoderModel
4
  from PIL import Image
5
 
 
16
  return generated_text
17
 
18
  ########################## Streamlit Code ##########################
 
19
  st.title('Streamlit Replication of nielsr/TrOCR-handwritten')
20
  uploaded_file = st.file_uploader("Choose an image...")
21
  if uploaded_file: