SHAMIL SHAHBAZ AWAN
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,23 @@ else:
|
|
| 22 |
except Exception as e:
|
| 23 |
return f"Error with Groq API: {str(e)}"
|
| 24 |
|
| 25 |
-
# Step 4:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
st.title("Rural Connectivity Advisor")
|
| 27 |
st.markdown("""
|
| 28 |
Welcome to the **Rural Connectivity Advisor**!
|
|
|
|
| 22 |
except Exception as e:
|
| 23 |
return f"Error with Groq API: {str(e)}"
|
| 24 |
|
| 25 |
+
# Step 4: Add Background Image using Custom CSS
|
| 26 |
+
background_image_url = "https://www.google.com/url?sa=i&url=https%3A%2F%2Fpt.vecteezy.com%2Ffotos-gratis%2Fblue-background&psig=AOvVaw1LC1vpNneOQ6zY1h4-LEoC&ust=1737902259464000&source=images&cd=vfe&opi=89978449&ved=0CBQQjRxqFwoTCJjw9N6MkYsDFQAAAAAdAAAAABAV"
|
| 27 |
+
st.markdown(
|
| 28 |
+
f"""
|
| 29 |
+
<style>
|
| 30 |
+
.stApp {{
|
| 31 |
+
background-image: url("{background_image_url}");
|
| 32 |
+
background-size: cover;
|
| 33 |
+
background-position: center;
|
| 34 |
+
background-repeat: no-repeat;
|
| 35 |
+
}}
|
| 36 |
+
</style>
|
| 37 |
+
""",
|
| 38 |
+
unsafe_allow_html=True
|
| 39 |
+
)
|
| 40 |
+
|
| 41 |
+
# Step 5: Build Streamlit UI
|
| 42 |
st.title("Rural Connectivity Advisor")
|
| 43 |
st.markdown("""
|
| 44 |
Welcome to the **Rural Connectivity Advisor**!
|