Spaces:
Running
Running
Enable compact layout
Browse files
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.
|
|
|
|
|
|
|
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)
|