MicGuest
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ from transformers import pipeline
|
|
2 |
import gradio as gr
|
3 |
|
4 |
|
5 |
-
model = pipeline(
|
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)
|