giulia-fontanella commited on
Commit
13dc4ec
·
verified ·
1 Parent(s): 26187f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -12,7 +12,7 @@ from langchain_openai import ChatOpenAI
12
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
13
  HUGGINGFACEHUB_API_TOKEN = os.getenv("HUGGINGFACEHUB_API_TOKEN")
14
  OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
15
- REPO_ID = "Qwen/Qwen2.5-Coder-14B-Instruct"
16
 
17
 
18
  def run_and_submit_all( profile: gr.OAuthProfile | None):
@@ -40,7 +40,6 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
40
  repo_id=REPO_ID,
41
  huggingfacehub_api_token=HUGGINGFACEHUB_API_TOKEN,
42
  )
43
- llm=ChatOpenAI(model="gpt-4o")
44
  agent = BasicAgent(llm)
45
  except Exception as e:
46
  print(f"Error instantiating agent: {e}")
 
12
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
13
  HUGGINGFACEHUB_API_TOKEN = os.getenv("HUGGINGFACEHUB_API_TOKEN")
14
  OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
15
+ REPO_ID = "Qwen/Qwen2.5-Coder-32B-Instruct"
16
 
17
 
18
  def run_and_submit_all( profile: gr.OAuthProfile | None):
 
40
  repo_id=REPO_ID,
41
  huggingfacehub_api_token=HUGGINGFACEHUB_API_TOKEN,
42
  )
 
43
  agent = BasicAgent(llm)
44
  except Exception as e:
45
  print(f"Error instantiating agent: {e}")