import gradio as gr from pipe import pipe import pytz import datetime import json def fn(text): now = datetime.datetime.now(pytz.timezone('Asia/Tokyo')) print('\ntext:',text,now) result = pipe.run({ "prompt_builder":{"text":text} }) parsed = result['parser']['parsed'] print(parsed) return json.dumps(parsed,indent=2,ensure_ascii=False) title = '日本語 明確さ判定' with gr.Blocks(title=title,css_paths='./app.css') as app: gr.HTML(f'