Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,9 +6,6 @@ from transformers import pipeline
|
|
6 |
import gradio as gr
|
7 |
from transformers import pipeline
|
8 |
|
9 |
-
# Access the Hugging Face API key and endpoint URL
|
10 |
-
hf_api_key = os.getenv('HF_API_KEY')
|
11 |
-
ENDPOINT_URL = os.getenv('HF_API_SUMMARY_BASE')
|
12 |
|
13 |
#Summarization endpoint
|
14 |
get_completion = pipeline("summarization", model="shleifer/distilbart-cnn-12-6")
|
|
|
6 |
import gradio as gr
|
7 |
from transformers import pipeline
|
8 |
|
|
|
|
|
|
|
9 |
|
10 |
#Summarization endpoint
|
11 |
get_completion = pipeline("summarization", model="shleifer/distilbart-cnn-12-6")
|