hysts HF Staff commited on
Commit
d2f29da
·
1 Parent(s): 9af7ed5
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +1 -1
  3. requirements.txt +0 -1
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: client bool api_name error
3
  emoji: ⚡
4
  colorFrom: red
5
  colorTo: purple
 
1
  ---
2
+ title: API page with empty api_name
3
  emoji: ⚡
4
  colorFrom: red
5
  colorTo: purple
app.py CHANGED
@@ -6,6 +6,6 @@ with gr.Blocks() as demo:
6
  text = gr.Text()
7
  out = gr.Text()
8
  btn = gr.Button()
9
- text.submit(fn=lambda x: x, inputs=text, outputs=out, api_name=False)
10
  btn.click(fn=lambda x: x, inputs=text, outputs=out, api_name='run')
11
  demo.queue().launch()
 
6
  text = gr.Text()
7
  out = gr.Text()
8
  btn = gr.Button()
9
+ text.submit(fn=lambda x: x, inputs=text, outputs=out, api_name='')
10
  btn.click(fn=lambda x: x, inputs=text, outputs=out, api_name='run')
11
  demo.queue().launch()
requirements.txt CHANGED
@@ -1 +0,0 @@
1
-