Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ import gradio as gr
|
|
| 7 |
import gradio_iframe
|
| 8 |
import spaces
|
| 9 |
from bm25s.hf import BM25HF
|
| 10 |
-
from citations import inseq_citation, lxt_citation, mirage_citation, pecore_citation
|
| 11 |
from examples import examples
|
| 12 |
from lxt.functional import add2, mul2, softmax
|
| 13 |
from lxt.models.llama import LlamaForCausalLM, attnlrp
|
|
@@ -314,6 +314,11 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 314 |
interactive=False,
|
| 315 |
label="Inseq (Sarti et al., 2023)",
|
| 316 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 317 |
gr.Markdown(
|
| 318 |
"The AttnLRP attribution method used in this demo via the LXT library can be cited with:"
|
| 319 |
)
|
|
|
|
| 7 |
import gradio_iframe
|
| 8 |
import spaces
|
| 9 |
from bm25s.hf import BM25HF
|
| 10 |
+
from citations import inseq_citation, inseq_xai_citation, lxt_citation, mirage_citation, pecore_citation
|
| 11 |
from examples import examples
|
| 12 |
from lxt.functional import add2, mul2, softmax
|
| 13 |
from lxt.models.llama import LlamaForCausalLM, attnlrp
|
|
|
|
| 314 |
interactive=False,
|
| 315 |
label="Inseq (Sarti et al., 2023)",
|
| 316 |
)
|
| 317 |
+
gr.Code(
|
| 318 |
+
inseq_xai_citation,
|
| 319 |
+
interactive=False,
|
| 320 |
+
label="Inseq v0.6 (Sarti et al., 2024)"
|
| 321 |
+
)
|
| 322 |
gr.Markdown(
|
| 323 |
"The AttnLRP attribution method used in this demo via the LXT library can be cited with:"
|
| 324 |
)
|