Spaces:
Build error
Build error
Update app.py
Browse files
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/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 |
|