psvkaushik commited on
Commit
9a3dab7
·
unverified ·
1 Parent(s): adb76a3

Update app.py

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