rrrreddy commited on
Commit
2d27001
·
1 Parent(s): a4d108a

scroll generated answer

Browse files
Files changed (2) hide show
  1. __pycache__/Rag.cpython-311.pyc +0 -0
  2. app.py +25 -18
__pycache__/Rag.cpython-311.pyc ADDED
Binary file (8.85 kB). View file
 
app.py CHANGED
@@ -9,25 +9,43 @@ st.set_page_config(
9
  initial_sidebar_state="expanded",
10
  )
11
 
12
- # Add a title and description
13
  st.markdown("""
14
  <style>
15
  .title {
16
  font-size: 3em;
17
  font-weight: bold;
18
  color: #4CAF50;
 
19
  }
20
  .description {
21
  font-size: 1.2em;
22
  color: #555555;
 
23
  }
24
  .stTextInput > label {
25
  font-size: 1.2em;
26
  font-weight: bold;
27
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  </style>
29
  """, unsafe_allow_html=True)
30
 
 
31
  st.markdown('<div class="title">Python FAQs Question Answering App</div>', unsafe_allow_html=True)
32
  st.markdown("""
33
  <div class="description">
@@ -36,6 +54,9 @@ st.markdown("""
36
  </div>
37
  """, unsafe_allow_html=True)
38
 
 
 
 
39
  # Input for user query
40
  query = st.text_input("Enter your question:")
41
 
@@ -47,25 +68,11 @@ if query:
47
  else:
48
  st.markdown("Please enter a question to get an answer.")
49
 
 
 
 
50
  # Add a footer
51
  st.markdown("""
52
- <style>
53
- footer {
54
- visibility: hidden;
55
- }
56
- .footer {
57
- visibility: visible;
58
- position: fixed;
59
- bottom: 0;
60
- left: 0;
61
- width: 100%;
62
- background-color: #f1f1f1;
63
- text-align: center;
64
- padding: 10px;
65
- font-size: 1em;
66
- color: #555555;
67
- }
68
- </style>
69
  <div class="footer">
70
  Made with ❤️ in Python by Raghu
71
  </div>
 
9
  initial_sidebar_state="expanded",
10
  )
11
 
12
+ # Add custom CSS for styling
13
  st.markdown("""
14
  <style>
15
  .title {
16
  font-size: 3em;
17
  font-weight: bold;
18
  color: #4CAF50;
19
+ text-align: center;
20
  }
21
  .description {
22
  font-size: 1.2em;
23
  color: #555555;
24
+ text-align: center;
25
  }
26
  .stTextInput > label {
27
  font-size: 1.2em;
28
  font-weight: bold;
29
  }
30
+ .footer {
31
+ visibility: visible;
32
+ position: fixed;
33
+ bottom: 0;
34
+ left: 0;
35
+ width: 100%;
36
+ background-color: #f1f1f1;
37
+ text-align: center;
38
+ padding: 10px;
39
+ font-size: 1em;
40
+ color: #555555;
41
+ }
42
+ .main-content {
43
+ padding-bottom: 70px; /* Space for the footer */
44
+ }
45
  </style>
46
  """, unsafe_allow_html=True)
47
 
48
+ # Main content
49
  st.markdown('<div class="title">Python FAQs Question Answering App</div>', unsafe_allow_html=True)
50
  st.markdown("""
51
  <div class="description">
 
54
  </div>
55
  """, unsafe_allow_html=True)
56
 
57
+ # Container for main content to avoid footer overlap
58
+ st.markdown('<div class="main-content">', unsafe_allow_html=True)
59
+
60
  # Input for user query
61
  query = st.text_input("Enter your question:")
62
 
 
68
  else:
69
  st.markdown("Please enter a question to get an answer.")
70
 
71
+ # Close the main content container
72
+ st.markdown('</div>', unsafe_allow_html=True)
73
+
74
  # Add a footer
75
  st.markdown("""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  <div class="footer">
77
  Made with ❤️ in Python by Raghu
78
  </div>