gmshroff commited on
Commit
d88d84c
1 Parent(s): d0dde33

calling anvilserver

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -4,7 +4,8 @@ import anvil.server
4
  anvil.server.connect('55MH4EBKM22EP4E6D5T6CVSL-VGO5X4SM6JEXGJVT')
5
 
6
  def greet(name):
7
- return "Hello " + name + "!!"
 
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()