Spaces:
Running
Running
zeyadahmedd
commited on
Commit
•
a78a11d
1
Parent(s):
d849ffa
Update app.py
Browse files
app.py
CHANGED
@@ -2,10 +2,13 @@ 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 |
-
|
9 |
-
|
10 |
-
iten=gr.Interface(fn=greet1, inputs="text", outputs="text",api_name="testing")
|
11 |
-
|
|
|
|
|
|
2 |
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!! " + iface.api_name+" da el api name "
|
5 |
+
|
6 |
def greet1(name):
|
7 |
return "Hello ya client" +name
|
8 |
|
9 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
10 |
+
|
11 |
+
iten=gr.Interface(fn=greet1, inputs="text", outputs="text",api_name="/testing")
|
12 |
+
|
13 |
+
app=gr.Interface(interfaces=[iface, iten], share=True)
|
14 |
+
app.launch()
|