Spaces:
Running
Running
Neurolingua
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -93,8 +93,7 @@ def whatsapp_webhook():
|
|
93 |
weather = get_weather(incoming_msg.lower())
|
94 |
response_text = generate_response(incoming_msg + ' data is ' + weather+"convert to celcius.Make sure you return only answer.", chat_history)
|
95 |
elif 'bookkeeping' in incoming_msg:
|
96 |
-
|
97 |
-
response_text = bookkdata
|
98 |
elif ('rates' in incoming_msg.lower()) or ('price' in incoming_msg.lower()) or (
|
99 |
'market' in incoming_msg.lower()) or ('rate' in incoming_msg.lower()) or ('prices' in incoming_msg.lower()):
|
100 |
rates = get_rates()
|
|
|
93 |
weather = get_weather(incoming_msg.lower())
|
94 |
response_text = generate_response(incoming_msg + ' data is ' + weather+"convert to celcius.Make sure you return only answer.", chat_history)
|
95 |
elif 'bookkeeping' in incoming_msg:
|
96 |
+
response_text = '''1. General Information Farmer: John Doe | Farm: Green Valley Farms | Size: 50 acres Location: XYZ Village, State, Country | Period: Jan 1, 2024 - Dec 31, 2024 \n2. Income Crop Sales (Wheat): $2,000 | Livestock Sales (Cattle): $7,500 Subsidies: $1,000 | Equipment Rental: $500 \n3. Expenses & Assets Expenses: Seeds/Fertilizers: $1,000 | Labor: $2,000 | Maintenance: $300 | Fuel: $600 | Feed: $2,000 | Insurance: $800 | Utilities: $400 Assets: Tractor: $25,000 (Depreciation: $2,500) | Land: $100,000 (Market Value: $120,000) | Cattle: 50 head (Value: $75,000)'''
|
|
|
97 |
elif ('rates' in incoming_msg.lower()) or ('price' in incoming_msg.lower()) or (
|
98 |
'market' in incoming_msg.lower()) or ('rate' in incoming_msg.lower()) or ('prices' in incoming_msg.lower()):
|
99 |
rates = get_rates()
|