Spaces:
Sleeping
Sleeping
Update to use Gradio client JS
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ def redirect(query, collection_name):
|
|
30 |
print(f"Failed to get prediction: {e}")
|
31 |
print(f"Exception type: {type(e)}")
|
32 |
print(traceback.format_exc())
|
33 |
-
return "Failed to get prediction
|
34 |
|
35 |
return result
|
36 |
|
|
|
30 |
print(f"Failed to get prediction: {e}")
|
31 |
print(f"Exception type: {type(e)}")
|
32 |
print(traceback.format_exc())
|
33 |
+
return f"Failed to get prediction ({e}), Please try again."
|
34 |
|
35 |
return result
|
36 |
|