MCPcopy Index your code
hub / github.com/cirediatpl/FigmaChain / is_valid_html_css_code

Function is_valid_html_css_code

chatbot.py:61–63  ·  view source on GitHub ↗
(output)

Source from the content-addressed store, hash-verified

59
60# Function to check if the output is a valid HTML/CSS code update
61def is_valid_html_css_code(output):
62 pattern = re.compile(r'<.*?>|{.*?}')
63 return bool(pattern.search(output))
64
65# Function to generate a response using OpenAI's ChatCompletion API
66def generate_response(prompt, html_content):

Callers 1

chatbot.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected