Update app.py
Browse files
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:
|