Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ from transformers import pipeline
|
|
3 |
import re
|
4 |
import time
|
5 |
import requests
|
|
|
6 |
|
7 |
|
8 |
HF_SPACES_API_KEY = st.secrets["HF_token"]
|
@@ -27,9 +28,12 @@ def query_evidence(payload):
|
|
27 |
#-----------------------------------------------------------
|
28 |
st.title('Welcome to :blue[FACTIFY - 5WQA] ')
|
29 |
st.header('5W Aspect-based Fact Verification through Question Answering :blue[Web Demo]')
|
|
|
|
|
|
|
30 |
st.subheader('Here are a few steps to begin exploring and interacting with this demo.')
|
31 |
st.caption('First you need to input your claim.')
|
32 |
-
st.caption('Then you need to input your evidence
|
33 |
st.caption('Upon completing these two steps, kindly wait for a minute to receive the results.')
|
34 |
|
35 |
st.caption('Start by inputting the following instance of a claim and corresponding evidence into the designated text fields.')
|
|
|
3 |
import re
|
4 |
import time
|
5 |
import requests
|
6 |
+
from PIL import Image
|
7 |
|
8 |
|
9 |
HF_SPACES_API_KEY = st.secrets["HF_token"]
|
|
|
28 |
#-----------------------------------------------------------
|
29 |
st.title('Welcome to :blue[FACTIFY - 5WQA] ')
|
30 |
st.header('5W Aspect-based Fact Verification through Question Answering :blue[Web Demo]')
|
31 |
+
image = Image.open('5W QA Illustration.jpg')
|
32 |
+
st.image(image, caption='5W QA Generation Pipeline')
|
33 |
+
|
34 |
st.subheader('Here are a few steps to begin exploring and interacting with this demo.')
|
35 |
st.caption('First you need to input your claim.')
|
36 |
+
st.caption('Then you need to input your evidence.')
|
37 |
st.caption('Upon completing these two steps, kindly wait for a minute to receive the results.')
|
38 |
|
39 |
st.caption('Start by inputting the following instance of a claim and corresponding evidence into the designated text fields.')
|