cifkao commited on
Commit
af8abd6
1 Parent(s): f3cb237

Enable compact layout

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -41,7 +41,10 @@ def ids_to_readable_tokens(tokenizer, ids, strip_whitespace=False):
41
  result.append("")
42
  return result
43
 
44
- st.header("Context length probing")
 
 
 
45
 
46
  model_name = st.selectbox("Model", ["distilgpt2", "gpt2", "EleutherAI/gpt-neo-125m"])
47
  metric_name = st.selectbox("Metric", ["KL divergence", "Cross entropy"], index=1)
 
41
  result.append("")
42
  return result
43
 
44
+ compact_layout = st.experimental_get_query_params().get("compact", ["false"]) == ["true"]
45
+
46
+ if not compact_layout:
47
+ st.header("Context length probing")
48
 
49
  model_name = st.selectbox("Model", ["distilgpt2", "gpt2", "EleutherAI/gpt-neo-125m"])
50
  metric_name = st.selectbox("Metric", ["KL divergence", "Cross entropy"], index=1)