Spaces:
Build error
Build error
Einmalumdiewelt
commited on
Commit
·
1388718
1
Parent(s):
b8d604c
Update app.py
Browse files
app.py
CHANGED
@@ -47,16 +47,15 @@ txt=gr.Textbox(lines=15, label="I want to summarize this:", placeholder="Paste y
|
|
47 |
out=gr.Textbox(lines=5, label="Here's your summary:")
|
48 |
|
49 |
interface = gr.Interface(summarize,
|
50 |
-
[
|
51 |
-
|
52 |
-
inputs=txt,
|
53 |
# Selection of models for inference
|
54 |
-
gr.Dropdown(["T5-base", "Google pegasus", "Facebook bart-large"]),
|
55 |
# Length of summaries
|
56 |
-
gr.Slider(50, 250, step=50, label="summary length", value=150)
|
57 |
-
# ouptut
|
58 |
-
outputs=out
|
59 |
],
|
|
|
|
|
60 |
title=title,
|
61 |
description=description,
|
62 |
examples=examples)
|
|
|
47 |
out=gr.Textbox(lines=5, label="Here's your summary:")
|
48 |
|
49 |
interface = gr.Interface(summarize,
|
50 |
+
inputs=[
|
51 |
+
txt,
|
|
|
52 |
# Selection of models for inference
|
53 |
+
gr.Dropdown(["T5-base", "Google pegasus", "Facebook bart-large"],label="Choose a fine-tuned architecture."),
|
54 |
# Length of summaries
|
55 |
+
gr.Slider(50, 250, step=50, label="Select preferred summary length.", value=150)
|
|
|
|
|
56 |
],
|
57 |
+
# ouptut
|
58 |
+
outputs=out,
|
59 |
title=title,
|
60 |
description=description,
|
61 |
examples=examples)
|