Spaces:
Runtime error
Runtime error
KonradSzafer
commited on
Commit
•
0bd8ed4
1
Parent(s):
bfdf8df
config parsing update and simplified requirements
Browse files- qa_engine/config.py +1 -1
- requirements.txt +2 -2
qa_engine/config.py
CHANGED
@@ -8,7 +8,7 @@ from qa_engine import logger
|
|
8 |
def get_env(env_name: str, default: Any = None, warn: bool = True) -> str:
|
9 |
env = os.getenv(env_name)
|
10 |
if not env:
|
11 |
-
if default:
|
12 |
if warn:
|
13 |
logger.warning(
|
14 |
f'Environment variable {env_name} not found.' \
|
|
|
8 |
def get_env(env_name: str, default: Any = None, warn: bool = True) -> str:
|
9 |
env = os.getenv(env_name)
|
10 |
if not env:
|
11 |
+
if default is not None:
|
12 |
if warn:
|
13 |
logger.warning(
|
14 |
f'Environment variable {env_name} not found.' \
|
requirements.txt
CHANGED
@@ -5,7 +5,9 @@ accelerate
|
|
5 |
einops
|
6 |
huggingface_hub
|
7 |
gradio
|
|
|
8 |
wandb
|
|
|
9 |
beautifulsoup4==4.12.0
|
10 |
discord.py==2.2.2
|
11 |
evaluate==0.4.0
|
@@ -14,7 +16,6 @@ langchain==0.0.154
|
|
14 |
nltk==3.8.1
|
15 |
nbconvert==7.6.0
|
16 |
nbformat==5.9.0
|
17 |
-
numpy==1.24.2
|
18 |
markdown==3.4.4
|
19 |
pandas==1.5.3
|
20 |
python-dotenv==1.0.0
|
@@ -23,6 +24,5 @@ scikit_learn==1.2.2
|
|
23 |
sentence-transformers==2.2.2
|
24 |
InstructorEmbedding==1.0.0
|
25 |
faiss_cpu==1.7.3
|
26 |
-
tqdm==4.64.1
|
27 |
uvicorn==0.22.0
|
28 |
pytest==7.3.1
|
|
|
5 |
einops
|
6 |
huggingface_hub
|
7 |
gradio
|
8 |
+
numpy
|
9 |
wandb
|
10 |
+
tqdm
|
11 |
beautifulsoup4==4.12.0
|
12 |
discord.py==2.2.2
|
13 |
evaluate==0.4.0
|
|
|
16 |
nltk==3.8.1
|
17 |
nbconvert==7.6.0
|
18 |
nbformat==5.9.0
|
|
|
19 |
markdown==3.4.4
|
20 |
pandas==1.5.3
|
21 |
python-dotenv==1.0.0
|
|
|
24 |
sentence-transformers==2.2.2
|
25 |
InstructorEmbedding==1.0.0
|
26 |
faiss_cpu==1.7.3
|
|
|
27 |
uvicorn==0.22.0
|
28 |
pytest==7.3.1
|