Spaces:
Sleeping
Sleeping
File size: 237 Bytes
bdc0d42 |
1 2 3 4 5 6 7 8 9 10 11 |
import re
Class Extraction():
def extract_code(llm_output):
code_match = re.search(r"```python\n(.*?)\n```", llm_output, re.DOTALL)
if code_match:
return code_match.group(1)
return None |