zerito commited on
Commit
5d7fec2
·
verified ·
1 Parent(s): d244b82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -5,6 +5,8 @@ import yaml
5
  import random
6
  from tools.final_answer import FinalAnswerTool
7
  from Gradio_UI import GradioUI
 
 
8
 
9
  @tool
10
  def time_traveling_fortune_teller(timezone: str) -> str:
@@ -54,7 +56,7 @@ model = HfApiModel(
54
  max_tokens=2096,
55
  temperature=0.5,
56
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
57
- api_key="your_huggingface_api_key_here"
58
  )
59
 
60
  # Import tool from Hub
 
5
  import random
6
  from tools.final_answer import FinalAnswerTool
7
  from Gradio_UI import GradioUI
8
+ import os
9
+
10
 
11
  @tool
12
  def time_traveling_fortune_teller(timezone: str) -> str:
 
56
  max_tokens=2096,
57
  temperature=0.5,
58
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
59
+ api_key= os.getenv('HF_TOKEN')
60
  )
61
 
62
  # Import tool from Hub