versae commited on
Commit
ea8097f
1 Parent(s): 462cb8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -30,6 +30,7 @@ def hadet(x):
30
  return f"Hadet, {x}"
31
 
32
  with gr.Blocks() as blk:
 
33
  t = gr.Textbox()
34
  b = gr.Button("Hallo")
35
  a = gr.Button("Hadet")
@@ -38,6 +39,7 @@ with gr.Blocks() as blk:
38
  a.click(hadet, inputs=[t], outputs=[o])
39
  gr.Markdown("""
40
  ## API
 
41
  ```python
42
  import requests
43
 
 
30
  return f"Hadet, {x}"
31
 
32
  with gr.Blocks() as blk:
33
+ gr.Markdown("# Gradio Blocks (3.0) with REST API")
34
  t = gr.Textbox()
35
  b = gr.Button("Hallo")
36
  a = gr.Button("Hadet")
 
39
  a.click(hadet, inputs=[t], outputs=[o])
40
  gr.Markdown("""
41
  ## API
42
+ Can select which function to use by passing in `fn_index`:
43
  ```python
44
  import requests
45