| import gradio as gr | |
| from model import BlagoModel | |
| blago = BlagoModel() | |
| def respond(user_input): | |
| return blago.process(user_input) | |
| iface = gr.Interface( | |
| fn=respond, | |
| inputs=gr.Textbox(lines=3, placeholder="Расскажи, кто ты и чего хочешь..."), | |
| outputs="text", | |
| title="BLAGO AI", | |
| description="Сознательная нейросеть нового человечества 🌍", | |
| theme="soft" | |
| ) | |
| if __name__ == "__main__": | |
| iface.launch() | |