Tsitsi19 commited on
Commit
45a199d
verified
1 Parent(s): 27ec034

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 qwen_loader import load_qwen
3
+ from telegram_bot import send, handle_update
4
+
5
+ QWEN = load_qwen()
6
+
7
+ def chat(msg):
8
+ handle_update(msg)
9
+ return "Ordre envoy茅 au cerveau Qwen."
10
+
11
+ ui = gr.Interface(
12
+ fn=chat,
13
+ inputs="text",
14
+ outputs="text",
15
+ title="Agent Z茅ro",
16
+ description="Agent contr么l茅 avec mutations via Telegram."
17
+ )
18
+
19
+ ui.launch()