CineAI commited on
Commit
80a60df
1 Parent(s): ea7d5a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def exctrator(sentence, phrase="show me your image"):
35
  return extracted_text
36
 
37
  def switching(text):
38
- command = re.search("show me your image", text.lower(), re.IGNORECASE)
39
  result = None
40
 
41
  if command:
 
35
  return extracted_text
36
 
37
  def switching(text):
38
+ command = re.search("show me your image", text.lower(), re.IGNORECASE) if text is not None else "Error because your voice requst is None"
39
  result = None
40
 
41
  if command: