import gradio as gr from utils.get_answer import get_answer title = "HouseMD bot" description = "Gradio Demo for telegram bot. To use it, simply add your text message." interface = gr.Interface( fn=get_answer, inputs=gr.Textbox(label="Input message to House MD", lines=3), outputs=gr.Textbox(label="House MD's answer"), title=title, description=description ) interface.launch(share=True)