Spaces:
Running
Running
refactor: move re import from app.py to global_config.py
Browse filesTo centralize the regex functionality within the app, the `re` module import has been relocated from `app.py` to `global_config.py`. This improves maintainability by reducing redundancy and ensuring consistent usage of regex across the application.
- app.py +0 -1
- global_config.py +1 -0
app.py
CHANGED
@@ -6,7 +6,6 @@ import logging
|
|
6 |
import os
|
7 |
import pathlib
|
8 |
import random
|
9 |
-
import re
|
10 |
import tempfile
|
11 |
from typing import List, Union
|
12 |
|
|
|
6 |
import os
|
7 |
import pathlib
|
8 |
import random
|
|
|
9 |
import tempfile
|
10 |
from typing import List, Union
|
11 |
|
global_config.py
CHANGED
@@ -3,6 +3,7 @@ A set of configurations used by the app.
|
|
3 |
"""
|
4 |
import logging
|
5 |
import os
|
|
|
6 |
|
7 |
from dataclasses import dataclass
|
8 |
from dotenv import load_dotenv
|
|
|
3 |
"""
|
4 |
import logging
|
5 |
import os
|
6 |
+
import re
|
7 |
|
8 |
from dataclasses import dataclass
|
9 |
from dotenv import load_dotenv
|