RikyXDZ commited on
Commit
d1b0421
1 Parent(s): aa827aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -1,7 +1,16 @@
1
  import gradio as gr
 
 
 
 
 
 
 
 
2
 
3
  def greet(name):
4
- return "Assalamualaikum " + name + "!!"
 
5
 
6
  gui = gr.Interface(fn=greet, inputs="text", outputs="text")
7
  gui.launch()
 
1
  import gradio as gr
2
+ from random import choice
3
+
4
+ randchoice = [
5
+ "Assalamualaikum",
6
+ "How are you today",
7
+ "How do you do",
8
+ "You happy"
9
+ ]
10
 
11
  def greet(name):
12
+ scopes = choice(randchoice)
13
+ return scopes + " " + name + "?"
14
 
15
  gui = gr.Interface(fn=greet, inputs="text", outputs="text")
16
  gui.launch()