nizar125 commited on
Commit
76fad86
·
verified ·
1 Parent(s): a68741e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -59,6 +59,13 @@ def get_current_time_in_timezone(timezone: str) -> str:
59
  except Exception as e:
60
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
61
 
 
 
 
 
 
 
 
62
 
63
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
64
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
 
59
  except Exception as e:
60
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
61
 
62
+ final_answer = FinalAnswerTool()
63
+ model = InferenceClientModel(
64
+ max_tokens=2096,
65
+ temperature=0.5,
66
+ model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
67
+ custom_role_conversions=None,
68
+ )
69
 
70
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
71
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'