aliicemill commited on
Commit
9fc48e6
·
verified ·
1 Parent(s): 081b63c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +32 -1
app.py CHANGED
@@ -4,6 +4,37 @@ import numpy as np
4
  import matplotlib.pyplot as plt
5
  from io import BytesIO
6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  # Başlık
8
  st.title("Note Analyzer Streamlit Uygulaması")
9
 
@@ -11,7 +42,7 @@ st.title("Note Analyzer Streamlit Uygulaması")
11
  st.subheader("Uygulamanın Çalışma Prensibi")
12
 
13
  # Resimlerin dosya isimlerini sırayla listele
14
- image_files = ["a.png", "b.png", "c.png", "d.png", "e.png", "f.png", "g.png"]
15
 
16
  # Resimleri alt alta ekle
17
  for image_file in image_files:
 
4
  import matplotlib.pyplot as plt
5
  from io import BytesIO
6
 
7
+ # Sayfanın üst kısmında sabit kalması için CSS stilini ekle
8
+ st.markdown("""
9
+ <style>
10
+ .stApp {
11
+ padding-top: 150px;
12
+ }
13
+ .sidebar .sidebar-content {
14
+ position: fixed;
15
+ top: 0;
16
+ left: 0;
17
+ z-index: 100;
18
+ width: 100%;
19
+ height: 100%;
20
+ background-color: white;
21
+ }
22
+ .stSidebar {
23
+ position: fixed;
24
+ top: 0;
25
+ left: 0;
26
+ z-index: 1;
27
+ width: 250px;
28
+ height: 100vh;
29
+ overflow-y: auto;
30
+ }
31
+ .stMain {
32
+ margin-left: 270px;
33
+ padding: 20px;
34
+ }
35
+ </style>
36
+ """, unsafe_allow_html=True)
37
+
38
  # Başlık
39
  st.title("Note Analyzer Streamlit Uygulaması")
40
 
 
42
  st.subheader("Uygulamanın Çalışma Prensibi")
43
 
44
  # Resimlerin dosya isimlerini sırayla listele
45
+ image_files = ["file/a.png", "file/b.png", "file/c.png", "file/d.png", "file/e.png", "file/f.png", "file/g.png"]
46
 
47
  # Resimleri alt alta ekle
48
  for image_file in image_files: