giulia-fontanella commited on
Commit
7d92ce8
·
verified ·
1 Parent(s): d1ebe54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -11,6 +11,7 @@ from langchain_huggingface import HuggingFaceEndpoint
11
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
12
  HUGGINGFACEHUB_API_TOKEN = os.getenv("HUGGINGFACEHUB_API_TOKEN")
13
  OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
 
14
 
15
 
16
  def run_and_submit_all( profile: gr.OAuthProfile | None):
@@ -35,7 +36,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
35
  # 1. Instantiate Agent ( modify this part to create your agent)
36
  try:
37
  llm = HuggingFaceEndpoint(
38
- repo_id="Qwen/Qwen2.5-Coder-32B-Instruct",
39
  huggingfacehub_api_token=HUGGINGFACEHUB_API_TOKEN,
40
  )
41
  agent = BasicAgent(llm)
 
11
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
12
  HUGGINGFACEHUB_API_TOKEN = os.getenv("HUGGINGFACEHUB_API_TOKEN")
13
  OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
14
+ REPO_ID = "Qwen/Qwen2.5-Coder-14B-Instruct"
15
 
16
 
17
  def run_and_submit_all( profile: gr.OAuthProfile | None):
 
36
  # 1. Instantiate Agent ( modify this part to create your agent)
37
  try:
38
  llm = HuggingFaceEndpoint(
39
+ repo_id=REPO_ID,
40
  huggingfacehub_api_token=HUGGINGFACEHUB_API_TOKEN,
41
  )
42
  agent = BasicAgent(llm)