rrrpromex commited on
Commit
5285e86
·
verified ·
1 Parent(s): c1d9a73

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def ai_response(text):
4
+ if "rabbit" in text.lower():
5
+ return "முயல் ஒரு சின்ன, மென்மையான விலங்கு."
6
+ return f"நீ கேட்டது: {text}"
7
+
8
+ demo = gr.Interface(
9
+ fn=ai_response,
10
+ inputs="text",
11
+ outputs="text",
12
+ title="RRR PRO MEX AI"
13
+ )
14
+
15
+ demo.launch(server_name="0.0.0.0", server_port=7860)