Rici commited on
Commit
76abc58
1 Parent(s): 81b803b

added demo

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -8,8 +8,9 @@ def predict(prompt):
8
  return summary
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()
 
 
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
+