Update app.py
Browse files
app.py
CHANGED
|
@@ -28,35 +28,32 @@ st.subheader('Here are a few steps to begin exploring and interacting with this
|
|
| 28 |
st.caption('First you need to input your claim and press :green[ctrl+enter].')
|
| 29 |
st.caption('Then you need to input your evidence and press :green[ctrl+enter].')
|
| 30 |
st.caption('Upon completing these two steps, kindly wait for a minute to receive the results.')
|
| 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 |
st.caption('Start by inputting the following instance of a claim and corresponding evidence into the designated text fields.')
|
| 34 |
|
| 35 |
-
st.caption('
|
| 36 |
-
st.caption('''Amazon announced on March 16 it would hire 100,000 new warehouse and delivery workers and
|
| 37 |
raise wages $ 2 per hour through April in response to increased demand for its services because of the coronavirus pandemic .''')
|
| 38 |
|
| 39 |
-
st.caption('
|
| 40 |
-
st.caption('''Due to the consumers increasingly relying on online retailers,
|
| 41 |
Amazon planned to hire over 99,000 workers in the warehouse and delivery sector during the Pandemic in the USA.''')
|
| 42 |
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
-
|
| 45 |
-
#
|
| 46 |
-
#
|
| 47 |
-
# ''')
|
| 48 |
|
| 49 |
-
# evidence_text=st.text_area("Enter your evidence:",'''
|
| 50 |
-
# 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 .
|
| 51 |
-
# ''')
|
| 52 |
|
|
|
|
|
|
|
| 53 |
|
| 54 |
-
|
| 55 |
|
| 56 |
-
|
| 57 |
-
# st.write('The claim is', claim_text)
|
| 58 |
|
| 59 |
-
evidence_text = st.text_input('Enter your evidence:')
|
| 60 |
|
| 61 |
import pandas as pd
|
| 62 |
import numpy as np
|
|
|
|
| 28 |
st.caption('First you need to input your claim and press :green[ctrl+enter].')
|
| 29 |
st.caption('Then you need to input your evidence and press :green[ctrl+enter].')
|
| 30 |
st.caption('Upon completing these two steps, kindly wait for a minute to receive the results.')
|
|
|
|
| 31 |
|
| 32 |
st.caption('Start by inputting the following instance of a claim and corresponding evidence into the designated text fields.')
|
| 33 |
|
| 34 |
+
st.caption('**Example 1**')
|
| 35 |
+
st.caption('''**Green[Claim:]** :point_right: Amazon announced on March 16 it would hire 100,000 new warehouse and delivery workers and
|
| 36 |
raise wages $ 2 per hour through April in response to increased demand for its services because of the coronavirus pandemic .''')
|
| 37 |
|
| 38 |
+
st.caption('''**Green[Evidence:]** :point_right: Due to the consumers increasingly relying on online retailers,
|
|
|
|
| 39 |
Amazon planned to hire over 99,000 workers in the warehouse and delivery sector during the Pandemic in the USA.''')
|
| 40 |
|
| 41 |
+
# st.caption('**:Green[Claim]** :point_down:')
|
| 42 |
+
# st.caption('''Amazon announced on March 16 it would hire 100,000 new warehouse and delivery workers and
|
| 43 |
+
# raise wages $ 2 per hour through April in response to increased demand for its services because of the coronavirus pandemic .''')
|
| 44 |
|
| 45 |
+
# st.caption('**:Green[Evidence]** :point_down:')
|
| 46 |
+
# st.caption('''Due to the consumers increasingly relying on online retailers,
|
| 47 |
+
# Amazon planned to hire over 99,000 workers in the warehouse and delivery sector during the Pandemic in the USA.''')
|
|
|
|
| 48 |
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
+
#-----------------------------------------------------------
|
| 51 |
+
claim_text=st.text_area("Enter your claim:")
|
| 52 |
|
| 53 |
+
evidence_text=st.text_area("Enter your evidence:")
|
| 54 |
|
| 55 |
+
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.]')
|
|
|
|
| 56 |
|
|
|
|
| 57 |
|
| 58 |
import pandas as pd
|
| 59 |
import numpy as np
|