Spaces:
Running
Running
Saurabh Kumar
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -69,11 +69,13 @@ def get_qwen_text(uploaded_file):
|
|
69 |
# Streamlit app title
|
70 |
st.title("OCR Image Text Extraction")
|
71 |
|
|
|
|
|
72 |
# File uploader for images
|
73 |
uploaded_file = st.file_uploader("Choose an image...", type=["png", "jpg", "jpeg"])
|
74 |
|
75 |
st.subheader("Extracted Text:")
|
76 |
-
output = get_qwen_text(uploaded_file)
|
77 |
st.write(output)
|
78 |
|
79 |
# Keyword search functionality
|
|
|
69 |
# Streamlit app title
|
70 |
st.title("OCR Image Text Extraction")
|
71 |
|
72 |
+
MODEL, PROCESSOR = init_qwen_model()
|
73 |
+
|
74 |
# File uploader for images
|
75 |
uploaded_file = st.file_uploader("Choose an image...", type=["png", "jpg", "jpeg"])
|
76 |
|
77 |
st.subheader("Extracted Text:")
|
78 |
+
output = get_qwen_text(uploaded_file, MODEL, PROCESSOR)
|
79 |
st.write(output)
|
80 |
|
81 |
# Keyword search functionality
|