Rici commited on
Commit
81b803b
1 Parent(s): 83ef2b4

added demo

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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()