changxin commited on
Commit
2344342
·
1 Parent(s): a054905

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -28,7 +28,6 @@ demo = gr.Blocks(css='''
28
  #chedan {-webkit-transition-duration: 0.4s; transition-duration: 0.4s; border-radius: 40%}
29
  #chedan:hover {background-color: #4CAF50; color: white;}
30
  #chedan:active {background-color: #3e8e41; box-shadow: 0 5px #666; transform: translateY(4px);}
31
- #tpkj:hover {content: '请拖拽或选择需要OCR识别的图片至此处';}
32
  ''')
33
 
34
  def fx1(x):
@@ -73,8 +72,8 @@ def fx6(img, lang):
73
  with demo:
74
  gr.Markdown(
75
  """
76
- # WEB APP测试应用!
77
- ![执一以为天下式](https://pbihub.cn/uploads/images/201809/23/44/n6xk1x6UnN.gif#pic_center).
78
  """)
79
  with gr.Tabs():
80
  with gr.TabItem("测试1"):
@@ -99,7 +98,7 @@ with demo:
99
  with gr.TabItem("Excel365测试"):
100
  gr.HTML(value=ht_text,label="在线版演示",show_label=True)
101
  with gr.TabItem("OCR识别"):
102
- ocr_input=[gr.Image(type='file', label='请提供你需要识别的照片',elem_id='tpkj'),gr.Dropdown(choices=['中文','英文','法文','德文','韩文','日文'], type="value", default='中文', label='请选择需要识别的语言')]
103
  ocr_output=gr.Image(type='file', label='识别结果')
104
  ocr_button = gr.Button("开始ocr识别")
105
 
 
28
  #chedan {-webkit-transition-duration: 0.4s; transition-duration: 0.4s; border-radius: 40%}
29
  #chedan:hover {background-color: #4CAF50; color: white;}
30
  #chedan:active {background-color: #3e8e41; box-shadow: 0 5px #666; transform: translateY(4px);}
 
31
  ''')
32
 
33
  def fx1(x):
 
72
  with demo:
73
  gr.Markdown(
74
  """
75
+ # <center> WEB APP测试应用!
76
+ [![]([https://pbihub.cn/uploads/images/201809/23/44/n6xk1x6UnN.gif]#pic_center)](https://pbihub.cn/users/44/articles)
77
  """)
78
  with gr.Tabs():
79
  with gr.TabItem("测试1"):
 
98
  with gr.TabItem("Excel365测试"):
99
  gr.HTML(value=ht_text,label="在线版演示",show_label=True)
100
  with gr.TabItem("OCR识别"):
101
+ ocr_input=[gr.Image(type='file', label='请提供你需要识别的照片'),gr.Dropdown(choices=['中文','英文','法文','德文','韩文','日文'], type="value", default='中文', label='请选择需要识别的语言')]
102
  ocr_output=gr.Image(type='file', label='识别结果')
103
  ocr_button = gr.Button("开始ocr识别")
104