Update app.py
Browse files
app.py
CHANGED
@@ -71,8 +71,17 @@ def proc():
|
|
71 |
|
72 |
# st.text_area('enter text', on_change=proc, key='text_key')
|
73 |
|
74 |
-
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
|
77 |
# form_claim = st.form(key='my_claim')
|
78 |
# form_claim.text_input(label='Enter your claim')
|
@@ -80,8 +89,17 @@ claim_text=st.text_area("Enter your claim:", on_change=proc, key='text_key')
|
|
80 |
|
81 |
|
82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
|
84 |
-
evidence_text
|
|
|
|
|
|
|
85 |
|
86 |
# form_evidence = st.form(key='my_evidence')
|
87 |
# form_evidence.text_input(label='Enter your evidence')
|
@@ -89,7 +107,7 @@ evidence_text=st.text_area("Enter your evidence:")
|
|
89 |
|
90 |
if evidence_text:
|
91 |
st.caption(':green[Kindly hold on for a few minutes while the QA pairs are being generated]')
|
92 |
-
st.caption(':blue[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.]')
|
93 |
|
94 |
|
95 |
import pandas as pd
|
|
|
71 |
|
72 |
# st.text_area('enter text', on_change=proc, key='text_key')
|
73 |
|
74 |
+
claim_text = st.text_input(
|
75 |
+
"Enter your claim π",
|
76 |
+
label_visibility=st.session_state.visibility,
|
77 |
+
disabled=st.session_state.disabled,
|
78 |
+
placeholder=st.session_state.placeholder,
|
79 |
+
)
|
80 |
+
|
81 |
+
if claim_text:
|
82 |
+
st.write("You entered: ", text_input)
|
83 |
+
|
84 |
+
# claim_text=st.text_area("Enter your claim:", on_change=proc, key='text_key')
|
85 |
|
86 |
# form_claim = st.form(key='my_claim')
|
87 |
# form_claim.text_input(label='Enter your claim')
|
|
|
89 |
|
90 |
|
91 |
|
92 |
+
evidence_text = st.text_input(
|
93 |
+
"Enter your evidence π",
|
94 |
+
label_visibility=st.session_state.visibility,
|
95 |
+
disabled=st.session_state.disabled,
|
96 |
+
placeholder=st.session_state.placeholder,
|
97 |
+
)
|
98 |
|
99 |
+
if evidence_text:
|
100 |
+
st.write("You entered: ", text_input)
|
101 |
+
|
102 |
+
# evidence_text=st.text_area("Enter your evidence:")
|
103 |
|
104 |
# form_evidence = st.form(key='my_evidence')
|
105 |
# form_evidence.text_input(label='Enter your evidence')
|
|
|
107 |
|
108 |
if evidence_text:
|
109 |
st.caption(':green[Kindly hold on for a few minutes while the QA pairs are being generated]')
|
110 |
+
#st.caption(':blue[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.]')
|
111 |
|
112 |
|
113 |
import pandas as pd
|