diff --git a/lollms/personality.py b/lollms/personality.py index 0099210..a14deb3 100644 --- a/lollms/personality.py +++ b/lollms/personality.py @@ -2605,6 +2605,25 @@ The AI should respond in this format using data from actions_list: ASCIIColors.red("Model failed to rank inputs") return None + def build_html5_integration(self, html, ifram_name="unnamed"): + """ + This function creates an HTML5 iframe with the given HTML content and iframe name. + + Args: + html (str): The HTML content to be displayed in the iframe. + ifram_name (str, optional): The name of the iframe. Defaults to "unnamed". + + Returns: + str: The HTML string for the iframe. + """ + return "\n".join( + '
', + f'', + '
' + ) + def info(self, info_text:str, callback: Callable[[str, MSG_TYPE, dict, list], bool]=None):