Spaces:
Runtime error
Runtime error
Tonic commited on
fix typo
Browse files198 unmodified lines1992002012022032042052062072082091 unmodified line211212213209210211212213214215216198 unmodified lines informal = gr.Textbox(value=additional_info_prompt, label="Optional informal prefix") max_tokens = gr.Slider(minimum=150, maximum=4096, value=2500, label="Max Tokens") submit = gr.Button("Send") gr.Examples( examples=examples, inputs=[user_input, informal, max_tokens], label="Example Problems" ) with gr.Column(): chat = gr.Chatbot(label="Chat History") with gr.Accordion("Complete Output", open=False):1 unmodified line code_out = gr.Code(label="Extracted Lean4 Code", language="python") state = gr.State([]) submit.click(chat_handler, [user_input, informal, max_tokens, state], [chat, json_out, code_out, state]) gr.Examples( examples=examples, inputs=["user_input", "informal", "max_tokens"], label="Example Problems" ) gr.Markdown(citation) demo.launch()
app.py+5-5