Spaces:
Build error
Build error
Update common/Config.py
Browse files- common/Config.py +3 -0
common/Config.py
CHANGED
|
@@ -23,6 +23,7 @@ class Config:
|
|
| 23 |
interview_question_file = None
|
| 24 |
survey_question_file = None
|
| 25 |
interview_validation_files = None
|
|
|
|
| 26 |
|
| 27 |
# === Respondent Agent Configs ===
|
| 28 |
respondent_agent_host = None
|
|
@@ -124,6 +125,7 @@ class Config:
|
|
| 124 |
cls.processor_frequency_penalty = float(os.getenv(f"{processor_prefix}_FREQUENCY_PENALTY", 0.0))
|
| 125 |
cls.processor_presence_penalty = float(os.getenv(f"{processor_prefix}_PRESENCE_PENALTY", 0.0))
|
| 126 |
|
|
|
|
| 127 |
|
| 128 |
@classmethod
|
| 129 |
def print_environment(cls):
|
|
@@ -151,6 +153,7 @@ class Config:
|
|
| 151 |
print(f"Interview Question File: {cls.interview_question_file}")
|
| 152 |
print(f"Survey Question File: {cls.survey_question_file}")
|
| 153 |
print(f"Interview Validation Files: {cls.interview_validation_files}")
|
|
|
|
| 154 |
|
| 155 |
print("\nRESPONDENT AGENT CONFIGS")
|
| 156 |
print(f"Respondent Agent Host: {cls.respondent_agent_host}")
|
|
|
|
| 23 |
interview_question_file = None
|
| 24 |
survey_question_file = None
|
| 25 |
interview_validation_files = None
|
| 26 |
+
hugging_face_excel_file = None
|
| 27 |
|
| 28 |
# === Respondent Agent Configs ===
|
| 29 |
respondent_agent_host = None
|
|
|
|
| 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 |
+
cls.hugging_face_excel_file = os.getenv('HUGGING_FACE_EXCEL_FILE', 'config/genzheroes/hugging_face_details.xlsx')
|
| 129 |
|
| 130 |
@classmethod
|
| 131 |
def print_environment(cls):
|
|
|
|
| 153 |
print(f"Interview Question File: {cls.interview_question_file}")
|
| 154 |
print(f"Survey Question File: {cls.survey_question_file}")
|
| 155 |
print(f"Interview Validation Files: {cls.interview_validation_files}")
|
| 156 |
+
print(f"Hugging Face Excel File: {cls.hugging_face_excel_file}")
|
| 157 |
|
| 158 |
print("\nRESPONDENT AGENT CONFIGS")
|
| 159 |
print(f"Respondent Agent Host: {cls.respondent_agent_host}")
|