medmac01 commited on
Commit
1f38290
·
1 Parent(s): 0b2bd33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -182,12 +182,14 @@ def sidebar_bg(side_bg):
182
  def main():
183
  # Sidebar contents
184
  with st.sidebar:
 
185
  st.title('Smart فْلاّح 🌱👩🏻‍🌾')
186
  st.markdown('''
187
  ## About
188
- Smart فلاح , an innovative AI-based platform developed in Morocco, uses machine learning, image processing, and harnesses the power of Large Language Models to offer real-time crop insights to farmers in a customized and friendly way. This solution is tailored to the unique agricultural landscape and challenges of Morocco or Africa.
189
 
190
- 💡 Note: No API key required!
 
191
  ''')
192
  add_vertical_space(5)
193
  st.write('Made with ❤️ by [llama-crew](https://huggingface.co/smart-fellah)')
@@ -203,8 +205,8 @@ def main():
203
  # sidebar_bg('bg.jpg')
204
  # Layout of input/response containers
205
  input_container = st.container()
206
- selected_region = st.selectbox("Choose a region:", list(soil_types.keys()))
207
- submit_question = st.button("Send")
208
 
209
  if st.button("Clear Chat"):
210
  st.session_state['past'] = []
@@ -254,7 +256,7 @@ def main():
254
  {"link":"https://www.agrimaroc.ma/actualite-agricole/", "title":"Morocco - AgriMaroc"},
255
  {"link":"https://perspective.usherbrooke.ca/bilan/servlet/BMTendanceStatPays?langue=fr&codePays=MAR&codeTheme=5&codeStat=AG.LND.AGRI.ZS", "title":"Perspective Monde"},
256
  ]
257
- st.markdown("**Google Search Results:**")
258
  for j, link in enumerate(retrieved_links):
259
  st.markdown(f'<span style="display: inline-block; vertical-align: middle;">'
260
  f'<img src="https://companieslogo.com/img/orig/GOOG-0ed88f7c.png" width="15" style="margin-right: 5px;" alt="Logo">'
@@ -265,7 +267,7 @@ def main():
265
  # st.markdown(f"{j + 1}. [{link['title']}]({link['link']})")
266
 
267
  if retrieved_links:
268
- st.markdown("**Google Search Results:**")
269
  for j, link in enumerate(retrieved_links):
270
  # Display Google logo
271
  st.markdown(f'<span style="display: inline-block; vertical-align: middle;">'
 
182
  def main():
183
  # Sidebar contents
184
  with st.sidebar:
185
+ st.markdown('''<img src="https://huggingface.co/spaces/smart-fellah/Smart-fellah/resolve/main/static/banner-fellah.png" alt="Banner Image" style="width: 100%;">''',unsafe_allow_html=True)
186
  st.title('Smart فْلاّح 🌱👩🏻‍🌾')
187
  st.markdown('''
188
  ## About
189
+ Smart فلاح , an innovative AI-based platform developed in 🇲🇦, uses machine learning, and harnesses the power of Large Language Models to offer real-time crop insights to farmers in a customized and friendly way. This solution is tailored to the unique agricultural landscape and challenges of Morocco or Africa.
190
 
191
+
192
+ *🔒 We respect your privacy. No personal data submitted through this website is stored or used for any other activities beyond the purpose for which it was collected.*
193
  ''')
194
  add_vertical_space(5)
195
  st.write('Made with ❤️ by [llama-crew](https://huggingface.co/smart-fellah)')
 
205
  # sidebar_bg('bg.jpg')
206
  # Layout of input/response containers
207
  input_container = st.container()
208
+ selected_region = st.selectbox("🌎 Choose a region:", list(soil_types.keys()))
209
+ submit_question = st.button("▶️ Send")
210
 
211
  if st.button("Clear Chat"):
212
  st.session_state['past'] = []
 
256
  {"link":"https://www.agrimaroc.ma/actualite-agricole/", "title":"Morocco - AgriMaroc"},
257
  {"link":"https://perspective.usherbrooke.ca/bilan/servlet/BMTendanceStatPays?langue=fr&codePays=MAR&codeTheme=5&codeStat=AG.LND.AGRI.ZS", "title":"Perspective Monde"},
258
  ]
259
+ st.markdown("**🔎 Google Search Results:**")
260
  for j, link in enumerate(retrieved_links):
261
  st.markdown(f'<span style="display: inline-block; vertical-align: middle;">'
262
  f'<img src="https://companieslogo.com/img/orig/GOOG-0ed88f7c.png" width="15" style="margin-right: 5px;" alt="Logo">'
 
267
  # st.markdown(f"{j + 1}. [{link['title']}]({link['link']})")
268
 
269
  if retrieved_links:
270
+ st.markdown("**🔎 Google Search Results:**")
271
  for j, link in enumerate(retrieved_links):
272
  # Display Google logo
273
  st.markdown(f'<span style="display: inline-block; vertical-align: middle;">'