Spaces:
Sleeping
Sleeping
Download test_query.py from juhaha1230/AI_Menu_Search: direct link, hf CLI and curl.
- Browser
- Download file 464 Bytes
-
https://huggingface.co/spaces/juhaha1230/AI_Menu_Search/resolve/main/test_query.py
- Command line
-
hf download hf://spaces/juhaha1230/AI_Menu_Search/test_query.py
-
curl -L -o test_query.py https://huggingface.co/spaces/juhaha1230/AI_Menu_Search/resolve/main/test_query.py
464 Bytes
| import sys | |
| sys.path.insert(0, r"C:\Users\leeju\Documents\s#ai메뉴\prototype") | |
| from core.agent import run_agent | |
| result = run_agent("내 주식 얼마야?", top_n=5, threshold=0.3) | |
| print("=== 내 주식 얼마야? ===") | |
| for i, r in enumerate(result["search_results"][:5], 1): | |
| name = r.get("menu_name", "") | |
| mid = r.get("menu_id", "") | |
| sim = r.get("similarity", 0) | |
| print(str(i) + "위: " + name + " (" + mid + ") - " + str(round(sim*100,1)) + "%") | |