Update app.py
Browse files
app.py
CHANGED
@@ -36,20 +36,22 @@ with gr.Blocks() as demo:
|
|
36 |
gr.Markdown("## 📝 Summarization for News, SciTLDR and Dialog Texts")
|
37 |
|
38 |
with gr.Row():
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
|
|
|
|
53 |
|
54 |
with gr.Row():
|
55 |
summarize_btn = gr.Button("Summarize")
|
|
|
36 |
gr.Markdown("## 📝 Summarization for News, SciTLDR and Dialog Texts")
|
37 |
|
38 |
with gr.Row():
|
39 |
+
with gr.Column():
|
40 |
+
input_text = gr.Textbox(
|
41 |
+
label="Input Text",
|
42 |
+
autoscroll=False,
|
43 |
+
lines=15,
|
44 |
+
max_lines=15,
|
45 |
+
placeholder="Paste your article or paragraph here...",
|
46 |
+
)
|
47 |
+
with gr.Column():
|
48 |
+
output_text = gr.Textbox(
|
49 |
+
label="Summary",
|
50 |
+
autoscroll=False,
|
51 |
+
lines=15,
|
52 |
+
max_lines=15,
|
53 |
+
show_copy_button=True,
|
54 |
+
)
|
55 |
|
56 |
with gr.Row():
|
57 |
summarize_btn = gr.Button("Summarize")
|