Spaces:
Build error
Build error
Update common/Config.py
Browse files- common/Config.py +5 -2
common/Config.py
CHANGED
|
@@ -125,8 +125,11 @@ class Config:
|
|
| 125 |
cls.processor_frequency_penalty = float(os.getenv(f"{processor_prefix}_FREQUENCY_PENALTY", 0.0))
|
| 126 |
cls.processor_presence_penalty = float(os.getenv(f"{processor_prefix}_PRESENCE_PENALTY", 0.0))
|
| 127 |
|
| 128 |
-
|
| 129 |
-
|
|
|
|
|
|
|
|
|
|
| 130 |
@classmethod
|
| 131 |
def print_environment(cls):
|
| 132 |
|
|
|
|
| 125 |
cls.processor_frequency_penalty = float(os.getenv(f"{processor_prefix}_FREQUENCY_PENALTY", 0.0))
|
| 126 |
cls.processor_presence_penalty = float(os.getenv(f"{processor_prefix}_PRESENCE_PENALTY", 0.0))
|
| 127 |
|
| 128 |
+
hugging_face_excel_env = os.getenv('HUGGING_FACE_EXCEL_FILE', 'hugging_face_details.xlsx')
|
| 129 |
+
if not os.path.isabs(hugging_face_excel_env):
|
| 130 |
+
cls.hugging_face_excel_file = os.path.join(cls.config_dir, hugging_face_excel_env)
|
| 131 |
+
else:
|
| 132 |
+
cls.hugging_face_excel_file = hugging_face_excel_env
|
| 133 |
@classmethod
|
| 134 |
def print_environment(cls):
|
| 135 |
|