Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -108,16 +108,12 @@ if choice == 'টেক্সট ইনপুট':
|
|
| 108 |
|
| 109 |
|
| 110 |
if choice == 'ফাইল আপলোড (for PUBLIC use)':
|
| 111 |
-
uploaded_files = st.file_uploader("আপনার ফাইল নির্বাচন করুন")
|
| 112 |
if uploaded_files is not None:
|
| 113 |
-
|
| 114 |
-
f_name = search_word_def + '.txt'
|
| 115 |
-
|
| 116 |
-
f = open(f_name, 'a+')
|
| 117 |
-
lines = f.readlines()
|
| 118 |
|
| 119 |
for line in lines:
|
| 120 |
-
|
| 121 |
|
| 122 |
f.close()
|
| 123 |
|
|
|
|
| 108 |
|
| 109 |
|
| 110 |
if choice == 'ফাইল আপলোড (for PUBLIC use)':
|
| 111 |
+
uploaded_files = st.file_uploader("আপনার ফাইল নির্বাচন করুন", type='.txt')
|
| 112 |
if uploaded_files is not None:
|
| 113 |
+
lines = uploaded_file.read().decode('utf-8').splitlines()
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
|
| 115 |
for line in lines:
|
| 116 |
+
st.write(line)
|
| 117 |
|
| 118 |
f.close()
|
| 119 |
|