Skip to content

Commit

Permalink
Initialize v0.0.3 (#24)
Browse files Browse the repository at this point in the history
* map to original doc

* optimize speed, debug evidence

* debug to make sure restore the text

* minor bug for demo

* minor

* udpate to 4o

* Update result.html

* Update .gitignore

* update web inference

* update the file

* better output format with dataclass

* adaptation to new data structure

* Update LibrAI_fc.html

---------

Co-authored-by: Xudong Han <[email protected]>
  • Loading branch information
haonan-li and HanXudong authored May 29, 2024
1 parent 693d006 commit a48dfd3
Show file tree
Hide file tree
Showing 33 changed files with 1,852 additions and 340 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ dmypy.json

# Cython debug symbols
cython_debug/
debug.ipynb

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
Expand All @@ -169,6 +170,8 @@ log/
# Mac
*.DS_Store

# lark key and utils
factcheck/utils/lark.py
# openai_key_file
factcheck/utils/openai_key.py
factcheck/config/secret_dict.py
Expand All @@ -181,3 +184,5 @@ faiss.index

# test data
demo_data/test_api_config.yaml
assets/response.json
api_config.yaml
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exclude: |
factcheck/utils/prompt/|
demo_data/|
templates/|
static/|
assets/|
fig/
)
repos:
Expand Down
Binary file added assets/XH.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions assets/css/app.min.css

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions assets/css/factcheck.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
.controversial-span {
padding: 2px;
text-decoration: underline wavy rgba(255, 197, 61, 0.996);
border-bottom: 2px solid rgba(255, 197, 61, 0.996);
cursor: pointer;
}

.controversial-span:hover {
padding: 2px;
text-decoration: underline wavy rgba(255, 197, 61, 0.996);
border-bottom: 2px solid rgba(255, 197, 61, 0.996);
background: rgb(217, 217, 217);
cursor: pointer;
}

.refutes-span {
padding: 2px;
text-decoration: underline wavy rgba(209, 2, 0, 0.533);
border-bottom: 2px solid rgba(209, 2, 0, 0.533);
cursor: pointer;
}

.refutes-span:hover {
padding: 2px;
text-decoration: underline wavy rgba(209, 2, 0, 0.533);
border-bottom: 2px solid rgba(209, 2, 0, 0.533);
background: rgb(217, 217, 217);
cursor: pointer;
}

.support-span {
padding: 2px;
text-decoration: none;
border-bottom: 2px solid rgba(255, 197, 61, 0);
cursor: pointer;
}

.support-span:hover {
padding: 2px;
text-decoration: none;
border-bottom: 2px solid rgba(255, 197, 61, 0);
background: rgb(217, 217, 217);
cursor: pointer;
}
Binary file added assets/css/images/cover.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/css/images/pattern.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions assets/css/vendor.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit a48dfd3

Please sign in to comment.