Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create assets dir #19

Merged
merged 10 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading