Update src/app/task.py
Browse files- src/app/task.py +1 -1
src/app/task.py
CHANGED
@@ -26,7 +26,7 @@ def ocr_task(image: Image.Image) -> Tuple[Image.Image, str]:
|
|
26 |
try:
|
27 |
# Check if image is None
|
28 |
if image is None:
|
29 |
-
|
30 |
|
31 |
# Task prompts
|
32 |
ocr_prompt = "<OCR>"
|
|
|
26 |
try:
|
27 |
# Check if image is None
|
28 |
if image is None:
|
29 |
+
gr.Error("Please provide an image.")
|
30 |
|
31 |
# Task prompts
|
32 |
ocr_prompt = "<OCR>"
|