Rahmat82 commited on
Commit
28da753
·
verified ·
1 Parent(s): c0bf46f

call establishment attempt

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ API_URL = "https://api-inference.huggingface.co/models/Rahmat82/t5-small-finetun
8
  SECRET_KEY = os.environ.get("summarizer")
9
 
10
  # asynchronous function
11
- async def summarize(text, retries=4):
12
  if len(text) < 250:
13
  return "⛔ You input is too short! Please input a longer text for summarization."
14
  headers = {"Authorization": f"Bearer {SECRET_KEY}"}
 
8
  SECRET_KEY = os.environ.get("summarizer")
9
 
10
  # asynchronous function
11
+ async def summarize(text, retries=5):
12
  if len(text) < 250:
13
  return "⛔ You input is too short! Please input a longer text for summarization."
14
  headers = {"Authorization": f"Bearer {SECRET_KEY}"}