changxin commited on
Commit
0d8bc44
·
1 Parent(s): c890f9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -24,6 +24,10 @@ 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):
@@ -109,6 +113,8 @@ with demo:
109
  qy_input=[gr.Image(label="待转换图片",type="filepath"),gr.Image(label="风格图片",type="filepath")]
110
  qy_output=gr.Image(type="auto", label="输出")
111
  qy_button = gr.Button("开始迁移>>")
 
 
112
 
113
  tj_button.click(fx1, inputs=text_input, outputs=text_output)
114
  cs_button.click(fx2, inputs=val_input, outputs=json_output,api_name="ghqj")
 
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
+ lksheet='''
28
+ <iframe src="<a href="https://huggingface.co/spaces/changxin/Luckysheet">Luckysheet测试</a>" frameBorder=0 marginwidth=0 marginheight=0 scrolling=no style="width800:px;height:500px;" width=800 height=550 scrolling=no ALLOWTRANSPARENCY="true"></iframe>
29
+ '''
30
+
31
  demo = gr.Blocks()
32
 
33
  def fx1(x):
 
113
  qy_input=[gr.Image(label="待转换图片",type="filepath"),gr.Image(label="风格图片",type="filepath")]
114
  qy_output=gr.Image(type="auto", label="输出")
115
  qy_button = gr.Button("开始迁移>>")
116
+ with gr.TabItem("Luckysheet测试"):
117
+ gr.HTML(value=lksheet,label="Lucksheet",show_label=True)
118
 
119
  tj_button.click(fx1, inputs=text_input, outputs=text_output)
120
  cs_button.click(fx2, inputs=val_input, outputs=json_output,api_name="ghqj")