Update custom_llm.py
Browse files- custom_llm.py +1 -1
custom_llm.py
CHANGED
|
@@ -182,7 +182,7 @@ def out_format(text, llm, df):
|
|
| 182 |
text_split = text.split("```python")[-1].split("```")[0].replace('\_', "_")
|
| 183 |
# text = text.split("# Generated Code")[-1].split("```")[0]
|
| 184 |
if "response" not in text_split:
|
| 185 |
-
text = text.split("```")[0]
|
| 186 |
else :
|
| 187 |
text = text_split
|
| 188 |
|
|
|
|
| 182 |
text_split = text.split("```python")[-1].split("```")[0].replace('\_', "_")
|
| 183 |
# text = text.split("# Generated Code")[-1].split("```")[0]
|
| 184 |
if "response" not in text_split:
|
| 185 |
+
text = text.split("```")[0].replace('\_', "_")
|
| 186 |
else :
|
| 187 |
text = text_split
|
| 188 |
|