KittenEli commited on
Commit
4686f11
·
verified ·
1 Parent(s): 59c1060

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -4,6 +4,7 @@ import requests
4
  import pytz
5
  import yaml
6
  import PyPDF2
 
7
  from tools.final_answer import FinalAnswerTool
8
 
9
  from Gradio_UI import GradioUI
@@ -35,6 +36,7 @@ final_answer = FinalAnswerTool()
35
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
36
 
37
  model = HfApiModel(
 
38
  max_tokens=2096,
39
  temperature=0.5,
40
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
 
4
  import pytz
5
  import yaml
6
  import PyPDF2
7
+ import os
8
  from tools.final_answer import FinalAnswerTool
9
 
10
  from Gradio_UI import GradioUI
 
36
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
37
 
38
  model = HfApiModel(
39
+ token= os.getenv('Token')
40
  max_tokens=2096,
41
  temperature=0.5,
42
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded