georad commited on
Commit
26483c9
·
verified ·
1 Parent(s): 41faae3

Update pages/type_text.py

Browse files
Files changed (1) hide show
  1. pages/type_text.py +0 -44
pages/type_text.py CHANGED
@@ -9,50 +9,6 @@ import time
9
  import os
10
  os.getenv("HF_TOKEN")
11
 
12
- import time
13
- import base64
14
-
15
-
16
-
17
- # First, inject the CSS
18
- st.markdown(
19
- <style>
20
- /* Create a fixed container at the top */
21
- .fixed-container {
22
- position: fixed;
23
- top: 0; /* Position below Streamlit header */
24
- left: 0;
25
- right: 0;
26
- background: white;
27
- z-index: 999;
28
- padding: 0;
29
- box-shadow: 0 rgba(0,0,0,0.1);
30
- }
31
-
32
- /* Add padding to the main content to prevent overlap */
33
- .main-content {
34
- padding-top: 0; /* Adjust this value based on your status height */
35
- }
36
- </style>
37
- , unsafe_allow_html=True)
38
-
39
- # Create a container for the fixed status
40
- st.markdown('<div class="fixed-container">', unsafe_allow_html=True)
41
- status = st.status("Processing data...")
42
- with status:
43
- st.write("This status widget will remain fixed while scrolling")
44
- st.markdown('</div>', unsafe_allow_html=True)
45
-
46
- # Add padding to prevent content overlap
47
- st.markdown('<div class="main-content">', unsafe_allow_html=True)
48
-
49
- # Your main content
50
- st.title("Main Content")
51
- for i in range(30):
52
- st.write(f"Content row {i}")
53
-
54
- st.markdown('</div>', unsafe_allow_html=True)
55
-
56
 
57
  #hide_streamlit_style = """
58
  # <style>
 
9
  import os
10
  os.getenv("HF_TOKEN")
11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
  #hide_streamlit_style = """
14
  # <style>