jcleee commited on
Commit
317ada3
·
verified ·
1 Parent(s): 0e7d4b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -6,7 +6,7 @@ import yaml
6
  from tools.final_answer import FinalAnswerTool
7
  from langchain.text_splitter import CharacterTextSplitter
8
  from typing import List
9
-
10
  from Gradio_UI import GradioUI
11
 
12
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
@@ -68,10 +68,12 @@ final_answer = FinalAnswerTool()
68
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
69
 
70
  model = HfApiModel(
71
- max_tokens=2096,
72
- temperature=0.5,
73
- model_id='meta-llama/Llama-3.2-3B-Instruct', #'Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
74
- custom_role_conversions=None,
 
 
75
  )
76
 
77
 
 
6
  from tools.final_answer import FinalAnswerTool
7
  from langchain.text_splitter import CharacterTextSplitter
8
  from typing import List
9
+ import os
10
  from Gradio_UI import GradioUI
11
 
12
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
 
68
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
69
 
70
  model = HfApiModel(
71
+ model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
72
+ token=os.getenv("HF_TOKEN"),
73
+ max_tokens=2096,
74
+ temperature=0.5,
75
+ last_input_token_count=0,
76
+ last_output_token_count=0,
77
  )
78
 
79