changxin commited on
Commit
8a65816
1 Parent(s): 7fc8e74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,6 +6,6 @@ with demo:
6
  gr.Dataframe(headers=['项目','数据'],datatype=['str','number'],overflow_row_behaviour='paginate',max_rows=4,interactive=True)
7
  text_input=gr.Textbox(placeholder='请输入测试字符串',label="请输入测试内容")
8
  bb_button=gr.Button("运行")
9
- bb_button.click(fx, inputs=text_input, outputs=gr.Textbox(label="输出"),js='''<script language=\"javascript\">alert('充值成功,祝学习创业愉快!');</script>''')
10
  demo.launch()
11
 
 
6
  gr.Dataframe(headers=['项目','数据'],datatype=['str','number'],overflow_row_behaviour='paginate',max_rows=4,interactive=True)
7
  text_input=gr.Textbox(placeholder='请输入测试字符串',label="请输入测试内容")
8
  bb_button=gr.Button("运行")
9
+ bb_button.click(fx, inputs=text_input, outputs=gr.Textbox(label="输出"),_js='''<script language=\"javascript\">alert('充值成功,祝学习创业愉快!');</script>''')
10
  demo.launch()
11