Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,10 @@
|
|
2 |
import streamlit as st
|
3 |
from PIL import Image
|
4 |
import spacy
|
|
|
|
|
|
|
|
|
5 |
|
6 |
st.set_page_config(page_title="FACTOID: FACtual enTailment fOr hallucInation Detection", layout="wide")
|
7 |
st.title('Welcome to :blue[FACTOID] ')
|
@@ -9,6 +13,7 @@ st.title('Welcome to :blue[FACTOID] ')
|
|
9 |
st.header('FACTOID: FACtual enTailment fOr hallucInation Detection :blue[Web Demo]')
|
10 |
image = Image.open('image.png')
|
11 |
st.image(image, caption='Traditional Entailment vs Factual Entailment')
|
|
|
12 |
|
13 |
# List of sentences
|
14 |
sentence1 = [f"U.S. President Barack Obama declared that the U.S. will refrain from deploying troops in Ukraine."]
|
|
|
2 |
import streamlit as st
|
3 |
from PIL import Image
|
4 |
import spacy
|
5 |
+
import streamlit as st
|
6 |
+
from streamlit_pdf_viewer import pdf_viewer
|
7 |
+
|
8 |
+
|
9 |
|
10 |
st.set_page_config(page_title="FACTOID: FACtual enTailment fOr hallucInation Detection", layout="wide")
|
11 |
st.title('Welcome to :blue[FACTOID] ')
|
|
|
13 |
st.header('FACTOID: FACtual enTailment fOr hallucInation Detection :blue[Web Demo]')
|
14 |
image = Image.open('image.png')
|
15 |
st.image(image, caption='Traditional Entailment vs Factual Entailment')
|
16 |
+
pdf_viewer(input="fac.pdf", width=700)
|
17 |
|
18 |
# List of sentences
|
19 |
sentence1 = [f"U.S. President Barack Obama declared that the U.S. will refrain from deploying troops in Ukraine."]
|