rexarski commited on
Commit
d9ad0d8
1 Parent(s): 494bac0

[FIX, UPDATE] fix an issue where example label is not correct

Browse files

- simply the title markdown, add more info about the models
- fix a typo of Governance

Files changed (1) hide show
  1. app.py +13 -4
app.py CHANGED
@@ -89,7 +89,7 @@ data1 = {
89
  """Reconstructions have consistently shown that the rise in the instrumental temperature record of the past 150 years is not matched in earlier centuries, and the name "hockey stick graph" was coined for figures showing a long-term decline followed by an abrupt rise in temperatures.""",
90
  "Human impact on the environment or anthropogenic impact on the environment includes changes to biophysical environments and ecosystems, biodiversity, and natural resources caused directly or indirectly by humans, including global warming, environmental degradation (such as ocean acidification), mass extinction and biodiversity loss, ecological crisis, and ecological collapse.",
91
  ],
92
- "label": ["SUPPORTS", "SUPPORTS", "NOT_ENOUGH_INFO", "REFUTES"],
93
  }
94
 
95
  data2 = {
@@ -109,7 +109,7 @@ data2 = {
109
  "Risk Management a)",
110
  "Metrics and Targets b)",
111
  "Strategy c)",
112
- "Goverance b)",
113
  ],
114
  }
115
 
@@ -132,8 +132,17 @@ def get_pred_emoji(str1, str2, mode="factcheck"):
132
  df1 = pd.DataFrame(data1)
133
  df2 = pd.DataFrame(data2)
134
 
135
- st.markdown("# climate-plus demo")
136
- st.markdown("This is a minimal example of two models we trained for `climate-plus` project. See the [GitHub repo](https://github.com/rexarski/climate-plus) for more details.")
 
 
 
 
 
 
 
 
 
137
 
138
  st.markdown("## Factchecking")
139
 
 
89
  """Reconstructions have consistently shown that the rise in the instrumental temperature record of the past 150 years is not matched in earlier centuries, and the name "hockey stick graph" was coined for figures showing a long-term decline followed by an abrupt rise in temperatures.""",
90
  "Human impact on the environment or anthropogenic impact on the environment includes changes to biophysical environments and ecosystems, biodiversity, and natural resources caused directly or indirectly by humans, including global warming, environmental degradation (such as ocean acidification), mass extinction and biodiversity loss, ecological crisis, and ecological collapse.",
91
  ],
92
+ "label": ["SUPPORTS", "REFUTES", "NOT_ENOUGH_INFO", "REFUTES"],
93
  }
94
 
95
  data2 = {
 
109
  "Risk Management a)",
110
  "Metrics and Targets b)",
111
  "Strategy c)",
112
+ "Governance b)",
113
  ],
114
  }
115
 
 
132
  df1 = pd.DataFrame(data1)
133
  df2 = pd.DataFrame(data2)
134
 
135
+ st.markdown(
136
+ '''
137
+ # climate-plus demo
138
+ This is a minimal example of two models we trained for `climate-plus` project:
139
+
140
+ - [bert-base-climate-fever-fixed](https://huggingface.co/rexarski/bert-base-climate-fever-fixed)
141
+ - [distilroberta-tcfd-disclosure](https://huggingface.co/rexarski/distilroberta-tcfd-disclosure)
142
+
143
+ See the [GitHub repo](https://github.com/rexarski/climate-plus) for more details."
144
+ '''
145
+ )
146
 
147
  st.markdown("## Factchecking")
148