Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,10 +1,11 @@
|
|
| 1 |
|
|
|
|
| 2 |
try:
|
| 3 |
import numba.core.decorators as _nd
|
| 4 |
_nd.JitDispatcher.enable_caching = lambda self: None
|
| 5 |
except Exception:
|
| 6 |
pass
|
| 7 |
-
|
| 8 |
from flask import Flask, render_template, request, session, redirect, url_for, flash, send_from_directory
|
| 9 |
import os
|
| 10 |
import secrets
|
|
@@ -13,6 +14,9 @@ import sys
|
|
| 13 |
import shutil
|
| 14 |
import logging # Import the logging module
|
| 15 |
|
|
|
|
|
|
|
|
|
|
| 16 |
# Configure logging
|
| 17 |
logging.basicConfig(level=logging.INFO, # Set the minimum logging level
|
| 18 |
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|
|
|
|
| 1 |
|
| 2 |
+
|
| 3 |
try:
|
| 4 |
import numba.core.decorators as _nd
|
| 5 |
_nd.JitDispatcher.enable_caching = lambda self: None
|
| 6 |
except Exception:
|
| 7 |
pass
|
| 8 |
+
|
| 9 |
from flask import Flask, render_template, request, session, redirect, url_for, flash, send_from_directory
|
| 10 |
import os
|
| 11 |
import secrets
|
|
|
|
| 14 |
import shutil
|
| 15 |
import logging # Import the logging module
|
| 16 |
|
| 17 |
+
|
| 18 |
+
os.environ['NUMBA_CACHE_DIR'] = '/tmp/numba_cache' # Or any other writable directory
|
| 19 |
+
|
| 20 |
# Configure logging
|
| 21 |
logging.basicConfig(level=logging.INFO, # Set the minimum logging level
|
| 22 |
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|