changxin commited on
Commit
7c82acb
1 Parent(s): 37b967a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.JSON(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()
 
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()