Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,13 +52,13 @@ st.set_page_config(page_title="IESCO Query Application", layout="wide")
|
|
| 52 |
|
| 53 |
# # Main UI layout
|
| 54 |
st.title("IESCO Query Application")
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
|
| 63 |
st.markdown("<div class='main-content'>", unsafe_allow_html=True)
|
| 64 |
|
|
@@ -66,7 +66,7 @@ url = "https://iesco.com.pk/index.php/customer-services/tariff-guide#"
|
|
| 66 |
document_text = extract_text_from_url(url)
|
| 67 |
st.text_area("Extracted Text", document_text, height=200)
|
| 68 |
|
| 69 |
-
query = st.text_input("
|
| 70 |
|
| 71 |
if st.button("Submit"):
|
| 72 |
if query:
|
|
@@ -79,12 +79,12 @@ if st.button("Submit"):
|
|
| 79 |
|
| 80 |
st.markdown("</div>", unsafe_allow_html=True)
|
| 81 |
|
| 82 |
-
# Customize the theme and color contrast
|
| 83 |
-
st.markdown("""
|
| 84 |
-
<style>
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
</style>
|
| 90 |
-
""", unsafe_allow_html=True)
|
|
|
|
| 52 |
|
| 53 |
# # Main UI layout
|
| 54 |
st.title("IESCO Query Application")
|
| 55 |
+
st.markdown("""
|
| 56 |
+
<style>
|
| 57 |
+
.main-content {background-color: #f0f2f6; padding: 20px; border-radius: 10px;}
|
| 58 |
+
.stButton>button {background-color: #4CAF50; color: white; font-size: 16px; border-radius: 10px;}
|
| 59 |
+
.stTextInput>div>div>input {background-color: #f0f2f6; color: black; border-radius: 5px;}
|
| 60 |
+
</style>
|
| 61 |
+
""", unsafe_allow_html=True)
|
| 62 |
|
| 63 |
st.markdown("<div class='main-content'>", unsafe_allow_html=True)
|
| 64 |
|
|
|
|
| 66 |
document_text = extract_text_from_url(url)
|
| 67 |
st.text_area("Extracted Text", document_text, height=200)
|
| 68 |
|
| 69 |
+
query = st.text_input("Enter your query")
|
| 70 |
|
| 71 |
if st.button("Submit"):
|
| 72 |
if query:
|
|
|
|
| 79 |
|
| 80 |
st.markdown("</div>", unsafe_allow_html=True)
|
| 81 |
|
| 82 |
+
# # Customize the theme and color contrast
|
| 83 |
+
# st.markdown("""
|
| 84 |
+
# <style>
|
| 85 |
+
# .css-1aumxhk {background-color: #E8EAF6;}
|
| 86 |
+
# .stTextInput>div>div>input {border-color: #3f51b5;}
|
| 87 |
+
# .stTextArea>div>div>textarea {border-color: #3f51b5;}
|
| 88 |
+
# .stButton>button {background-color: #3f51b5; color: white; font-size: 16px;}
|
| 89 |
+
# </style>
|
| 90 |
+
# """, unsafe_allow_html=True)
|