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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ def fx(x:str):
3
  return '欢迎浏览:'+x
4
  demo=gr.Blocks()
5
  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>''')
 
3
  return '欢迎浏览:'+x
4
  demo=gr.Blocks()
5
  with demo:
6
+ gr.Dataframe(headers=['项目','数据'],datatype=['str','number'],overflow_row_behaviour='paginate',row_count=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>''')