aliicemill commited on
Commit
b534450
·
verified ·
1 Parent(s): 01593d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -8
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 input_method == "Dosya Yükle" and uploaded_file is None:
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
- # Dosya veya metin kutusundan içerik okuma
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()