RamziRebai commited on
Commit
a8693af
·
1 Parent(s): e4b0eb9

Add application file

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 your text 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()