Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,16 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
def greet(name):
|
4 |
-
|
|
|
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()
|