huolongguo10 commited on
Commit
af3577c
1 Parent(s): 3ae4eef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,10 +31,10 @@ def _check(text):
31
  def _check_tiny(text):
32
  t=text
33
  while len(t)>512:
34
- if check_each(t[0:511])=='insecure':
35
  return 'insecure'
36
  t=t[512:]
37
- return check_each(t)
38
  def check(text):
39
  return _check(text),_check_tiny(text)
40
  with gr.Blocks() as demo:
 
31
  def _check_tiny(text):
32
  t=text
33
  while len(t)>512:
34
+ if _check_each(t[0:511])=='insecure':
35
  return 'insecure'
36
  t=t[512:]
37
+ return _check_each(t)
38
  def check(text):
39
  return _check(text),_check_tiny(text)
40
  with gr.Blocks() as demo: