Towhidul commited on
Commit
eeff5a7
·
1 Parent(s): 62e2909

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -7
app.py CHANGED
@@ -22,7 +22,7 @@ def query_evidence(payload):
22
  return response.json()
23
 
24
  #-----------------------------------------------------------
25
- st.title('Welcome to :blue[FACTIFY - 5WQA]: ')
26
  st.header('5W Aspect-based Fact Verification through Question Answering :blue[Web Demo]')
27
  st.subheader('Here are a few steps to begin exploring and interacting with this demo.')
28
  st.caption('First you need to input your claim and press :green[ctrl+enter].')
@@ -31,13 +31,22 @@ st.caption('Upon completing these two steps, kindly wait for a minute to receive
31
  st.caption(':red[At times, you may encounter null/none outputs, which could be a result of a delay in loading the models through the API. If you experience this problem, kindly try again after a few minutes.]')
32
 
33
  #-----------------------------------------------------------
34
- claim_text=st.text_area("Enter your claim:",'''
35
- Due to the consumers increasingly relying on online retailers, Amazon planned to hire over 99,000 workers in the warehouse and delivery sector during the Pandemic in the USA.
36
- ''')
37
 
38
- evidence_text=st.text_area("Enter your evidence:",'''
39
- Amazon announced on March 16 it would hire 100,000 new warehouse and delivery workers and raise wages $ 2 per hour through April in response to increased demand for its services because of the coronavirus pandemic .
40
- ''')
 
 
 
 
 
 
 
 
 
41
 
42
  import pandas as pd
43
  import numpy as np
 
22
  return response.json()
23
 
24
  #-----------------------------------------------------------
25
+ st.title('Welcome to :blue[FACTIFY - 5WQA] ')
26
  st.header('5W Aspect-based Fact Verification through Question Answering :blue[Web Demo]')
27
  st.subheader('Here are a few steps to begin exploring and interacting with this demo.')
28
  st.caption('First you need to input your claim and press :green[ctrl+enter].')
 
31
  st.caption(':red[At times, you may encounter null/none outputs, which could be a result of a delay in loading the models through the API. If you experience this problem, kindly try again after a few minutes.]')
32
 
33
  #-----------------------------------------------------------
34
+ # claim_text=st.text_area("Enter your claim:",'''
35
+ # Due to the consumers increasingly relying on online retailers, Amazon planned to hire over 99,000 workers in the warehouse and delivery sector during the Pandemic in the USA.
36
+ # ''')
37
 
38
+ # evidence_text=st.text_area("Enter your evidence:",'''
39
+ # Amazon announced on March 16 it would hire 100,000 new warehouse and delivery workers and raise wages $ 2 per hour through April in response to increased demand for its services because of the coronavirus pandemic .
40
+ # ''')
41
+
42
+
43
+ # import streamlit as st
44
+
45
+ claim_text = st.text_input('Enter your claim:')
46
+ st.write('The claim is', claim_text)
47
+
48
+ evidence_text = st.text_input('Enter your evidence:')
49
+ st.write('The claim is', evidence_text)
50
 
51
  import pandas as pd
52
  import numpy as np