Yatsrib commited on
Commit
87804fa
·
verified ·
1 Parent(s): 909289f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -67,6 +67,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
67
  except Exception as e:
68
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
69
 
 
70
 
71
  final_answer = FinalAnswerTool()
72
 
@@ -78,6 +79,7 @@ max_tokens=2096,
78
  temperature=0.5,
79
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
80
  custom_role_conversions=None,
 
81
  )
82
 
83
 
 
67
  except Exception as e:
68
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
69
 
70
+ hf_api_key = os.getenv("HF_TOKEN")
71
 
72
  final_answer = FinalAnswerTool()
73
 
 
79
  temperature=0.5,
80
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
81
  custom_role_conversions=None,
82
+ api_key=hf_api_key,
83
  )
84
 
85