Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -36,6 +36,7 @@ group_dict = {
|
|
36 |
28: 'Small-scale farmers and subsistence agriculture',
|
37 |
29: 'Migrants and displaced populations'}
|
38 |
|
|
|
39 |
def predict(text):
|
40 |
preds = model([text])[0].item()
|
41 |
return group_dict[preds]
|
@@ -54,7 +55,7 @@ gradio_ui = gr.Interface(
|
|
54 |
examples=[
|
55 |
["To promote gender equality and empower men and boys as agents of change in climate adaptation efforts, we aim to engage 300,000 men and boys in gender-responsive climate change adaptation initiatives by 2030, focusing on capacity building, leadership development, and community engagement."],
|
56 |
["To preserve the traditional knowledge and resources of indigenous peoples in the face of climate change, we commit to protecting and restoring 2 million hectares of indigenous peoples' traditional lands by 2030, focusing on sustainable land management practices, ecosystem restoration, and the conservation of biodiversity"],
|
57 |
-
["Through the Paris Agreement, Parties to the United Nations Framework Convention on Climate Change (UNFCCC) have agreed to limit the increase in the global average temperature to well below 2°C above pre-
|
58 |
],
|
59 |
)
|
60 |
|
|
|
36 |
28: 'Small-scale farmers and subsistence agriculture',
|
37 |
29: 'Migrants and displaced populations'}
|
38 |
|
39 |
+
|
40 |
def predict(text):
|
41 |
preds = model([text])[0].item()
|
42 |
return group_dict[preds]
|
|
|
55 |
examples=[
|
56 |
["To promote gender equality and empower men and boys as agents of change in climate adaptation efforts, we aim to engage 300,000 men and boys in gender-responsive climate change adaptation initiatives by 2030, focusing on capacity building, leadership development, and community engagement."],
|
57 |
["To preserve the traditional knowledge and resources of indigenous peoples in the face of climate change, we commit to protecting and restoring 2 million hectares of indigenous peoples' traditional lands by 2030, focusing on sustainable land management practices, ecosystem restoration, and the conservation of biodiversity"],
|
58 |
+
#["Through the Paris Agreement, Parties to the United Nations Framework Convention on Climate Change (UNFCCC) have agreed to limit the increase in the global average temperature to well below 2°C above pre-industrial levels, and pursue efforts to limit the temperature increase to 1.5°C above pre-industrial levels."]
|
59 |
],
|
60 |
)
|
61 |
|