jslin09's picture
Update app.py
081ad0c
raw
history blame
No virus
917 Bytes
import gradio as gr
title = "Legal Document Drafting"
drafting_examples = [
["闕很大明知金融帳戶之存摺、提款卡及密碼係供自己使用之重要理財工具,"],
["森上梅前明知其無資力支付酒店消費,亦無付款意願,竟意圖為自己不法之所有,"]
]
dreating_demo = gr.Interface.load(
"huggingface/jslin09/bloom-560m-finetuned-fraud",
title=None,
examples=drafting_examples,
description="Give me something to say!",
)
stt_demo = gr.Interface.load(
"huggingface/jslin09/bloom-560m-finetuned-fraud",
title=None,
inputs="森上梅前明知其無資力支付酒店消費,亦無付款意願,竟意圖為自己不法之所有,",
description="Let me try to guess what you're saying!",
)
demo = gr.TabbedInterface([dreating_demo, stt_demo], ["Verdicts Drafting", "Speech-to-text"])
if __name__ == "__main__":
demo.launch()