Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -81,7 +81,7 @@ def load_rag_objects():
|
|
| 81 |
global region_rag_objects
|
| 82 |
global rag_connection_status_info
|
| 83 |
|
| 84 |
-
#
|
| 85 |
logger.info(">>> [RAG_LOADER] RAG 로딩 스레드 시작 <<<")
|
| 86 |
|
| 87 |
for region, path in region_paths.items():
|
|
@@ -207,7 +207,8 @@ def Gemma3_AI_analysis(query_txt, content_txt):
|
|
| 207 |
|
| 208 |
try:
|
| 209 |
response = client.chat.completions.create(
|
| 210 |
-
model="meta-llama/Llama-4-Scout-17B-16E-Instruct",
|
|
|
|
| 211 |
messages=[
|
| 212 |
{
|
| 213 |
"role": "user",
|
|
@@ -234,7 +235,8 @@ def Gemma3_AI_Translate(query_txt):
|
|
| 234 |
|
| 235 |
try:
|
| 236 |
response = client.chat.completions.create(
|
| 237 |
-
model="meta-llama/Llama-4-Scout-17B-16E-Instruct",
|
|
|
|
| 238 |
messages=[
|
| 239 |
{
|
| 240 |
"role": "user",
|
|
|
|
| 81 |
global region_rag_objects
|
| 82 |
global rag_connection_status_info
|
| 83 |
|
| 84 |
+
# 로딩 스레드 시작 로그를 추가하여 Gunicorn 로그에서 확인 가능하게 함
|
| 85 |
logger.info(">>> [RAG_LOADER] RAG 로딩 스레드 시작 <<<")
|
| 86 |
|
| 87 |
for region, path in region_paths.items():
|
|
|
|
| 207 |
|
| 208 |
try:
|
| 209 |
response = client.chat.completions.create(
|
| 210 |
+
#model="meta-llama/Llama-4-Scout-17B-16E-Instruct", #비용 효율 측면 최고
|
| 211 |
+
model="moonshotai/Kimi-K2-Thinking", #오픈소스 최고 성능
|
| 212 |
messages=[
|
| 213 |
{
|
| 214 |
"role": "user",
|
|
|
|
| 235 |
|
| 236 |
try:
|
| 237 |
response = client.chat.completions.create(
|
| 238 |
+
#model="meta-llama/Llama-4-Scout-17B-16E-Instruct", #비용 효율 측면 최고
|
| 239 |
+
model="moonshotai/Kimi-K2-Thinking", #오픈소스 최고 성능
|
| 240 |
messages=[
|
| 241 |
{
|
| 242 |
"role": "user",
|