Spaces:
Sleeping
Sleeping
Fix initial condition
Browse files
main.py
CHANGED
|
@@ -44,9 +44,11 @@ def switch_lang(lang):
|
|
| 44 |
if 'lang' not in st.session_state:
|
| 45 |
st.session_state.lang = 'bg'
|
| 46 |
|
| 47 |
-
if
|
| 48 |
-
|
| 49 |
-
|
|
|
|
|
|
|
| 50 |
st.session_state.gpt_detector_result = ''
|
| 51 |
st.session_state.gpt_detector_probability = [1, 0]
|
| 52 |
|
|
|
|
| 44 |
if 'lang' not in st.session_state:
|
| 45 |
st.session_state.lang = 'bg'
|
| 46 |
|
| 47 |
+
if all([
|
| 48 |
+
'gpt_detector_result' not in st.session_state,
|
| 49 |
+
'untrue_detector_result' not in st.session_state,
|
| 50 |
+
'bert_result' not in st.session_state
|
| 51 |
+
])
|
| 52 |
st.session_state.gpt_detector_result = ''
|
| 53 |
st.session_state.gpt_detector_probability = [1, 0]
|
| 54 |
|