Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,9 @@ import gradio as gr
|
|
6 |
#iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
#iface.launch()
|
8 |
|
9 |
-
|
|
|
|
|
10 |
|
11 |
get_completion = pipeline("summarization", model="sshleifer/distilbart-cnn-12-6")
|
12 |
|
|
|
6 |
#iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
#iface.launch()
|
8 |
|
9 |
+
! pip install -U git+https://github.com/huggingface/transformers.git
|
10 |
+
#! pip install -U git+https://github.com/huggingface/accelerate.git
|
11 |
+
from transformers import pipeline
|
12 |
|
13 |
get_completion = pipeline("summarization", model="sshleifer/distilbart-cnn-12-6")
|
14 |
|