rrrreddy commited on
Commit
48fd63b
·
1 Parent(s): 03471c4

Streamlit ui update to view full answer

Browse files
Files changed (1) hide show
  1. app.py +25 -19
app.py CHANGED
@@ -10,25 +10,31 @@ st.set_page_config(
10
  )
11
 
12
  # Add a title and description
13
- st.title("Python FAQs Question Answering App")
14
  st.markdown("""
15
- <style>
16
- .stTitle {
17
- font-size: 3em;
18
- font-weight: bold;
19
- color: #4CAF50;
20
- }
21
- .stMarkdown {
22
- font-size: 1.2em;
23
- color: #555555;
24
- }
25
- .stTextInput > label {
26
- font-size: 1.2em;
27
- font-weight: bold;
28
- }
29
- </style>
30
- """, unsafe_allow_html=True)
31
- st.markdown("Enter your question about Python and get an instant answer! the chatbot is trained on from the [python faq's](https://docs.python.org/3/faq/index.html).")
 
 
 
 
 
 
 
32
 
33
  # Input for user query
34
  query = st.text_input("Enter your question:")
@@ -61,6 +67,6 @@ st.markdown("""
61
  }
62
  </style>
63
  <div class="footer">
64
- Made with ❤️ on python by Raghu
65
  </div>
66
  """, unsafe_allow_html=True)
 
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">
34
+ Enter your question about Python and get an instant answer! The chatbot is trained on data from the
35
+ <a href="https://docs.python.org/3/faq/index.html" target="_blank">Python FAQs</a>.
36
+ </div>
37
+ """, unsafe_allow_html=True)
38
 
39
  # Input for user query
40
  query = st.text_input("Enter your question:")
 
67
  }
68
  </style>
69
  <div class="footer">
70
+ Made with ❤️ in Python by Raghu
71
  </div>
72
  """, unsafe_allow_html=True)