maghwa commited on
Commit
3d024ed
1 Parent(s): 921f093

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -129,7 +129,7 @@ def get_search_query(response):
129
  # Function to generate a response from the chatbot
130
  def generate_response(user_input, region, date):
131
 
132
- city = "Fez"
133
  weather_info = get_weather_data(city)
134
  if weather_info:
135
  print(weather_info)
@@ -137,7 +137,7 @@ def generate_response(user_input, region, date):
137
  user_input_translated = str(translate(user_input, "Moroccan Arabic", "English"))
138
  name = 'Fellah'
139
  date = date
140
- location = 'Fes, Morocco'
141
  soil_type = soil_types[region] # Use the selected region's soil type
142
  humidity = weather_info["humidity"]
143
  weather = weather_info["weather_condition"]
 
129
  # Function to generate a response from the chatbot
130
  def generate_response(user_input, region, date):
131
 
132
+ city = "Marrakesh"
133
  weather_info = get_weather_data(city)
134
  if weather_info:
135
  print(weather_info)
 
137
  user_input_translated = str(translate(user_input, "Moroccan Arabic", "English"))
138
  name = 'Fellah'
139
  date = date
140
+ location = region
141
  soil_type = soil_types[region] # Use the selected region's soil type
142
  humidity = weather_info["humidity"]
143
  weather = weather_info["weather_condition"]