Spaces:
Build error
Build error
Reshinth Adithyan
commited on
Commit
•
1b6aa17
1
Parent(s):
4d992f2
Add local dedup version
Browse files
app.py
CHANGED
@@ -48,7 +48,10 @@ def load_page(split):
|
|
48 |
st.text(content)
|
49 |
with st.expander("Metadata and Metrics"):
|
50 |
st.write("### Meta:")
|
51 |
-
|
|
|
|
|
|
|
52 |
# Tokenizer-related count
|
53 |
tokenized = tokenizer(content, return_length=True)['length'][0]
|
54 |
token_count_metric = st.metric("Token Count(compared to 2048)",value=tokenized,delta=4096-tokenized)
|
|
|
48 |
st.text(content)
|
49 |
with st.expander("Metadata and Metrics"):
|
50 |
st.write("### Meta:")
|
51 |
+
try:
|
52 |
+
st.write(ast.literal_eval(meta))
|
53 |
+
except:
|
54 |
+
st.write(meta)
|
55 |
# Tokenizer-related count
|
56 |
tokenized = tokenizer(content, return_length=True)['length'][0]
|
57 |
token_count_metric = st.metric("Token Count(compared to 2048)",value=tokenized,delta=4096-tokenized)
|