Spaces:
Sleeping
Sleeping
app.py
CHANGED
@@ -98,4 +98,12 @@ iface = gr.Interface(
|
|
98 |
fn=summarize_text,
|
99 |
inputs=[
|
100 |
gr.Textbox(lines=6, label="Enter text to summarize"),
|
101 |
-
gr.Dropdown(choices
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
fn=summarize_text,
|
99 |
inputs=[
|
100 |
gr.Textbox(lines=6, label="Enter text to summarize"),
|
101 |
+
gr.Dropdown(choices=list(model_choices.keys()), label="Choose summarization model", value="Pegasus (google/pegasus-xsum)"),
|
102 |
+
gr.Slider(minimum=30, maximum=200, value=65, step=1, label="Max Character Limit")
|
103 |
+
],
|
104 |
+
outputs=gr.Textbox(lines=3, label="Summary (truncated to character limit)"),
|
105 |
+
title="Multi-Model Text Summarizer",
|
106 |
+
description="Summarize text using different Hugging Face models with a user-defined character limit."
|
107 |
+
)
|
108 |
+
|
109 |
+
iface.launch()
|