Spaces:
Runtime error
Runtime error
Mohammaderfan koupaei
commited on
Commit
·
29a04a9
1
Parent(s):
63540e8
Add application file
Browse files
app.py
CHANGED
@@ -16,7 +16,10 @@ def main():
|
|
16 |
logging.basicConfig(level=logging.INFO)
|
17 |
logger = logging.getLogger(__name__)
|
18 |
logger.info("Initializing training process...")
|
19 |
-
|
|
|
|
|
|
|
20 |
# Set a random seed for reproducibility
|
21 |
set_seed(42)
|
22 |
|
|
|
16 |
logging.basicConfig(level=logging.INFO)
|
17 |
logger = logging.getLogger(__name__)
|
18 |
logger.info("Initializing training process...")
|
19 |
+
import nltk
|
20 |
+
# Ensure NLTK resources are available
|
21 |
+
nltk.download('punkt', quiet=True)
|
22 |
+
nltk.download('stopwords', quiet=True)
|
23 |
# Set a random seed for reproducibility
|
24 |
set_seed(42)
|
25 |
|