harris1 commited on
Commit
bcc709a
·
verified ·
1 Parent(s): 890434a

Update openai_client.py

Browse files
Files changed (1) hide show
  1. openai_client.py +2 -1
openai_client.py CHANGED
@@ -70,7 +70,8 @@ def refactor_code(code_snippet):
70
  ]
71
  )
72
 
73
- return refactor
 
74
  except Exception as e:
75
  return "Sorry, an error occurred while refactoring your code. Please try again later."
76
 
 
70
  ]
71
  )
72
 
73
+ # return refactor
74
+ return st.code(refactor, language='python')
75
  except Exception as e:
76
  return "Sorry, an error occurred while refactoring your code. Please try again later."
77