added demo
Browse files
app.py
CHANGED
@@ -9,6 +9,7 @@ def predict(prompt):
|
|
9 |
|
10 |
with gr.Blocks() as demo:
|
11 |
textbox = gr.Textbox(placeholder="Enter text block to summarize here...", lines=4)
|
12 |
-
gr.Interface(fn=predict, inputs=textbox, outputs="text")
|
13 |
-
|
|
|
14 |
demo.launch()
|
|
|
9 |
|
10 |
with gr.Blocks() as demo:
|
11 |
textbox = gr.Textbox(placeholder="Enter text block to summarize here...", lines=4)
|
12 |
+
interface = gr.Interface(fn=predict, inputs=textbox, outputs="text")
|
13 |
+
demo.add(interface, "Summarizer", "Summarize text blocks with HuggingFace Transformers")
|
14 |
+
|
15 |
demo.launch()
|