euracle commited on
Commit
67b038e
·
verified ·
1 Parent(s): af34ac1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -15
app.py CHANGED
@@ -87,31 +87,36 @@ h1, h2, h3 {
87
  </style>
88
  """, unsafe_allow_html=True)
89
 
 
90
  st.markdown("""
91
  <style>
92
- #the-title {
93
- text-align: center;
94
- font-size: 24px;
95
- color: white;
96
- }
97
- .css-10trblm {
98
- text-align: center;
99
- }
100
- .css-1a7jz76 {
101
- text-align: center;
102
- }
 
103
  </style>
104
  """, unsafe_allow_html=True)
105
 
 
106
  st.title("🌿 Dr. Radha: AI-Powered Organic Farming Consultant")
107
  st.subheader("Specializing in Agro-Homeopathy | Free Consultation")
108
 
109
- # Add information request message
110
  st.markdown("""
111
- Please provide complete details about the issue, including:
112
- - Detailed description of plant problem
 
113
  - Current location, temperature & weather conditions
114
- """)
 
115
 
116
  human_image = "human.png"
117
  robot_image = "bot.jpg"
 
87
  </style>
88
  """, unsafe_allow_html=True)
89
 
90
+ # Add custom CSS for centering
91
  st.markdown("""
92
  <style>
93
+ /* Center align title and header */
94
+ .css-10trblm, .css-1a7jz76 {
95
+ text-align: center !important;
96
+ color: white !important;
97
+ }
98
+
99
+ /* Center align markdown text */
100
+ .center-text {
101
+ text-align: center !important;
102
+ margin: 0 auto;
103
+ display: block;
104
+ }
105
  </style>
106
  """, unsafe_allow_html=True)
107
 
108
+ # Title and subheader
109
  st.title("🌿 Dr. Radha: AI-Powered Organic Farming Consultant")
110
  st.subheader("Specializing in Agro-Homeopathy | Free Consultation")
111
 
112
+ # Information message with centered alignment
113
  st.markdown("""
114
+ <div class="center-text">
115
+ Please provide complete details about the issue, including:<br>
116
+ - Detailed description of plant problem<br>
117
  - Current location, temperature & weather conditions
118
+ </div>
119
+ """, unsafe_allow_html=True)
120
 
121
  human_image = "human.png"
122
  robot_image = "bot.jpg"