Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,11 +14,11 @@ iface = gr.Interface(
|
|
| 14 |
fn=summarize_article,
|
| 15 |
inputs=[
|
| 16 |
"text",
|
| 17 |
-
gr.
|
| 18 |
-
gr.
|
| 19 |
-
gr.
|
| 20 |
-
gr.
|
| 21 |
-
gr.
|
| 22 |
],
|
| 23 |
outputs="text",
|
| 24 |
title="Text Summarization with Hyperparameters",
|
|
|
|
| 14 |
fn=summarize_article,
|
| 15 |
inputs=[
|
| 16 |
"text",
|
| 17 |
+
gr.Dropdown(["Falconsai/text_summarization", "Other Models..."], label="Select Model"),
|
| 18 |
+
gr.Slider(minimum=10, maximum=200, default=100, label="Max-Length"),
|
| 19 |
+
gr.Slider(minimum=0.1, maximum=2, default=0.7, label="Temperature"),
|
| 20 |
+
gr.Slider(minimum=1, maximum=100, default=50, label="Top-k"),
|
| 21 |
+
gr.Slider(minimum=0.1, maximum=1, default=0.9, label="Top-p")
|
| 22 |
],
|
| 23 |
outputs="text",
|
| 24 |
title="Text Summarization with Hyperparameters",
|