Commit
·
e7f5cd0
1
Parent(s):
2d0b13d
update
Browse files
app.py
CHANGED
|
@@ -87,8 +87,8 @@ def create_temp_structure():
|
|
| 87 |
return temp_dir, test_folder, target_folder
|
| 88 |
|
| 89 |
st.title("Text Detection App")
|
| 90 |
-
file_name = " || ".join(os.listdir('craft_pytorch'))
|
| 91 |
-
st.write(file_name)
|
| 92 |
uploaded_file = st.file_uploader("Choose an image file", type=["jpg", "jpeg", "png"])
|
| 93 |
|
| 94 |
if uploaded_file is not None:
|
|
@@ -148,4 +148,10 @@ if uploaded_file is not None:
|
|
| 148 |
progress_placeholder.empty()
|
| 149 |
status_text.empty()
|
| 150 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
st.write("Note: The download button will appear after running text detection.")
|
|
|
|
| 87 |
return temp_dir, test_folder, target_folder
|
| 88 |
|
| 89 |
st.title("Text Detection App")
|
| 90 |
+
# file_name = " || ".join(os.listdir('craft_pytorch'))
|
| 91 |
+
# st.write(file_name)
|
| 92 |
uploaded_file = st.file_uploader("Choose an image file", type=["jpg", "jpeg", "png"])
|
| 93 |
|
| 94 |
if uploaded_file is not None:
|
|
|
|
| 148 |
progress_placeholder.empty()
|
| 149 |
status_text.empty()
|
| 150 |
|
| 151 |
+
file_namea = " || ".join(os.listdir(f'{temp_dir}/mask'))
|
| 152 |
+
file_nameb = " || ".join(os.listdir(f'{temp_dir}/result'))
|
| 153 |
+
file_namec = " || ".join(os.listdir(f'{temp_dir}/bbox'))
|
| 154 |
+
st.write(file_namea)
|
| 155 |
+
st.write(file_nameb)
|
| 156 |
+
st.write(file_namec)
|
| 157 |
st.write("Note: The download button will appear after running text detection.")
|