Ezinwanne Aka commited on
Commit
23a45f0
·
unverified ·
1 Parent(s): 2c6840e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -7,8 +7,5 @@ def predict(prompt):
7
  summary = model(prompt)[0]['summary text']
8
  return summary
9
 
10
- with gr.Blocks() as demo:
11
- textbox = gr.Textbox(placeholder = "Enter text block to summarize", lines = 4)
12
- gr.Interface(fn=predict, inputs=textbox, outputs="text")
13
-
14
- demo.launch()
 
7
  summary = model(prompt)[0]['summary text']
8
  return summary
9
 
10
+ with gr.Interface(predict, "textbox", "text") as interface:
11
+ interface.launch()