keenthinker commited on
Commit
97b9aa8
·
verified ·
1 Parent(s): e2e0da2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -54,7 +54,8 @@ def summarize_text_tool(text:str)-> str:
54
  }
55
  ]
56
  response = client.chat.completions.create(
57
- model="Qwen/Qwen2.5-Coder-32B-Instruct",
 
58
  messages=messages,
59
  max_tokens=500
60
  )
@@ -80,7 +81,8 @@ def helper_text_tool(text:str)-> str:
80
  }
81
  ]
82
  response = client.chat.completions.create(
83
- model="Qwen/Qwen2.5-Coder-32B-Instruct",
 
84
  messages=messages,
85
  max_tokens=500
86
  )
@@ -97,7 +99,8 @@ visit_webpage = VisitWebpageTool()
97
  model = HfApiModel(
98
  max_tokens=2096,
99
  temperature=0.5,
100
- model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
 
101
  custom_role_conversions=None,
102
  )
103
 
 
54
  }
55
  ]
56
  response = client.chat.completions.create(
57
+ #model="Qwen/Qwen2.5-Coder-32B-Instruct",
58
+ model="https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud",
59
  messages=messages,
60
  max_tokens=500
61
  )
 
81
  }
82
  ]
83
  response = client.chat.completions.create(
84
+ #model="Qwen/Qwen2.5-Coder-32B-Instruct",
85
+ model="https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud",
86
  messages=messages,
87
  max_tokens=500
88
  )
 
99
  model = HfApiModel(
100
  max_tokens=2096,
101
  temperature=0.5,
102
+ #model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
103
+ model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',
104
  custom_role_conversions=None,
105
  )
106