Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 = "
|
| 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 =
|
| 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"]
|