Spaces:
Running
Running
Jin Zhu commited on
Commit ·
14dc59f
1
Parent(s): 683eed3
Update app.py
Browse files36 unmodified lines3738394041424364 unmodified lines10810911011111211311430 unmodified lines14514614714814915015136 unmodified lines18818919019119219319419519619719819920020136 unmodified lines# Page Configuration# -----------------st.set_page_config(page_title="AdaDetectGPT: Adaptive LLM-generated Text Detection",page_icon="🔍",layout="wide")64 unmodified lines# Configuration# -----------------MODEL_CONFIG = {'from_pretrained': 'mamba413/AdaDetectGPT-Model' if os.environ.get('SPACE_ID') else './FineTune/ckpt/lr_0.0001_a_1','base_model': 'gemma-1b','cache_dir': '../cache','device': 'mps',30 unmodified lines_, col0, _ = st.columns((1, 5, 1))with col0:st.markdown("<h1 style='text-align: center; color: #0072C3;'>Adaptive LLM's Texts Detection</h1>",unsafe_allow_html=True,)36 unmodified linespvalue_ph = st.empty()pvalue_ph.text_input(label="P-value",value="",disabled=True,help="P-value will appear here after clicking Detect.",)st.markdown("---")# -----------------# Options Section# -----------------36 unmodified lines3738394041424364 unmodified lines10810911011111211311430 unmodified lines14514614714814915015136 unmodified lines18818919019119219319419519619719819936 unmodified lines# Page Configuration# -----------------st.set_page_config(page_title="AdaDetectGPT",page_icon="🔍",layout="wide")64 unmodified lines# Configuration# -----------------MODEL_CONFIG = {'from_pretrained': 'mamba413/AdaDetectGPT-Model' if os.environ.get('SPACE_ID') else './src/FineTune/ckpt/lr_0.0001_a_1','base_model': 'gemma-1b','cache_dir': '../cache','device': 'mps',30 unmodified lines_, col0, _ = st.columns((1, 5, 1))with col0:st.markdown("<h1 style='text-align: center; color: #0072C3;'>AdaDetectGPT: Adaptive LLM-generated Text Detection</h1>",unsafe_allow_html=True,)36 unmodified linespvalue_ph = st.empty()pvalue_ph.text_input(label="p-value",value="",disabled=True,help="p-value will appear here after clicking Detect.",)# -----------------# Options Section# -----------------
src/app.py+5-7