Jayanthi commited on
Commit
6c33ed3
·
1 Parent(s): 1bdcba6

Use google model

Browse files
Files changed (2) hide show
  1. .DS_Store +0 -0
  2. app.py +3 -1
.DS_Store ADDED
Binary file (6.15 kB). View file
 
app.py CHANGED
@@ -6,7 +6,9 @@ from transformers import pipeline
6
  def greet(name):
7
  return "Hello "+name + " abc"
8
 
9
- get_completion = pipeline('summarization',model='sshleifer/distilbart-cnn-12-6')
 
 
10
 
11
  def summarize(input):
12
  output = get_completion(input)
 
6
  def greet(name):
7
  return "Hello "+name + " abc"
8
 
9
+ #get_completion = pipeline('summarization',model='sshleifer/distilbart-cnn-12-6')
10
+ get_completion = pipeline('summarization',model='google/flan-t5-base')
11
+
12
 
13
  def summarize(input):
14
  output = get_completion(input)