Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,17 +44,11 @@ def run_turkish():
|
|
| 44 |
#akldnaslkdnmllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
|
| 45 |
# Notları yükleme ve işleme işlemleri (Butona basıldıysa çalışır)
|
| 46 |
if not st.session_state.show_images:
|
| 47 |
-
if
|
| 48 |
-
st.error("Lütfen bir dosya yükleyin!")
|
| 49 |
-
elif input_method == "Kopyala-Yapıştır" and not text_input:
|
| 50 |
st.error("Lütfen notları metin kutusuna yapıştırın!")
|
| 51 |
else:
|
| 52 |
try:
|
| 53 |
-
|
| 54 |
-
if uploaded_file:
|
| 55 |
-
content = uploaded_file.read().decode("utf-8")
|
| 56 |
-
elif text_input:
|
| 57 |
-
content = text_input
|
| 58 |
|
| 59 |
# Veriyi işleme
|
| 60 |
content = content.strip()
|
|
|
|
| 44 |
#akldnaslkdnmllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
|
| 45 |
# Notları yükleme ve işleme işlemleri (Butona basıldıysa çalışır)
|
| 46 |
if not st.session_state.show_images:
|
| 47 |
+
if not text_input:
|
|
|
|
|
|
|
| 48 |
st.error("Lütfen notları metin kutusuna yapıştırın!")
|
| 49 |
else:
|
| 50 |
try:
|
| 51 |
+
content = text_input
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
# Veriyi işleme
|
| 54 |
content = content.strip()
|