Spaces:
Sleeping
Sleeping
Commit
·
e8453f9
1
Parent(s):
b65cc42
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def greet(name):
|
4 |
-
iface.api_name = "testing"
|
5 |
return "Hello " + name + "!! " + iface.api_name+" da el api name "
|
|
|
|
|
6 |
|
7 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
8 |
-
iface.
|
9 |
-
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def greet(name):
|
|
|
4 |
return "Hello " + name + "!! " + iface.api_name+" da el api name "
|
5 |
+
def greet1(name):
|
6 |
+
return "Hello ya client" +name
|
7 |
|
8 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
9 |
+
iface.launch()
|
10 |
+
iten=gr.Interface(fn=greet1, inputs="text", outputs="text",api_name="testing")
|
11 |
+
iten.launch()
|