Spaces:
Sleeping
Sleeping
fix: tensorflow 2.15 (keras 충돌 제거) + 에러 메시지 500자로 확장
Browse files- app.py +2 -1
- requirements.txt +1 -2
app.py
CHANGED
|
@@ -82,7 +82,8 @@ def load_all_models():
|
|
| 82 |
def predict(self, features_dict):
|
| 83 |
try:
|
| 84 |
if self.model is None or self.preprocessor is None:
|
| 85 |
-
|
|
|
|
| 86 |
|
| 87 |
ALL_FEATURES = [
|
| 88 |
'C1Z001386', 'C1M210000', 'C18210000', 'C1L120001', 'C1L120004',
|
|
|
|
| 82 |
def predict(self, features_dict):
|
| 83 |
try:
|
| 84 |
if self.model is None or self.preprocessor is None:
|
| 85 |
+
err_short = self.load_error[:500] if self.load_error else "원인 불명"
|
| 86 |
+
return f"Error: 로드 상태 확인 요망. 원본 에러: {err_short}"
|
| 87 |
|
| 88 |
ALL_FEATURES = [
|
| 89 |
'C1Z001386', 'C1M210000', 'C18210000', 'C1L120001', 'C1L120004',
|
requirements.txt
CHANGED
|
@@ -1,8 +1,7 @@
|
|
| 1 |
gradio
|
| 2 |
pandas
|
| 3 |
numpy<2.0.0
|
| 4 |
-
tensorflow==2.
|
| 5 |
-
keras==3.12.1
|
| 6 |
scikit-learn==1.6.1
|
| 7 |
langchain>=0.3.0
|
| 8 |
langchain-huggingface
|
|
|
|
| 1 |
gradio
|
| 2 |
pandas
|
| 3 |
numpy<2.0.0
|
| 4 |
+
tensorflow==2.15.0
|
|
|
|
| 5 |
scikit-learn==1.6.1
|
| 6 |
langchain>=0.3.0
|
| 7 |
langchain-huggingface
|