Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
|
@@ -253,17 +253,6 @@ def groq_use(text_content: Any) -> str:
|
|
| 253 |
logger.error(f"🚨 Groq 호출 실패: {repr(e)}")
|
| 254 |
return "추출 실패"
|
| 255 |
|
| 256 |
-
def get_stock_info(company_info: str) -> Dict[str, str] | None:
|
| 257 |
-
try:
|
| 258 |
-
if krx_listings is not None:
|
| 259 |
-
# 포함 관계 확인
|
| 260 |
-
for _, row in krx_listings.iterrows():
|
| 261 |
-
if row['Name'] in company_info:
|
| 262 |
-
return {"market": "KRX", "symbol": row['Code'], "name": row['Name']}
|
| 263 |
-
except Exception as e:
|
| 264 |
-
logger.error(f"주식 검색 에러: {e}")
|
| 265 |
-
return None
|
| 266 |
-
|
| 267 |
|
| 268 |
# ---------------------------------------
|
| 269 |
# 1) 요약 단계
|
|
|
|
| 253 |
logger.error(f"🚨 Groq 호출 실패: {repr(e)}")
|
| 254 |
return "추출 실패"
|
| 255 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 256 |
|
| 257 |
# ---------------------------------------
|
| 258 |
# 1) 요약 단계
|