Cristobal299 commited on
Commit
0245c89
·
verified ·
1 Parent(s): e10bcd5

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -50,7 +50,6 @@ def improve_code(original_code: str) -> str:
50
  temperature=0.2,
51
  max_tokens=2000,
52
  )
53
- # The content may be None if the API fails; guard against that
54
  improved = response.choices[0].message.content
55
  return improved.strip() if improved else "No content returned from Groq."
56
  except Exception as e:
@@ -68,7 +67,6 @@ with gr.Blocks() as demo:
68
  placeholder="Paste your code here",
69
  lines=20,
70
  max_lines=200,
71
- show_copy_button=True,
72
  )
73
  with gr.Column():
74
  code_output = gr.Textbox(
 
50
  temperature=0.2,
51
  max_tokens=2000,
52
  )
 
53
  improved = response.choices[0].message.content
54
  return improved.strip() if improved else "No content returned from Groq."
55
  except Exception as e:
 
67
  placeholder="Paste your code here",
68
  lines=20,
69
  max_lines=200,
 
70
  )
71
  with gr.Column():
72
  code_output = gr.Textbox(