Update app.py
Browse files
app.py
CHANGED
@@ -31,6 +31,9 @@ if uploaded_file is not None:
|
|
31 |
for i in range(len(ocr_class)):
|
32 |
if ocr_class[i].upper() == 'CODE':
|
33 |
idx.append(ocr_list[i])
|
34 |
-
|
35 |
|
|
|
|
|
|
|
|
|
36 |
st.code(("\n").join(idx), language="python", line_numbers=False)
|
|
|
31 |
for i in range(len(ocr_class)):
|
32 |
if ocr_class[i].upper() == 'CODE':
|
33 |
idx.append(ocr_list[i])
|
|
|
34 |
|
35 |
+
|
36 |
+
st.markdown('**Uploaded Image**')
|
37 |
+
st.image(img, caption='Uploaded Image')
|
38 |
+
st.markdown("**Retrieved Code Block**")
|
39 |
st.code(("\n").join(idx), language="python", line_numbers=False)
|