Commit
·
1871c9c
1
Parent(s):
82654de
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,7 +39,7 @@ with gr.Blocks() as demo:
|
|
| 39 |
# Connect detection button to the detect_nsfw function
|
| 40 |
def safe_detect_nsfw(image, conf, iou, label):
|
| 41 |
try:
|
| 42 |
-
return detect_nsfw(image,
|
| 43 |
except Exception as e:
|
| 44 |
return f"Error during detection: {e}", None
|
| 45 |
|
|
|
|
| 39 |
# Connect detection button to the detect_nsfw function
|
| 40 |
def safe_detect_nsfw(image, conf, iou, label):
|
| 41 |
try:
|
| 42 |
+
return detect_nsfw(image, conf, iou, label)
|
| 43 |
except Exception as e:
|
| 44 |
return f"Error during detection: {e}", None
|
| 45 |
|