Update app.py
Browse files
app.py
CHANGED
@@ -127,7 +127,7 @@ with demo:
|
|
127 |
with gr.TabItem("js"):
|
128 |
gr.Markdown("# js处理测试")
|
129 |
js_input=[gr.Number(),gr.Number(),gr.Number()]
|
130 |
-
js_output=gr.
|
131 |
js_button=gr.Button("js处理")
|
132 |
dt_button.click(None, inputs=js_input, outputs=js_output,_js="(x) => [...x].reverse().join('')",api_name='js')
|
133 |
demo.launch()
|
|
|
127 |
with gr.TabItem("js"):
|
128 |
gr.Markdown("# js处理测试")
|
129 |
js_input=[gr.Number(),gr.Number(),gr.Number()]
|
130 |
+
js_output=gr.Textbox(label="JS输出")
|
131 |
js_button=gr.Button("js处理")
|
132 |
dt_button.click(None, inputs=js_input, outputs=js_output,_js="(x) => [...x].reverse().join('')",api_name='js')
|
133 |
demo.launch()
|