Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -53,7 +53,7 @@ if all([
|
|
53 |
st.session_state.gpt_detector_probability = [1, 0]
|
54 |
|
55 |
st.session_state.untrue_detector_result = ''
|
56 |
-
st.session_state.untrue_detector_probability = [
|
57 |
|
58 |
st.session_state.bert_result = [{'label': '', 'score': 1}]
|
59 |
|
@@ -113,11 +113,11 @@ if st.session_state.agree:
|
|
113 |
|
114 |
if st.session_state.untrue_detector_result == 1:
|
115 |
st.warning(content['untrue_getect_yes'][st.session_state.lang] +
|
116 |
-
str(round(st.session_state.untrue_detector_probability[
|
117 |
content['untrue_yes_proba'][st.session_state.lang], icon="⚠️")
|
118 |
else:
|
119 |
st.success(content['untrue_getect_no'][st.session_state.lang] +
|
120 |
-
str(round(st.session_state.untrue_detector_probability[
|
121 |
content['untrue_no_proba'][st.session_state.lang], icon="✅")
|
122 |
|
123 |
if st.session_state.bert_result[0]['label'] == 'LABEL_1':
|
|
|
53 |
st.session_state.gpt_detector_probability = [1, 0]
|
54 |
|
55 |
st.session_state.untrue_detector_result = ''
|
56 |
+
st.session_state.untrue_detector_probability = [1, 0]
|
57 |
|
58 |
st.session_state.bert_result = [{'label': '', 'score': 1}]
|
59 |
|
|
|
113 |
|
114 |
if st.session_state.untrue_detector_result == 1:
|
115 |
st.warning(content['untrue_getect_yes'][st.session_state.lang] +
|
116 |
+
str(round(st.session_state.untrue_detector_probability[1] * 100, 2)) +
|
117 |
content['untrue_yes_proba'][st.session_state.lang], icon="⚠️")
|
118 |
else:
|
119 |
st.success(content['untrue_getect_no'][st.session_state.lang] +
|
120 |
+
str(round(st.session_state.untrue_detector_probability[0] * 100, 2)) +
|
121 |
content['untrue_no_proba'][st.session_state.lang], icon="✅")
|
122 |
|
123 |
if st.session_state.bert_result[0]['label'] == 'LABEL_1':
|