hobs
commited on
Commit
·
ca70154
1
Parent(s):
d933ed9
Add application file
Browse files
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# app.py
|
2 |
+
|
3 |
+
import gradio as gr
|
4 |
+
|
5 |
+
|
6 |
+
def greet_nationality(name):
|
7 |
+
nationality = 'somewhere'
|
8 |
+
return f"Hello {name}!!\n Your name seems to be from {nationality}. Am I right?"
|
9 |
+
|
10 |
+
|
11 |
+
iface = gr.Interface(fn=greet_nationality, inputs="text", outputs="text")
|
12 |
+
iface.launch()
|