Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ import gradio as gr
|
|
| 9 |
#cd transformers
|
| 10 |
#pip install
|
| 11 |
#python -c "from transformers import pipeline; print(pipeline('sentiment-analysis')('we love you'))"
|
| 12 |
-
pip install 'transformers[torch]'
|
| 13 |
#source .env/bin/activate
|
| 14 |
#pipenv install git+https://github.com/huggingface/transformers
|
| 15 |
#python -m pip install git+https://github.com/huggingface/transformers
|
|
@@ -19,6 +19,7 @@ pip install 'transformers[torch]'
|
|
| 19 |
#pip install transformers
|
| 20 |
#pip install -U git+https://github.com/huggingface/transformers.git
|
| 21 |
#! pip install -U git+https://github.com/huggingface/accelerate.git
|
|
|
|
| 22 |
from transformers import pipeline
|
| 23 |
|
| 24 |
get_completion = pipeline("summarization", model="sshleifer/distilbart-cnn-12-6")
|
|
|
|
| 9 |
#cd transformers
|
| 10 |
#pip install
|
| 11 |
#python -c "from transformers import pipeline; print(pipeline('sentiment-analysis')('we love you'))"
|
| 12 |
+
#pip install 'transformers[torch]'
|
| 13 |
#source .env/bin/activate
|
| 14 |
#pipenv install git+https://github.com/huggingface/transformers
|
| 15 |
#python -m pip install git+https://github.com/huggingface/transformers
|
|
|
|
| 19 |
#pip install transformers
|
| 20 |
#pip install -U git+https://github.com/huggingface/transformers.git
|
| 21 |
#! pip install -U git+https://github.com/huggingface/accelerate.git
|
| 22 |
+
|
| 23 |
from transformers import pipeline
|
| 24 |
|
| 25 |
get_completion = pipeline("summarization", model="sshleifer/distilbart-cnn-12-6")
|