Spaces:
Running
Running
calling anvilserver
Browse files
app.py
CHANGED
@@ -4,7 +4,8 @@ import anvil.server
|
|
4 |
anvil.server.connect('55MH4EBKM22EP4E6D5T6CVSL-VGO5X4SM6JEXGJVT')
|
5 |
|
6 |
def greet(name):
|
7 |
-
|
|
|
8 |
|
9 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
10 |
iface.launch()
|
|
|
4 |
anvil.server.connect('55MH4EBKM22EP4E6D5T6CVSL-VGO5X4SM6JEXGJVT')
|
5 |
|
6 |
def greet(name):
|
7 |
+
retval=anvil.server.call('server_function',name)
|
8 |
+
return "Hello " + retval + "!!"
|
9 |
|
10 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
11 |
iface.launch()
|