RandomNameAnd6 commited on
Commit
3d74dd2
1 Parent(s): 7e56099

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -80,7 +80,7 @@ def generate_ai_title():
80
  generated_title = (tokenizer.batch_decode(outputs)[0])[15:-13]
81
  for title in dhar_mann_titles:
82
  title = title.strip() # Remove any extra whitespace characters like newlines
83
- if string_similarity_index(input_text, title):
84
  return generate_ai_title()
85
  return generated_title
86
 
 
80
  generated_title = (tokenizer.batch_decode(outputs)[0])[15:-13]
81
  for title in dhar_mann_titles:
82
  title = title.strip() # Remove any extra whitespace characters like newlines
83
+ if string_similarity_index(generated_title, title):
84
  return generate_ai_title()
85
  return generated_title
86