changxin commited on
Commit
d9b02b2
·
1 Parent(s): bfa6d8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,7 +24,7 @@ ht_text='''
24
  <iframe width="800" height="800" frameborder="0" scrolling="no" src="https://dyrscomcn-my.sharepoint.com/personal/huangcaiguang_dyrs_com_cn/_layouts/15/Doc.aspx?sourcedoc={6d3da844-5b54-473b-a32a-08659600d015}&action=embedview&AllowTyping=True&ActiveCell='业绩'!A1&wdInConfigurator=True&wdInConfigurator=True&edesNext=false&ejss=false"></iframe>
25
  '''
26
 
27
- demo = gr.Blocks()
28
 
29
  def fx1(x):
30
  return f"欢迎练习Gradio, {x}!"
@@ -75,7 +75,7 @@ with demo:
75
  with gr.TabItem("测试1"):
76
  text_input = gr.Textbox(placeholder='请输入测试字符串,如"畅心"',label="请输入测试内容",show_label=True)
77
  text_output = gr.Textbox(label="输出结果",show_label=True)
78
- tj_button = gr.Button("提交>>")
79
  with gr.TabItem("凑数"):
80
  val_input = [gr.Textbox(placeholder='请输入凑数序列,如"1,3,5,10,16,54,32,48,6,7"',label="请输入待凑数序列",show_label=True),gr.Number(value=80,label="请输入凑数和值",show_label=True)]
81
  json_output = gr.JSON(label="输出运算结果",show_label=True)
 
24
  <iframe width="800" height="800" frameborder="0" scrolling="no" src="https://dyrscomcn-my.sharepoint.com/personal/huangcaiguang_dyrs_com_cn/_layouts/15/Doc.aspx?sourcedoc={6d3da844-5b54-473b-a32a-08659600d015}&action=embedview&AllowTyping=True&ActiveCell='业绩'!A1&wdInConfigurator=True&wdInConfigurator=True&edesNext=false&ejss=false"></iframe>
25
  '''
26
 
27
+ demo = gr.Blocks(css="#chedan {color: red}")
28
 
29
  def fx1(x):
30
  return f"欢迎练习Gradio, {x}!"
 
75
  with gr.TabItem("测试1"):
76
  text_input = gr.Textbox(placeholder='请输入测试字符串,如"畅心"',label="请输入测试内容",show_label=True)
77
  text_output = gr.Textbox(label="输出结果",show_label=True)
78
+ tj_button = gr.Button("提交>>",elem_id="chedan")
79
  with gr.TabItem("凑数"):
80
  val_input = [gr.Textbox(placeholder='请输入凑数序列,如"1,3,5,10,16,54,32,48,6,7"',label="请输入待凑数序列",show_label=True),gr.Number(value=80,label="请输入凑数和值",show_label=True)]
81
  json_output = gr.JSON(label="输出运算结果",show_label=True)