Spaces:
Running
Running
Allen Park
commited on
Commit
·
8694806
1
Parent(s):
2632b0b
add new HEADER and put old html code in OLD_HEADER
Browse files
app.py
CHANGED
@@ -81,8 +81,8 @@ EXAMPLES = [
|
|
81 |
with open('logo.svg', 'r') as file:
|
82 |
logo_svg = file.read()
|
83 |
|
84 |
-
|
85 |
-
<table bgcolor="#1E2432" cellspacing="0" cellpadding="0" width="
|
86 |
<tr>
|
87 |
<td style="text-align: center;">
|
88 |
<a href="https://www.patronus.ai/blog/lynx-state-of-the-art-open-source-hallucination-detection-model" style="display: flex; align-items: center;">
|
@@ -122,6 +122,31 @@ HEADER = f"""
|
|
122 |
</td>
|
123 |
</tr>
|
124 |
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
|
126 |
**Patronus Lynx** is a state-of-the-art open-source model for hallucination detection.
|
127 |
|
|
|
81 |
with open('logo.svg', 'r') as file:
|
82 |
logo_svg = file.read()
|
83 |
|
84 |
+
OLDER_HEADER = f"""
|
85 |
+
<table bgcolor="#1E2432" cellspacing="0" cellpadding="0" width="100%">
|
86 |
<tr>
|
87 |
<td style="text-align: center;">
|
88 |
<a href="https://www.patronus.ai/blog/lynx-state-of-the-art-open-source-hallucination-detection-model" style="display: flex; align-items: center;">
|
|
|
122 |
</td>
|
123 |
</tr>
|
124 |
</table>
|
125 |
+
"""
|
126 |
+
|
127 |
+
HEADER = f"""
|
128 |
+
<div style="width: 100%; display: flex; flex-direction: column; gap: 8px; position: relative">
|
129 |
+
<div style="display: flex; justify-content: space-between">
|
130 |
+
<a href="https://www.patronus.ai">
|
131 |
+
<img src="https://postimage.me/images/2024/07/31/FullLogo_ColorDefault.png" width="125">
|
132 |
+
</a>
|
133 |
+
<div style="display: flex; gap: 4px;">
|
134 |
+
<a href="https://huggingface.co/PatronusAI/Llama-3-Patronus-Lynx-8B-Instruct">
|
135 |
+
<img src="https://img.shields.io/badge/%F0%9F%A4%97%20Model_Card-Huggingface-orange" height="20">
|
136 |
+
</a>
|
137 |
+
<a href="https://github.com/patronus-ai/Lynx-hallucination-detection">
|
138 |
+
<img src="https://img.shields.io/badge/GitHub-Lynx--hallucination--detection-indigo" height="20">
|
139 |
+
</a>
|
140 |
+
<a href="https://arxiv.org/abs/2407.08488">
|
141 |
+
<img src="https://img.shields.io/badge/arXiv-2407.08488-b31b1b.svg" height="20">
|
142 |
+
</a>
|
143 |
+
</div>
|
144 |
+
</div>
|
145 |
+
<div>
|
146 |
+
<h1>Lynx 8B v1.1 & Lynx 70B</h1>
|
147 |
+
<h1>Patronus Lynx Demo</h1>
|
148 |
+
</div>
|
149 |
+
</div>
|
150 |
|
151 |
**Patronus Lynx** is a state-of-the-art open-source model for hallucination detection.
|
152 |
|