Update app.py
Browse files
app.py
CHANGED
|
@@ -126,9 +126,9 @@ with demo:
|
|
| 126 |
|
| 127 |
with gr.TabItem("js"):
|
| 128 |
gr.Markdown("# js处理测试")
|
| 129 |
-
a=gr.Textbox()
|
| 130 |
js_output=gr.Textbox(label="JS输出")
|
| 131 |
-
js_button=gr.Button("js
|
| 132 |
js_button.click(None,a,js_output,_js="(x) => [...x].reverse().join('')",api_name='js')
|
| 133 |
demo.launch()
|
| 134 |
|
|
|
|
| 126 |
|
| 127 |
with gr.TabItem("js"):
|
| 128 |
gr.Markdown("# js处理测试")
|
| 129 |
+
a=gr.Textbox(label='请输入需要js逆序处理的字符串')
|
| 130 |
js_output=gr.Textbox(label="JS输出")
|
| 131 |
+
js_button=gr.Button("js逆序字符串处理")
|
| 132 |
js_button.click(None,a,js_output,_js="(x) => [...x].reverse().join('')",api_name='js')
|
| 133 |
demo.launch()
|
| 134 |
|