Spaces:
Runtime error
Runtime error
jaisidhsingh
commited on
Commit
β’
0d47a4f
1
Parent(s):
ea3043b
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ START = False
|
|
15 |
COMPLETED = False
|
16 |
PLACEHOLDER = "Enter your article"
|
17 |
|
18 |
-
st.markdown("
|
19 |
|
20 |
article = st.text_input(
|
21 |
label="Welcome, enter your article, press enter, and then Summarize",
|
@@ -98,7 +98,7 @@ if START and not COMPLETED:
|
|
98 |
else:
|
99 |
with tmp_out.container():
|
100 |
st.write("Input token count (",num_toks,") > token limit (",summarizer_token_limit,"), optimizing ...")
|
101 |
-
st.write(f"Going
|
102 |
|
103 |
input_sent_toks = sent_tokenize(article)
|
104 |
embeddings = make_embeddings(input_sent_toks, mean_pooling)
|
|
|
15 |
COMPLETED = False
|
16 |
PLACEHOLDER = "Enter your article"
|
17 |
|
18 |
+
st.markdown("# Inference-Time Optimization for Large Article Summarization π")
|
19 |
|
20 |
article = st.text_input(
|
21 |
label="Welcome, enter your article, press enter, and then Summarize",
|
|
|
98 |
else:
|
99 |
with tmp_out.container():
|
100 |
st.write("Input token count (",num_toks,") > token limit (",summarizer_token_limit,"), optimizing ...")
|
101 |
+
st.write(f"Going beyond {model_name} token limit:", summarizer_token_limit)
|
102 |
|
103 |
input_sent_toks = sent_tokenize(article)
|
104 |
embeddings = make_embeddings(input_sent_toks, mean_pooling)
|