Rahmat82 commited on
Commit
76df00f
·
verified ·
1 Parent(s): b577308

input validation

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ SECRET_KEY = os.environ.get("summarizer")
9
 
10
  # asynchronous function
11
  async def summarize(text, retries=3):
12
- if len(text)) < 20:
13
  return "Error: Input should be at least few sentences long!"
14
  headers = {"Authorization": f"Bearer {SECRET_KEY}"}
15
  data = {
 
9
 
10
  # asynchronous function
11
  async def summarize(text, retries=3):
12
+ if len(text) < 35:
13
  return "Error: Input should be at least few sentences long!"
14
  headers = {"Authorization": f"Bearer {SECRET_KEY}"}
15
  data = {