Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -164,6 +164,10 @@ def predict_image(img, confidence_threshold):
|
|
| 164 |
'AI': pred[0],
|
| 165 |
'Real': pred[1]
|
| 166 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 167 |
# Combine results
|
| 168 |
combined_results = {
|
| 169 |
"SwinV2": label_1,
|
|
|
|
| 164 |
'AI': pred[0],
|
| 165 |
'Real': pred[1]
|
| 166 |
}
|
| 167 |
+
except Exception as e:
|
| 168 |
+
label_3 = f"Error: {str(e)}"
|
| 169 |
+
|
| 170 |
+
|
| 171 |
# Combine results
|
| 172 |
combined_results = {
|
| 173 |
"SwinV2": label_1,
|