import gradio as gr from nodexl import nodexlSearch app = gr.ChatInterface(nodexlSearch, chatbot=gr.Chatbot(height=400,render_markdown=True,editable=True), type = "messages", textbox=gr.Textbox(placeholder="Type your message here", container=False, scale=7), title="NodeXL Chatbot", theme="upsatwal/mlsc_tiet", examples=["What are the applications of NodeXL?", "Who are the developers of NodeXL?", "How can I add vertices in NodeXL"]) if __name__ == "__main__": app.launch()