Spaces:
Runtime error
Runtime error
Use google model
Browse files
.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)
|