Update
Browse files- README.md +1 -1
- app.py +1 -1
- requirements.txt +0 -1
README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
---
|
2 |
-
title:
|
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=
|
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 |
-
|
|
|
|