Spaces:
Sleeping
Sleeping
Streamlit ui update to view full answer
Browse files
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 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
</style>
|
| 30 |
-
""", unsafe_allow_html=True)
|
| 31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 ❤️
|
| 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)
|