Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
add avatar
Browse files- app.py +1 -1
- chatbot_icon_2.png +0 -0
- utils/__pycache__/whisp_api.cpython-310.pyc +0 -0
- utils/whisp_api.py +3 -3
app.py
CHANGED
@@ -201,7 +201,7 @@ with gr.Blocks(title="EUDR Bot", theme=theme, css=custom_css) as demo:
|
|
201 |
show_copy_button=True,
|
202 |
show_label=False,
|
203 |
layout="panel",
|
204 |
-
avatar_images=(None, "
|
205 |
height=500
|
206 |
)
|
207 |
|
|
|
201 |
show_copy_button=True,
|
202 |
show_label=False,
|
203 |
layout="panel",
|
204 |
+
avatar_images=(None, "chatbot_icon_2.png"),
|
205 |
height=500
|
206 |
)
|
207 |
|
chatbot_icon_2.png
ADDED
![]() |
utils/__pycache__/whisp_api.cpython-310.pyc
CHANGED
Binary files a/utils/__pycache__/whisp_api.cpython-310.pyc and b/utils/__pycache__/whisp_api.cpython-310.pyc differ
|
|
utils/whisp_api.py
CHANGED
@@ -126,9 +126,9 @@ def format_whisp_statistics(df):
|
|
126 |
|
127 |
---
|
128 |
💡 **Key Insights**
|
129 |
-
\t **For Suppliers**: {compliance_status.split(' - ')[1] if ' - ' in compliance_status else 'Review compliance requirements carefully'} \n
|
130 |
-
\t **Risk Factors**: Focus on {', '.join([t.split('*')[1].strip('*') for t in [risk_pcrop, risk_acrop, risk_timber] if 'High' in format_risk(t)])} if any high-risk activities detected \n
|
131 |
-
\t **Next Steps**: {"Conduct additional due diligence if recent deforestation is detected" if "ATTENTION" in compliance_status else "Continue monitoring and maintain documentation"} \n
|
132 |
"""
|
133 |
return output
|
134 |
except Exception as e:
|
|
|
126 |
|
127 |
---
|
128 |
💡 **Key Insights**
|
129 |
+
\t **For Suppliers**: {compliance_status.split(' - ')[1] if ' - ' in compliance_status else 'Review compliance requirements carefully'} \n\n
|
130 |
+
\t **Risk Factors**: Focus on {', '.join([t.split('*')[1].strip('*') for t in [risk_pcrop, risk_acrop, risk_timber] if 'High' in format_risk(t)])} if any high-risk activities detected \n\n
|
131 |
+
\t **Next Steps**: {"Conduct additional due diligence if recent deforestation is detected" if "ATTENTION" in compliance_status else "Continue monitoring and maintain documentation"} \n\n
|
132 |
"""
|
133 |
return output
|
134 |
except Exception as e:
|