Spaces:
Sleeping
Sleeping
token update
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import os
|
|
5 |
|
6 |
# API endpoint - model name
|
7 |
API_URL = "https://api-inference.huggingface.co/models/Rahmat82/t5-small-finetuned-summarization-xsum"
|
8 |
-
SECRET_KEY = os.environ.get("
|
9 |
|
10 |
# asynchronous function
|
11 |
async def summarize(text, retries=6):
|
|
|
5 |
|
6 |
# API endpoint - model name
|
7 |
API_URL = "https://api-inference.huggingface.co/models/Rahmat82/t5-small-finetuned-summarization-xsum"
|
8 |
+
SECRET_KEY = os.environ.get("summarize_text")
|
9 |
|
10 |
# asynchronous function
|
11 |
async def summarize(text, retries=6):
|