jonathanjordan21 commited on
Commit
f751d1c
·
verified ·
1 Parent(s): fd20c64

Update custom_llm.py

Browse files
Files changed (1) hide show
  1. custom_llm.py +2 -2
custom_llm.py CHANGED
@@ -166,7 +166,7 @@ def out_format(text, llm, df):
166
 
167
  e_ = None
168
 
169
- for _ in range(6):
170
 
171
  try :
172
  # text = text.split("```python")[-1].split("```")[0]
@@ -176,7 +176,7 @@ def out_format(text, llm, df):
176
 
177
  return text
178
  except Exception as e:
179
- print(e)
180
  text = err_chain.invoke({"code":text, "err":str(e)})
181
  e_ = e
182
  # exec(text)
 
166
 
167
  e_ = None
168
 
169
+ for i in range(6):
170
 
171
  try :
172
  # text = text.split("```python")[-1].split("```")[0]
 
176
 
177
  return text
178
  except Exception as e:
179
+ print(f"ERORRR! ATTEMPT : {i}\n",str(e))
180
  text = err_chain.invoke({"code":text, "err":str(e)})
181
  e_ = e
182
  # exec(text)