Salcidio commited on
Commit
c5ccb1e
·
1 Parent(s): fc75b4f

using transformers pipeline

Browse files
Files changed (3) hide show
  1. app.py +5 -1
  2. main.py +0 -0
  3. requirements.txt +5 -1
app.py CHANGED
@@ -1 +1,5 @@
1
- print('this is an python test')
 
 
 
 
 
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
- transformers
 
 
 
 
 
1
  torch
2
+ torchvision
3
+ torchaudio
4
+ transformers
5
+ langchain
6
+ langchain-huggingface