Update custom_llm.py
Browse files- custom_llm.py +2 -2
custom_llm.py
CHANGED
|
@@ -174,8 +174,8 @@ def out_format(text, llm, df):
|
|
| 174 |
for i in range(6):
|
| 175 |
|
| 176 |
try :
|
| 177 |
-
|
| 178 |
-
text = text.split("# Generated Code")[-1].split("
|
| 179 |
print(text)
|
| 180 |
exec(text)
|
| 181 |
|
|
|
|
| 174 |
for i in range(6):
|
| 175 |
|
| 176 |
try :
|
| 177 |
+
text = text.split("```python")[-1].split("```")[0]
|
| 178 |
+
# text = text.split("# Generated Code")[-1].split("```")[0]
|
| 179 |
print(text)
|
| 180 |
exec(text)
|
| 181 |
|