rawc0der commited on
Commit
b633046
·
verified ·
1 Parent(s): 0ee8033

Update app.py

Browse files

login for gated model access

Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -6,6 +6,7 @@ import yaml
6
  from tools.final_answer import FinalAnswerTool
7
  from tools.visit_webpage import VisitWebpageTool
8
  from tools.web_search import DuckDuckGoSearchTool
 
9
 
10
  from Gradio_UI import GradioUI
11
 
@@ -40,6 +41,9 @@ final_answer = FinalAnswerTool()
40
  web_search = DuckDuckGoSearchTool()
41
  visit_webpage = VisitWebpageTool()
42
 
 
 
 
43
  # 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:
44
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
45
 
 
6
  from tools.final_answer import FinalAnswerTool
7
  from tools.visit_webpage import VisitWebpageTool
8
  from tools.web_search import DuckDuckGoSearchTool
9
+ from huggingface_hub import login
10
 
11
  from Gradio_UI import GradioUI
12
 
 
41
  web_search = DuckDuckGoSearchTool()
42
  visit_webpage = VisitWebpageTool()
43
 
44
+ # login for gated model access
45
+ login()
46
+
47
  # 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:
48
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
49