Skip to content

Commit

Permalink
create assets dir (#19)
Browse files Browse the repository at this point in the history
relocate assets
  • Loading branch information
haonan-li authored Apr 22, 2024
1 parent 8a31bf8 commit b48db77
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export OPENAI_API_KEY=... # this is required in all tasks
Alternatively, you configure API keys via a YAML file, see [user guide](docs/user_guide.md) for more details.

A sample test case:
<p align="center"><img src="./fig/cmd_example.gif"/></p>
<p align="center"><img src="./assets/cmd_example.gif"/></p>

## Usage

Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions docs/user_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ print(results)
python webapp.py --api_config demo_data/api_config.yaml
```

<p align="center"><img src="../fig/web_input.png"/></p>
<p align="center"><img src="../fig/web_result.png"/></p>
<p align="center"><img src="../assets/web_input.png"/></p>
<p align="center"><img src="../assets/web_result.png"/></p>

## Advanced Features

Expand Down
Binary file removed static/librai_librai.png
Binary file not shown.
4 changes: 2 additions & 2 deletions templates/input.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@
<body>
<header>
<a href="https://www.librai.tech">
<!-- <img alt="LibrAI Logo" src="https://aip.librai.tech/static/logo_with_text.9bc473c7.png" alt="LibrAI Logo"
<!-- <img alt="LibrAI Logo" src="https://aip.librai.tech/assets/logo_with_text.9bc473c7.png" alt="LibrAI Logo"
width="200px"> -->
<img alt="LibrAI Logo" src="static/librai_librai.png" alt="LibrAI Logo" width="200px">
<img alt="LibrAI Logo" src="assets/librai_librai.png" alt="LibrAI Logo" width="200px">
</a>
</header>

Expand Down
4 changes: 2 additions & 2 deletions templates/result.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@
<body>
<header>
<a href="https://www.librai.tech">
<!-- <img alt="LibrAI Logo" src="https://aip.librai.tech/static/logo_with_text.9bc473c7.png" alt="LibrAI Logo"
<!-- <img alt="LibrAI Logo" src="https://aip.librai.tech/assets/logo_with_text.9bc473c7.png" alt="LibrAI Logo"
width="200px"> -->
<img alt="LibrAI Logo" src="static/librai_librai.png" alt="LibrAI Logo" width="130px">
<img alt="LibrAI Logo" src="assets/librai_librai.png" alt="LibrAI Logo" width="130px">
</a>
</header>
<h1 class="overview">Results </h1>
Expand Down
2 changes: 1 addition & 1 deletion webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from factcheck.utils.utils import load_yaml
from factcheck import FactCheck

app = Flask(__name__)
app = Flask(__name__, static_folder="assets")


@app.route("/", methods=["GET", "POST"])
Expand Down

0 comments on commit b48db77

Please sign in to comment.