Spaces:
Runtime error
Runtime error
Commit
·
caa9da7
1
Parent(s):
35d051d
select input
Browse files
app.py
CHANGED
@@ -167,10 +167,17 @@ st.markdown("For this project, I fine-tune ClimateBERT (4) on the text entailmen
|
|
167 |
|
168 |
st.markdown("## Try it out!")
|
169 |
txt_class = pipeline('text-classification', model='amandakonet/climatebert-fact-checking', use_auth_token = os.environ["hf_token"])
|
170 |
-
option = st.selectbox('Select a climate claim to test', df['claim'].unique())
|
171 |
|
172 |
-
|
|
|
|
|
173 |
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
|
175 |
st.write(type(option))
|
176 |
|
|
|
167 |
|
168 |
st.markdown("## Try it out!")
|
169 |
txt_class = pipeline('text-classification', model='amandakonet/climatebert-fact-checking', use_auth_token = os.environ["hf_token"])
|
|
|
170 |
|
171 |
+
# select climate claim
|
172 |
+
option_claim = st.selectbox('Select a climate claim to test', ex_df['claim'].unique())
|
173 |
+
st.write('You selected:', option_claim)
|
174 |
|
175 |
+
# filter df to selected claim
|
176 |
+
filtered_df = ex_df[ex_df['claim'] == option_claim]
|
177 |
+
|
178 |
+
# select evidence
|
179 |
+
option_evidence = st.selectbox('Select a climate claim to test', filtered_df['evdience'].unique())
|
180 |
+
st.write('You selected:', option_evidence)
|
181 |
|
182 |
st.write(type(option))
|
183 |
|