Spaces:
Runtime error
Runtime error
Update summarize.py
Browse files- summarize.py +3 -2
summarize.py
CHANGED
@@ -36,7 +36,8 @@ def Summarizer(link, model):
|
|
36 |
|
37 |
return summary[0]
|
38 |
|
39 |
-
|
|
|
40 |
print(traceback.format_exc())
|
41 |
# or
|
42 |
-
|
|
|
36 |
|
37 |
return summary[0]
|
38 |
|
39 |
+
|
40 |
+
except Exception:
|
41 |
print(traceback.format_exc())
|
42 |
# or
|
43 |
+
print(sys.exc_info()[2])
|