Spaces:
Runtime error
Runtime error
update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
import logging
|
| 2 |
from typing import Optional
|
| 3 |
import spaces
|
|
@@ -258,8 +259,8 @@ def process(
|
|
| 258 |
logger.info("finish processing")
|
| 259 |
return image_som, str(parsed_content_list)
|
| 260 |
except Exception as e:
|
| 261 |
-
error_message =
|
| 262 |
-
logger.
|
| 263 |
return image_input, error_message
|
| 264 |
|
| 265 |
logger.info("Starting App.")
|
|
|
|
| 1 |
+
import traceback
|
| 2 |
import logging
|
| 3 |
from typing import Optional
|
| 4 |
import spaces
|
|
|
|
| 259 |
logger.info("finish processing")
|
| 260 |
return image_som, str(parsed_content_list)
|
| 261 |
except Exception as e:
|
| 262 |
+
error_message = traceback.format_exc()
|
| 263 |
+
logger.warning(error_message)
|
| 264 |
return image_input, error_message
|
| 265 |
|
| 266 |
logger.info("Starting App.")
|