Spaces:
Running
Running
anakin87
commited on
Commit
·
36f33f9
1
Parent(s):
0236fc5
explain button
Browse files- Rock_fact_checker.py +9 -5
Rock_fact_checker.py
CHANGED
|
@@ -122,11 +122,15 @@ def main():
|
|
| 122 |
st.markdown(str_wiki_pages)
|
| 123 |
|
| 124 |
if max_key != "neutral":
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
)
|
| 128 |
-
|
| 129 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 130 |
|
| 131 |
|
| 132 |
main()
|
|
|
|
| 122 |
st.markdown(str_wiki_pages)
|
| 123 |
|
| 124 |
if max_key != "neutral":
|
| 125 |
+
|
| 126 |
+
st.markdown("#### Why ❓ *(experimental)*")
|
| 127 |
+
if st.button("Explain using a Large Language Model 🤖..."):
|
| 128 |
+
explanation = explain_using_llm(
|
| 129 |
+
statement=statement,
|
| 130 |
+
documents=docs,
|
| 131 |
+
entailment_or_contradiction=max_key,
|
| 132 |
+
)
|
| 133 |
+
st.markdown(explanation)
|
| 134 |
|
| 135 |
|
| 136 |
main()
|