Jeffgold commited on
Commit
7f89bda
·
verified ·
1 Parent(s): 51e2b2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -6,9 +6,6 @@ import yaml
6
  from tools.final_answer import FinalAnswerTool
7
 
8
  from Gradio_UI import GradioUI
9
- import os
10
-
11
- HF_API_KEY = os.environ.get("HF_API_KEY")
12
 
13
  @tool
14
  def get_current_time_in_timezone(timezone: str) -> str:
@@ -49,8 +46,7 @@ model = HfApiModel(
49
  max_tokens=2096,
50
  temperature=0.5,
51
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
52
- custom_role_conversions=None,
53
- hf_api_key=HF_API_KEY
54
  )
55
 
56
  with open("prompts.yaml", 'r') as stream:
 
6
  from tools.final_answer import FinalAnswerTool
7
 
8
  from Gradio_UI import GradioUI
 
 
 
9
 
10
  @tool
11
  def get_current_time_in_timezone(timezone: str) -> str:
 
46
  max_tokens=2096,
47
  temperature=0.5,
48
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
49
+ custom_role_conversions=None
 
50
  )
51
 
52
  with open("prompts.yaml", 'r') as stream: