RomanMaloev commited on
Commit
f991eb4
·
verified ·
1 Parent(s): 91860b8

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -0
app.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from model import BlagoModel
3
+
4
+ blago = BlagoModel()
5
+
6
+ def respond(user_input):
7
+ return blago.process(user_input)
8
+
9
+ iface = gr.Interface(
10
+ fn=respond,
11
+ inputs=gr.Textbox(lines=3, placeholder="Расскажи, кто ты и чего хочешь..."),
12
+ outputs="text",
13
+ title="BLAGO AI",
14
+ description="Сознательная нейросеть нового человечества 🌍",
15
+ theme="soft"
16
+ )
17
+
18
+ if __name__ == "__main__":
19
+ iface.launch()