Spaces:
Sleeping
Sleeping
Nam Fam commited on
Commit ·
f7a7308
1
Parent(s): 7f35a26
update app.py
Browse files
app.py
CHANGED
|
@@ -64,12 +64,15 @@ communication:
|
|
| 64 |
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 65 |
# Go up one level to get the project root (intelcruit/)
|
| 66 |
PROJECT_ROOT = os.path.dirname(SCRIPT_DIR)
|
|
|
|
|
|
|
|
|
|
| 67 |
# Construct the full, robust paths to the mock files
|
| 68 |
-
MOCK_AUDIO_PATH = os.path.join(PROJECT_ROOT, "
|
| 69 |
-
MOCK_TRANSCRIPT_PATH = os.path.join(PROJECT_ROOT, "
|
| 70 |
-
MOCK_RESUME_PATH = os.path.join(PROJECT_ROOT, "
|
| 71 |
-
MOCK_JD_PATH = os.path.join(PROJECT_ROOT, "
|
| 72 |
-
MOCK_RUBRIC_PATH = os.path.join(PROJECT_ROOT, "
|
| 73 |
MOCK_TRANSCRIPT_PLACEHOLDER = "This is a placeholder for the mock transcript. It will be replaced by content from the mock file if available."
|
| 74 |
|
| 75 |
def load_mock_file(path, mime_type):
|
|
@@ -179,7 +182,8 @@ def display_results(results_data, rubric_content):
|
|
| 179 |
else:
|
| 180 |
st.warning("No analysis available for this Q&A pair.")
|
| 181 |
|
| 182 |
-
BASE_URL = "http://127.0.0.1:8000"
|
|
|
|
| 183 |
RESUME_EXTRACTION_URL = f"{BASE_URL}/extract_from_resume/"
|
| 184 |
|
| 185 |
def get_text_from_file(file):
|
|
|
|
| 64 |
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 65 |
# Go up one level to get the project root (intelcruit/)
|
| 66 |
PROJECT_ROOT = os.path.dirname(SCRIPT_DIR)
|
| 67 |
+
|
| 68 |
+
print("PROJECT_ROOT: ", PROJECT_ROOT)
|
| 69 |
+
|
| 70 |
# Construct the full, robust paths to the mock files
|
| 71 |
+
MOCK_AUDIO_PATH = os.path.join(PROJECT_ROOT, "frontend", "examples", "example_interview_audio_tts_ai_engineer.wav")
|
| 72 |
+
MOCK_TRANSCRIPT_PATH = os.path.join(PROJECT_ROOT, "frontend", "examples", "example_interview_transcipt.txt")
|
| 73 |
+
MOCK_RESUME_PATH = os.path.join(PROJECT_ROOT, "frontend", "examples", "example_resume_ai_engineer.pdf")
|
| 74 |
+
MOCK_JD_PATH = os.path.join(PROJECT_ROOT, "frontend", "examples", "example_job_description.txt")
|
| 75 |
+
MOCK_RUBRIC_PATH = os.path.join(PROJECT_ROOT, "frontend", "examples", "example_rubric.yaml")
|
| 76 |
MOCK_TRANSCRIPT_PLACEHOLDER = "This is a placeholder for the mock transcript. It will be replaced by content from the mock file if available."
|
| 77 |
|
| 78 |
def load_mock_file(path, mime_type):
|
|
|
|
| 182 |
else:
|
| 183 |
st.warning("No analysis available for this Q&A pair.")
|
| 184 |
|
| 185 |
+
# BASE_URL = "http://127.0.0.1:8000"
|
| 186 |
+
BASE_URL = "https://namfam-intelcruit-backend.hf.space/"
|
| 187 |
RESUME_EXTRACTION_URL = f"{BASE_URL}/extract_from_resume/"
|
| 188 |
|
| 189 |
def get_text_from_file(file):
|