Update app.py
Browse files
app.py
CHANGED
@@ -164,7 +164,7 @@ if __name__ == "__main__":
|
|
164 |
)
|
165 |
with gr.Column():
|
166 |
|
167 |
-
gr.Markdown("
|
168 |
gr.Markdown(
|
169 |
"Enter text below in the text area. The text will be summarized [using the selected text generation parameters](https://huggingface.co/blog/how-to-generate). Optionally load an available example below or upload a file."
|
170 |
)
|
@@ -205,11 +205,11 @@ if __name__ == "__main__":
|
|
205 |
default=3.5,
|
206 |
step=0.1,
|
207 |
)
|
208 |
-
no_repeat_ngram_size = gr.Radio(
|
209 |
-
choices=[2, 3, 4],
|
210 |
-
label="no repeat ngram size",
|
211 |
-
value=3,
|
212 |
-
|
213 |
with gr.Row():
|
214 |
example_name = gr.Dropdown(
|
215 |
list(name_to_path.keys()),
|
@@ -221,7 +221,7 @@ if __name__ == "__main__":
|
|
221 |
input_text = gr.Textbox(
|
222 |
lines=6,
|
223 |
label="Input Text (for summarization)",
|
224 |
-
placeholder="Enter any scientific text to be condensed into a long and comprehensive digested format or an extreme TLDR summary version, the text will be preprocessed and truncated if necessary to fit within the computational constraints. The models were trained to handle long scientific papers but generalize reasonably well also to shorter text documents like abstracts with an appropriate. Might take a
|
225 |
)
|
226 |
gr.Markdown("Upload your own file:")
|
227 |
with gr.Row():
|
|
|
164 |
)
|
165 |
with gr.Column():
|
166 |
|
167 |
+
gr.Markdown("### Load Text Inputs & Select Model and Summary Type")
|
168 |
gr.Markdown(
|
169 |
"Enter text below in the text area. The text will be summarized [using the selected text generation parameters](https://huggingface.co/blog/how-to-generate). Optionally load an available example below or upload a file."
|
170 |
)
|
|
|
205 |
default=3.5,
|
206 |
step=0.1,
|
207 |
)
|
208 |
+
#no_repeat_ngram_size = gr.Radio(
|
209 |
+
#choices=[2, 3, 4],
|
210 |
+
#label="no repeat ngram size",
|
211 |
+
#value=3,
|
212 |
+
# )
|
213 |
with gr.Row():
|
214 |
example_name = gr.Dropdown(
|
215 |
list(name_to_path.keys()),
|
|
|
221 |
input_text = gr.Textbox(
|
222 |
lines=6,
|
223 |
label="Input Text (for summarization)",
|
224 |
+
placeholder="Enter any scientific text to be condensed into a long and comprehensive digested format or an extreme TLDR summary version, the text will be preprocessed and truncated if necessary to fit within the computational constraints. The models were trained to handle long scientific papers but generalize reasonably well also to shorter text documents like abstracts with an appropriate. Might take a while to produce long summaries :)",
|
225 |
)
|
226 |
gr.Markdown("Upload your own file:")
|
227 |
with gr.Row():
|