Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,7 +50,7 @@ def gradio_interface(text_input):
|
|
| 50 |
if not text_input or text_input.strip() == "":
|
| 51 |
return None, "Please enter a description."
|
| 52 |
if any(char.isdigit() for char in text_input):
|
| 53 |
-
return None, "Can't put a number! Please write a bird type."
|
| 54 |
|
| 55 |
try:
|
| 56 |
english_query = translator.translate(text_input)
|
|
|
|
| 50 |
if not text_input or text_input.strip() == "":
|
| 51 |
return None, "Please enter a description."
|
| 52 |
if any(char.isdigit() for char in text_input):
|
| 53 |
+
return None, "Can't put a number! Please write a bird type (example: Blue Bird)."
|
| 54 |
|
| 55 |
try:
|
| 56 |
english_query = translator.translate(text_input)
|