BLAGO_AI / app.py
RomanMaloev's picture
Create app.py
f991eb4 verified
Raw
History Blame Contribute Delete
492 Bytes
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()