added demo
Browse files
app.py
CHANGED
@@ -8,8 +8,9 @@ def predict(prompt):
|
|
8 |
return summary
|
9 |
|
10 |
with gr.Blocks() as demo:
|
11 |
-
textbox = gr.Textbox(
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
|
|
|
8 |
return summary
|
9 |
|
10 |
with gr.Blocks() as demo:
|
11 |
+
textbox = gr.inputs.Textbox(lines=5, label="Input Text")
|
12 |
+
label = gr.outputs.Textbox(label="Output Summary")
|
13 |
+
gr.Interface(fn=predict, inputs=textbox, outputs=label, title="Summarizer", description="Summarize your text!").launch()
|
14 |
+
|
15 |
+
# Path: Dockerfile
|
16 |
+
|