Salcidio commited on
Commit ·
c5ccb1e
1
Parent(s): fc75b4f
using transformers pipeline
Browse files- app.py +5 -1
- main.py +0 -0
- requirements.txt +5 -1
app.py
CHANGED
|
@@ -1 +1,5 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from transformers import pipeline
|
| 2 |
+
|
| 3 |
+
model = pipeline("summarization", model= "facebook/bart-large-cnn")
|
| 4 |
+
response = model("Text to summarize")
|
| 5 |
+
print(response)
|
main.py
ADDED
|
File without changes
|
requirements.txt
CHANGED
|
@@ -1,2 +1,6 @@
|
|
| 1 |
torch
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
torch
|
| 2 |
+
torchvision
|
| 3 |
+
torchaudio
|
| 4 |
+
transformers
|
| 5 |
+
langchain
|
| 6 |
+
langchain-huggingface
|