import gradio as gr import time import Content as con def random_response(message,history): answer = con.starting(message.lower()) for i in range(len(answer)): time.sleep(0.03) yield answer[:i+1] demo = gr.ChatInterface(random_response, title= "Prakriti Analyzer", description='This bot is made with love and care to guide you towards a better life by giving you a knowlege about your prakriti or your body costitution.',).queue() demo.launch(inbrowser=True)