MikeMai commited on
Commit
83f48f4
·
verified ·
1 Parent(s): 4ced0b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -1326,19 +1326,19 @@ def extract_po(docx_path):
1326
 
1327
  # Gradio Interface ------------------------------
1328
 
1329
- # import gradio as gr
1330
- # from gradio.themes.base import Base
1331
-
1332
- # interface = gr.Interface(
1333
- # fn=extract_po,
1334
- # title="PO Extractor 买卖合同数据提取",
1335
- # inputs=gr.File(label="买卖合同 (.docx)"),
1336
- # outputs=gr.Json(label="提取结果"),
1337
- # flagging_mode="never",
1338
- # theme=Base()
1339
- # )
1340
-
1341
- # interface.launch(show_error=True)
1342
 
1343
 
1344
 
 
1326
 
1327
  # Gradio Interface ------------------------------
1328
 
1329
+ import gradio as gr
1330
+ from gradio.themes.base import Base
1331
+
1332
+ interface = gr.Interface(
1333
+ fn=extract_po,
1334
+ title="PO Extractor 买卖合同数据提取",
1335
+ inputs=gr.File(label="买卖合同 (.docx)"),
1336
+ outputs=gr.Json(label="提取结果"),
1337
+ flagging_mode="never",
1338
+ theme=Base()
1339
+ )
1340
+
1341
+ interface.launch(show_error=True)
1342
 
1343
 
1344