Jin Zhu commited on
Commit
8a1e1f8
·
1 Parent(s): 14dc59f

Update app.py

Browse files
Files changed (1) hide show
  1. src/app.py +6 -3
src/app.py CHANGED
@@ -27,6 +27,7 @@ if os.environ.get('SPACE_ID'):
27
  # 设置可写的配置目录
28
  streamlit_dir = Path('/tmp/.streamlit')
29
  streamlit_dir.mkdir(exist_ok=True, parents=True)
 
30
 
31
 
32
  import streamlit as st
@@ -145,7 +146,7 @@ except Exception as e:
145
  _, col0, _ = st.columns((1, 5, 1))
146
  with col0:
147
  st.markdown(
148
- "<h1 style='text-align: center; color: #0072C3;'>AdaDetectGPT: Adaptive LLM-generated Text Detection</h1>",
149
  unsafe_allow_html=True,
150
  )
151
 
@@ -188,12 +189,14 @@ with col2:
188
 
189
  pvalue_ph = st.empty()
190
  pvalue_ph.text_input(
191
- label="p-value",
192
  value="",
193
  disabled=True,
194
- help="p-value will appear here after clicking Detect.",
195
  )
196
 
 
 
197
  # -----------------
198
  # Options Section
199
  # -----------------
 
27
  # 设置可写的配置目录
28
  streamlit_dir = Path('/tmp/.streamlit')
29
  streamlit_dir.mkdir(exist_ok=True, parents=True)
30
+ os.environ['STREAMLIT_HOME'] = '/tmp/.streamlit'
31
 
32
 
33
  import streamlit as st
 
146
  _, col0, _ = st.columns((1, 5, 1))
147
  with col0:
148
  st.markdown(
149
+ "<h1 style='text-align: center; color: #0072C3;'>Adaptive LLM's Texts Detection</h1>",
150
  unsafe_allow_html=True,
151
  )
152
 
 
189
 
190
  pvalue_ph = st.empty()
191
  pvalue_ph.text_input(
192
+ label="P-value",
193
  value="",
194
  disabled=True,
195
+ help="P-value will appear here after clicking Detect.",
196
  )
197
 
198
+ st.markdown("---")
199
+
200
  # -----------------
201
  # Options Section
202
  # -----------------