Dave67350 commited on
Commit
ed78c2a
·
verified ·
1 Parent(s): 47616cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -9,6 +9,8 @@ from duckduckgo_search import DDGS
9
 
10
  from Gradio_UI import GradioUI
11
 
 
 
12
 
13
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
14
  @tool
@@ -72,6 +74,7 @@ model = HfApiModel(
72
  max_tokens=2096,
73
  temperature=0.5,
74
  model_id="Orcawise/eu_ai_act_using_finetuned_gemma", # it is possible that this model may be overloaded
 
75
  custom_role_conversions=None,
76
  )
77
 
 
9
 
10
  from Gradio_UI import GradioUI
11
 
12
+ HF_API_TOKEN=
13
+
14
 
15
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
16
  @tool
 
74
  max_tokens=2096,
75
  temperature=0.5,
76
  model_id="Orcawise/eu_ai_act_using_finetuned_gemma", # it is possible that this model may be overloaded
77
+ api_key=HF_API_TOKEN, # ✅ Pass API token here
78
  custom_role_conversions=None,
79
  )
80