DrishtiSharma commited on
Commit
effc948
Β·
verified Β·
1 Parent(s): 04e6bd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -2
app.py CHANGED
@@ -10,7 +10,6 @@ st.set_page_config(
10
  layout="wide"
11
  )
12
 
13
- # Custom CSS for better aesthetics
14
  st.markdown(
15
  """
16
  <style>
@@ -23,10 +22,20 @@ st.markdown(
23
  background-color: #1E1E1E;
24
  color: white;
25
  padding: 20px;
 
 
 
 
 
 
26
  }
27
  .css-1d391kg {
28
  padding: 0;
29
  }
 
 
 
 
30
  .stTextInput, .stSelectbox, .stButton, .stChatInput {
31
  border-radius: 10px;
32
  padding: 10px;
@@ -112,11 +121,12 @@ with st.sidebar:
112
  1. Enter a webpage URL
113
  2. Click 'Process URL' to analyze the content
114
  3. Ask questions about the webpage
115
- 4. Receive answers
116
  """
117
  )
118
 
119
  # Main Content
 
120
  st.title("🌐 Web RAG Assistant")
121
  st.markdown("### Ask questions about any webpage")
122
  st.divider()
@@ -145,3 +155,4 @@ if st.session_state.url_processed:
145
  st.error(f"Error: {str(e)}")
146
  else:
147
  st.info("πŸ‘ˆ Please process a URL first using the sidebar")
 
 
10
  layout="wide"
11
  )
12
 
 
13
  st.markdown(
14
  """
15
  <style>
 
22
  background-color: #1E1E1E;
23
  color: white;
24
  padding: 20px;
25
+ position: fixed;
26
+ left: 0;
27
+ top: 0;
28
+ height: 100vh;
29
+ width: 280px;
30
+ z-index: 999;
31
  }
32
  .css-1d391kg {
33
  padding: 0;
34
  }
35
+ .main-content {
36
+ margin-left: 300px;
37
+ padding: 20px;
38
+ }
39
  .stTextInput, .stSelectbox, .stButton, .stChatInput {
40
  border-radius: 10px;
41
  padding: 10px;
 
121
  1. Enter a webpage URL
122
  2. Click 'Process URL' to analyze the content
123
  3. Ask questions about the webpage
124
+ 4. Receive AI-powered answers
125
  """
126
  )
127
 
128
  # Main Content
129
+ st.markdown('<div class="main-content">', unsafe_allow_html=True)
130
  st.title("🌐 Web RAG Assistant")
131
  st.markdown("### Ask questions about any webpage")
132
  st.divider()
 
155
  st.error(f"Error: {str(e)}")
156
  else:
157
  st.info("πŸ‘ˆ Please process a URL first using the sidebar")
158
+ st.markdown('</div>', unsafe_allow_html=True)