nadim71 commited on
Commit
8994e3f
·
verified ·
1 Parent(s): 73a2eb4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -36,6 +36,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
36
  """
37
  # --- Determine HF Space Runtime URL and Repo URL ---
38
  space_id = os.getenv("SPACE_ID") # Get the SPACE_ID for sending link to the code
 
39
 
40
  if profile:
41
  username= f"{profile.username}"
@@ -58,7 +59,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
58
  # -----------------------------
59
  #llm = ChatOpenAI(model="gpt-4o-mini", temperature=0)
60
  #repo_id="deepseek-ai/DeepSeek-V4-Pro"
61
- llm = ChatHuggingFace(
62
  llm=HuggingFaceEndpoint(
63
  repo_id="Qwen/Qwen2.5-Coder-32B-Instruct",
64
  huggingfacehub_api_token=HF_KEY,
 
36
  """
37
  # --- Determine HF Space Runtime URL and Repo URL ---
38
  space_id = os.getenv("SPACE_ID") # Get the SPACE_ID for sending link to the code
39
+ HF_KEY = os.getenv("HF_TOKEN")
40
 
41
  if profile:
42
  username= f"{profile.username}"
 
59
  # -----------------------------
60
  #llm = ChatOpenAI(model="gpt-4o-mini", temperature=0)
61
  #repo_id="deepseek-ai/DeepSeek-V4-Pro"
62
+
63
  llm=HuggingFaceEndpoint(
64
  repo_id="Qwen/Qwen2.5-Coder-32B-Instruct",
65
  huggingfacehub_api_token=HF_KEY,