simonpc commited on
Commit
5822c92
·
verified ·
1 Parent(s): 0210e4f

trying api model

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -35,13 +35,14 @@ def get_current_time_in_timezone(timezone: str) -> str:
35
 
36
 
37
  final_answer = FinalAnswerTool()
38
- model = HfApiModel(
39
- max_tokens=2096,
40
- temperature=0.5,
41
- #model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
42
- model_id='meta-llama/Llama-3.2-3B-Instruct',
43
- custom_role_conversions=None,
44
- )
 
45
 
46
 
47
  # Import tool from Hub
 
35
 
36
 
37
  final_answer = FinalAnswerTool()
38
+ # model = HfApiModel(
39
+ # max_tokens=2096,
40
+ # temperature=0.5,
41
+ # #model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
42
+ # model_id='meta-llama/Llama-3.2-3B-Instruct',
43
+ # custom_role_conversions=None,
44
+ # )
45
+ model = InferenceClient("https://jc26mwg228mkj8dw.us-east-1.aws.endpoints.huggingface.cloud"/)
46
 
47
 
48
  # Import tool from Hub