aliicemill commited on
Commit
e32f006
·
verified ·
1 Parent(s): 5de6a05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -13
app.py CHANGED
@@ -34,19 +34,12 @@ def run_turkish():
34
 
35
  # Resimler yalnızca show_images True ise gösterilir
36
  if st.session_state.show_images:
37
- # PDF dosyasının yolu
38
- pdf_path = os.path.join("turkish", "NoteAnalyzerTurkish.pdf")
39
-
40
- # PDF dosyasını base64'e dönüştürme
41
- with open(pdf_path, "rb") as pdf_file:
42
- pdf_data = pdf_file.read()
43
- pdf_base64 = base64.b64encode(pdf_data).decode("utf-8")
44
-
45
- # PDF'yi iframe ile gösterme
46
- st.markdown(f'<iframe src="data:application/pdf;base64,{pdf_base64}" width="700" height="500"></iframe>', unsafe_allow_html=True)
47
-
48
- # İndirme butonu ekleme
49
- st.download_button("PDF İndir", data=pdf_data, file_name="NoteAnalyzerTurkish.pdf", mime="application/pdf")
50
 
51
  #akldnaslkdnmllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
52
  # Notları yükleme ve işleme işlemleri (Butona basıldıysa çalışır)
 
34
 
35
  # Resimler yalnızca show_images True ise gösterilir
36
  if st.session_state.show_images:
37
+ st.subheader("Uygulama nasıl çalışır (bilgisayardan kullanılması tavsiye edilir)")
38
+
39
+ image_files = ["turkish/a.png", "turkish/b.png", "turkish/c.png"]
40
+
41
+ for image_file in image_files:
42
+ st.image(image_file, use_container_width=True)
 
 
 
 
 
 
 
43
 
44
  #akldnaslkdnmllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
45
  # Notları yükleme ve işleme işlemleri (Butona basıldıysa çalışır)