Decre99 commited on
Commit
9f393a2
·
1 Parent(s): 4b1e4a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -1,7 +1,14 @@
1
  import gradio
2
 
3
  def my_inference_function(name):
4
- return "Hello " + name + "!"
 
 
 
 
 
 
 
5
 
6
  gradio_interface = gradio.Interface(
7
  fn = my_inference_function,
 
1
  import gradio
2
 
3
  def my_inference_function(name):
4
+ def my_inference_function(name):
5
+ client = Client("https://decre99-gradio.hf.space/--replicas/gepaz/")
6
+ result = client.predict(
7
+ "Hello!!", # str in 'name' Textbox component
8
+ api_name="/predict"
9
+ )
10
+ print(result)
11
+ return result
12
 
13
  gradio_interface = gradio.Interface(
14
  fn = my_inference_function,