Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,23 +3,6 @@ import gradio as gr
|
|
3 |
#def greet(name):
|
4 |
# return "Hello " + name + "!!"
|
5 |
|
6 |
-
#iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
-
#iface.launch()
|
8 |
-
#git clone https://github.com/huggingface/transformers.git
|
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
|
16 |
-
#source ENV/bin/activate
|
17 |
-
#python -m venv .env
|
18 |
-
#pip install 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")
|
|
|
3 |
#def greet(name):
|
4 |
# return "Hello " + name + "!!"
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
from transformers import pipeline
|
7 |
|
8 |
get_completion = pipeline("summarization", model="sshleifer/distilbart-cnn-12-6")
|