Spaces:
Sleeping
Sleeping
Commit
·
5c729bc
1
Parent(s):
20eb986
Update app.py
Browse files
app.py
CHANGED
@@ -51,21 +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"),
|
55 |
examples = sample_texts, title = title, outputs="text")
|
56 |
|
57 |
interface.launch()
|
58 |
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
#interface = gr.Interface.load("huggingface/nikhedward/bart-large-cnn-finetuned-multi-news",
|
65 |
-
#title = title,
|
66 |
-
#description = desc,
|
67 |
-
#theme = "peach",
|
68 |
-
#examples = sample_texts,
|
69 |
-
#inputs = gr.inputs.Textbox(lines = 10, label="Input Text"))
|
70 |
-
|
71 |
-
#interface.launch()
|
|
|
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"), article= desc, theme = "peach",
|
55 |
examples = sample_texts, title = title, outputs="text")
|
56 |
|
57 |
interface.launch()
|
58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|