ekkasilina commited on
Commit
007e18f
·
1 Parent(s): c1046a9

added reverse tools

Browse files
Files changed (1) hide show
  1. tools.py +2 -2
tools.py CHANGED
@@ -53,7 +53,7 @@ def reverse_text(question: str) -> str:
53
  Args:
54
  question (str): The question that seemed to be written backward"
55
  """
56
- reversed_candidate = question[::-1]
57
- if question.strip() and question.strip()[0] in "?.!":
58
  return reversed_candidate
59
  return "Text seems normal."
 
53
  Args:
54
  question (str): The question that seemed to be written backward"
55
  """
56
+ if question.strip()[0] in "?.!":
57
+ reversed_candidate = question[::-1]
58
  return reversed_candidate
59
  return "Text seems normal."