Spaces:
Sleeping
Sleeping
Commit
·
733c886
1
Parent(s):
bd48583
kind of final app
Browse files
app.py
CHANGED
@@ -25,10 +25,23 @@ with gr.Blocks(theme=gr.themes.Soft()) as app:
|
|
25 |
|
26 |
with gr.Row():
|
27 |
with gr.Column():
|
28 |
-
gr.
|
|
|
|
|
|
|
|
|
|
|
29 |
with gr.Column():
|
30 |
-
gr.Label("
|
31 |
|
|
|
32 |
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
app.launch()
|
|
|
25 |
|
26 |
with gr.Row():
|
27 |
with gr.Column():
|
28 |
+
input_text_box = gr.Textbox(
|
29 |
+
label="Document",
|
30 |
+
info="Example text",
|
31 |
+
lines=20,
|
32 |
+
value="Wikipedia is a free, open content online encyclopedia created through the collaborative effort of a community of users known as Wikipedians. Anyone registered on the site can create an article for publication; registration is not required to edit articles.",
|
33 |
+
)
|
34 |
with gr.Column():
|
35 |
+
output_text_box = gr.Label("summary")
|
36 |
|
37 |
+
input_interfaces.append(input_text_box)
|
38 |
|
39 |
|
40 |
+
with gr.Row():
|
41 |
+
predict_but = gr.Button("Predict")
|
42 |
+
|
43 |
+
|
44 |
+
# Add the button actions.
|
45 |
+
predict_but.click(predict, inputs=input_interfaces, outputs=output_text_box)
|
46 |
+
|
47 |
app.launch()
|