Cristobal299 commited on
Commit
c1c0904
·
verified ·
1 Parent(s): 029f441

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,7 +8,7 @@ import gradio as gr
8
  warnings.filterwarnings("ignore", category=UserWarning)
9
 
10
  # ----------------------------------------------------------------------
11
- # Groq client setup (only)
12
  # ----------------------------------------------------------------------
13
  groq_api_key = os.getenv("GROQ_API_KEY")
14
  groq_client = None
@@ -45,7 +45,7 @@ def improve_code(original_code: str) -> str:
45
 
46
  try:
47
  response = groq_client.chat.completions.create(
48
- model="llama3-70b-8192",
49
  messages=[{"role": "user", "content": prompt}],
50
  temperature=0.2,
51
  max_tokens=2000,
 
8
  warnings.filterwarnings("ignore", category=UserWarning)
9
 
10
  # ----------------------------------------------------------------------
11
+ # Groq client setup
12
  # ----------------------------------------------------------------------
13
  groq_api_key = os.getenv("GROQ_API_KEY")
14
  groq_client = None
 
45
 
46
  try:
47
  response = groq_client.chat.completions.create(
48
+ model="llama-3.3-70b-versatile",
49
  messages=[{"role": "user", "content": prompt}],
50
  temperature=0.2,
51
  max_tokens=2000,