Samson commited on
Commit
eb20cb4
1 Parent(s): c53b2a3

update more

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -16,8 +16,8 @@ def predict(prompt):
16
  summary = model(prompt)[0]["summary_text"]
17
  return summary
18
 
19
- with gr.Blocks() as demo:
20
- textbox = gr.Textbox(placeholder="Enter what you need to summarize", lines = 4)
21
- gr.Interface(fn=predict, inputs=textbox, outputs='text')
22
 
23
- demo.launch()
 
16
  summary = model(prompt)[0]["summary_text"]
17
  return summary
18
 
19
+ iface = gr.Interface(fn = predict,
20
+ inputs =gr.Textbox(lines = 4, placeholder "Enter what to summarize"),
21
+ outputs = "text")
22
 
23
+ iface.launch()