yes2code commited on
Commit
07a225e
·
1 Parent(s): 8e2e958

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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
- #from transformers import pipeline
 
 
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