datascientist22 commited on
Commit
bb7bc72
·
verified ·
1 Parent(s): 0b99432

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -51,8 +51,10 @@ if st.sidebar.button("Submit API Keys"):
51
  # Main Section with Multicolored Background and Chatbot Title
52
  main_bg_style = """
53
  <style>
54
- body {
55
  background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fbc2eb, #a18cd1);
 
 
56
  color: #333; /* Ensure text is visible against the background */
57
  }
58
  .stTextInput>div>div>input {
@@ -62,6 +64,9 @@ main_bg_style = """
62
  """
63
  st.markdown(main_bg_style, unsafe_allow_html=True)
64
 
 
 
 
65
  # Title of the chatbot
66
  st.markdown('<h1 style="color:#4CAF50; font-weight:bold;">🤖 Chatbot with URL-based Document Retrieval</h1>', unsafe_allow_html=True)
67
 
@@ -135,4 +140,7 @@ if st.button("Submit Query"):
135
  # Display chat history
136
  for q, r in st.session_state['chat_history']:
137
  st.write(f"**User:** {q}")
138
- st.write(f"**Bot:** {r}")
 
 
 
 
51
  # Main Section with Multicolored Background and Chatbot Title
52
  main_bg_style = """
53
  <style>
54
+ .main-content {
55
  background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fbc2eb, #a18cd1);
56
+ padding: 20px;
57
+ border-radius: 10px;
58
  color: #333; /* Ensure text is visible against the background */
59
  }
60
  .stTextInput>div>div>input {
 
64
  """
65
  st.markdown(main_bg_style, unsafe_allow_html=True)
66
 
67
+ # Wrapper for main content to apply background style
68
+ st.markdown('<div class="main-content">', unsafe_allow_html=True)
69
+
70
  # Title of the chatbot
71
  st.markdown('<h1 style="color:#4CAF50; font-weight:bold;">🤖 Chatbot with URL-based Document Retrieval</h1>', unsafe_allow_html=True)
72
 
 
140
  # Display chat history
141
  for q, r in st.session_state['chat_history']:
142
  st.write(f"**User:** {q}")
143
+ st.write(f"**Bot:** {r}")
144
+
145
+ # Close the main content wrapper
146
+ st.markdown('</div>', unsafe_allow_html=True)