MicGuest commited on
Commit
49d0e55
Β·
unverified Β·
1 Parent(s): 0dc0f83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ from transformers import pipeline
2
  import gradio as gr
3
 
4
 
5
- model = pipeline(β€œsummarization”, model=”t5-base”, tokenizer=”t5-base”, framework=”tf”)
6
 
7
  def predict(prompt):
8
  summary = model(context, max_length=130, min_length=60)
 
2
  import gradio as gr
3
 
4
 
5
+ model = pipeline("summarization", model="t5-base", tokenizer="t5-base", framework="tf")
6
 
7
  def predict(prompt):
8
  summary = model(context, max_length=130, min_length=60)