OmarAli123 commited on
Commit
f7cd1c7
·
1 Parent(s): b95d305

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -1,10 +1,3 @@
1
- from transformers import pipeline
2
 
3
- pipe = pipeline("summarization", model="slauw87/bart_summarisation")
4
 
5
-
6
- def predict(prompt):
7
- completion = pipe(prompt)[0]["generated_text"]
8
- return completion
9
-
10
- #print(pipe(ARTICLE, max_length=130, min_length=30, do_sample=False))
 
1
+ !pip install gradio
2
 
 
3