lvyb
commited on
Commit
·
8a0dac3
1
Parent(s):
15224b1
修改样式
Browse files- tabs/audit.py +1 -1
- tabs/ocr.py +6 -5
tabs/audit.py
CHANGED
|
@@ -19,7 +19,7 @@ def audit_text(text, url):
|
|
| 19 |
|
| 20 |
def audit_tab():
|
| 21 |
with gr.Tab("关键词审核"):
|
| 22 |
-
with gr.
|
| 23 |
url_input = gr.Textbox(label='接口链接')
|
| 24 |
text_input = gr.Textbox(label="待审核的关键词", lines=10)
|
| 25 |
gr.Examples(['你是傻逼吧', '你是天才'], inputs=text_input)
|
|
|
|
| 19 |
|
| 20 |
def audit_tab():
|
| 21 |
with gr.Tab("关键词审核"):
|
| 22 |
+
with gr.Column():
|
| 23 |
url_input = gr.Textbox(label='接口链接')
|
| 24 |
text_input = gr.Textbox(label="待审核的关键词", lines=10)
|
| 25 |
gr.Examples(['你是傻逼吧', '你是天才'], inputs=text_input)
|
tabs/ocr.py
CHANGED
|
@@ -52,12 +52,13 @@ def ocr_tab():
|
|
| 52 |
嘻嘻嘻
|
| 53 |
""")
|
| 54 |
|
| 55 |
-
with gr.
|
| 56 |
url_input = gr.Textbox(label='接口链接')
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
|
|
|
| 61 |
text_output = gr.Textbox(label="结果", lines=10)
|
| 62 |
text_button = gr.Button('识别')
|
| 63 |
|
|
|
|
| 52 |
嘻嘻嘻
|
| 53 |
""")
|
| 54 |
|
| 55 |
+
with gr.Column():
|
| 56 |
url_input = gr.Textbox(label='接口链接')
|
| 57 |
+
with gr.Row():
|
| 58 |
+
request_method = gr.Dropdown(choices=list(request_method_map.keys()), label='运行方式')
|
| 59 |
+
tasks = gr.Dropdown(choices=list(tasks_map.keys()), label='模式')
|
| 60 |
+
subtask = gr.Dropdown(choices=list(subtask_map.keys()), label='文件类型')
|
| 61 |
+
file = gr.File(type='file')
|
| 62 |
text_output = gr.Textbox(label="结果", lines=10)
|
| 63 |
text_button = gr.Button('识别')
|
| 64 |
|