Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -128,7 +128,7 @@ def load_all_vectorstores():
|
|
128 |
try:
|
129 |
if not embeddings:
|
130 |
embeddings = HuggingFaceEmbeddings(
|
131 |
-
model_name="
|
132 |
)
|
133 |
print("✅ 임베딩 모델 로드 완료")
|
134 |
except Exception as e:
|
@@ -290,19 +290,6 @@ def update_question(selected):
|
|
290 |
return selected
|
291 |
return ""
|
292 |
|
293 |
-
def get_system_status():
|
294 |
-
"""시스템 상태를 반환하는 함수"""
|
295 |
-
status = []
|
296 |
-
status.append(f"🔑 API 키: {'✅ 설정됨' if GROQ_API_KEY else '❌ 없음'}")
|
297 |
-
status.append(f"🤖 임베딩: {'✅ 로드됨' if embeddings else '❌ 없음'}")
|
298 |
-
status.append(f"📚 벡터스토어: {'✅ 로드됨' if combined_vectorstore else '❌ 없음'}")
|
299 |
-
|
300 |
-
if combined_vectorstore:
|
301 |
-
doc_count = combined_vectorstore.index.ntotal
|
302 |
-
status.append(f"📄 총 문서 수: {doc_count:,}개")
|
303 |
-
|
304 |
-
return "\n".join(status)
|
305 |
-
|
306 |
# 앱 시작시 벡터스토어들 로드
|
307 |
print("🚀 애플리케이션 시작 - 벡터스토어 로딩 중...")
|
308 |
vectorstores_loaded = load_all_vectorstores()
|
|
|
128 |
try:
|
129 |
if not embeddings:
|
130 |
embeddings = HuggingFaceEmbeddings(
|
131 |
+
model_name="jhgan/ko-sbert-nli"
|
132 |
)
|
133 |
print("✅ 임베딩 모델 로드 완료")
|
134 |
except Exception as e:
|
|
|
290 |
return selected
|
291 |
return ""
|
292 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
# 앱 시작시 벡터스토어들 로드
|
294 |
print("🚀 애플리케이션 시작 - 벡터스토어 로딩 중...")
|
295 |
vectorstores_loaded = load_all_vectorstores()
|