Spaces:
GIZ
/
Running on CPU Upgrade

leavoigt commited on
Commit
a983dfd
·
1 Parent(s): b700436

translation

Browse files
Files changed (1) hide show
  1. utils/whisp_api.py +15 -15
utils/whisp_api.py CHANGED
@@ -102,27 +102,27 @@ def format_whisp_statistics(df):
102
  output = f"""🌍 **Geographic Analysis Results**
103
 
104
  📍 **Location Details**
105
- - **Country**: {country}
106
- - **Administrative Region**: {admin_level}
107
- - **Total Area**: {area_text}
108
 
109
  ⚠️ **Deforestation Risk Assessment**
110
- *Risk levels are based on historical patterns, environmental factors, and land use data*
111
 
112
- - **Overall Risk**: {format_risk(risk_level)}
113
- - **Permanent Crops**: {format_risk(risk_pcrop)}
114
- *Coffee, cocoa, palm oil, fruit trees*
115
- - **Annual Crops**: {format_risk(risk_acrop)}
116
- *Soy, corn, rice, vegetables*
117
- - **Timber Extraction**: {format_risk(risk_timber)}
118
- *Logging and wood harvesting*
119
 
120
- 🌳 **EUDR Compliance Analysis**
121
- *Based on Tropical Moist Forest satellite monitoring*
122
 
123
- **Recent Deforestation (2020-Present):** {deforestation_formatted}
124
 
125
- **EUDR Compliance Status:** {compliance_status}
126
 
127
  ---
128
  💡 **Key Insights**
 
102
  output = f"""🌍 **Geographic Analysis Results**
103
 
104
  📍 **Location Details**
105
+ - **Country**: {country} \n\n
106
+ - **Administrative Region**: {admin_level} \n\n
107
+ - **Total Area**: {area_text} \n\n
108
 
109
  ⚠️ **Deforestation Risk Assessment**
110
+ *Risk levels are based on historical patterns, environmental factors, and land use data* \n\n
111
 
112
+ - **Overall Risk**: {format_risk(risk_level)} \n\n
113
+ - **Permanent Crops** : {format_risk(risk_pcrop)} \n\n
114
+ *Coffee, cocoa, palm oil, fruit trees* \n\n
115
+ - **Annual Crops**: {format_risk(risk_acrop)} \n\n
116
+ *Soy, corn, rice, vegetables* \n\n
117
+ - **Timber Extraction**: {format_risk(risk_timber)} \n\n
118
+ *Logging and wood harvesting* \n\n
119
 
120
+ 🌳 **EUDR Compliance Analysis** \n\n
121
+ *Based on Tropical Moist Forest satellite monitoring* \n\n
122
 
123
+ **Recent Deforestation (2020-Present):** {deforestation_formatted} \n\n
124
 
125
+ **EUDR Compliance Status:** {compliance_status} \n\n
126
 
127
  ---
128
  💡 **Key Insights**