Spaces:
Sleeping
Sleeping
nikhedward
commited on
Commit
·
5977e17
1
Parent(s):
05ac532
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,8 @@ def summarize(inp):
|
|
51 |
summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
|
52 |
return summary
|
53 |
|
54 |
-
interface = gr.Interface(fn=summarize, inputs=gr.inputs.Textbox(lines=10, label="Input Text"), description = desc, theme = "peach",
|
|
|
55 |
|
56 |
interface.launch()
|
57 |
|
|
|
51 |
summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
|
52 |
return summary
|
53 |
|
54 |
+
interface = gr.Interface(fn=summarize, inputs=gr.inputs.Textbox(lines=10, label="Input Text"), description = desc, theme = "peach",
|
55 |
+
examples = sample_texts, title = title, outputs="text")
|
56 |
|
57 |
interface.launch()
|
58 |
|