zhangjianfei09 commited on
Commit
3885e8e
·
1 Parent(s): 13417af

polish UI

Browse files
Files changed (2) hide show
  1. __pycache__/app.cpython-310.pyc +0 -0
  2. app.py +21 -2
__pycache__/app.cpython-310.pyc CHANGED
Binary files a/__pycache__/app.cpython-310.pyc and b/__pycache__/app.cpython-310.pyc differ
 
app.py CHANGED
@@ -103,7 +103,6 @@ lean_examples = load_lean_examples()
103
 
104
  def check_server_health():
105
  try:
106
- # Try to check server status using client
107
  test_code = "#check Nat"
108
  responses = client.check(snips=[test_code], show_progress=False)
109
  return responses.results[0].analyze().status == "valid"
@@ -149,7 +148,27 @@ def create_demo():
149
  thread.start()
150
 
151
  with gr.Blocks(title="Kimina Lean Server") as demo:
152
- gr.Markdown("# Kimina Lean Server\nOnline Lean 4 Code Verification")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
153
 
154
  with gr.Row():
155
  with gr.Column(scale=3):
 
103
 
104
  def check_server_health():
105
  try:
 
106
  test_code = "#check Nat"
107
  responses = client.check(snips=[test_code], show_progress=False)
108
  return responses.results[0].analyze().status == "valid"
 
148
  thread.start()
149
 
150
  with gr.Blocks(title="Kimina Lean Server") as demo:
151
+ gr.Markdown("# 💻 Kimina Lean Server\nOnline Lean 4 Code Verification")
152
+
153
+ # README content section
154
+ with gr.Accordion("📖 About & Features", open=False):
155
+ gr.Markdown("""
156
+ ## Overview
157
+
158
+ This application provides a user-friendly interface to test and validate formal mathematical proofs written in Lean 4.
159
+
160
+ ## Features
161
+
162
+ - **Online Lean 4 Code Verification**: Real-time validation of Lean 4 code using an online-deployed [Kimina-Lean-Server](https://github.com/project-numina/kimina-lean-server)
163
+ - **MiniF2F Example Library**: Browse and load 207 MiniF2F test cases solved by [LongCat-Flash-Thinking](https://github.com/meituan-longcat/LongCat-Flash-Thinking)
164
+
165
+ ## Usage Guide
166
+
167
+ 1. **Write or Select Code**: Either write your own Lean 4 code in the left panel or select from the example library
168
+ 2. **Verify**: Click the "Verify Code" button to check your code against the Kimina server
169
+ 3. **Review Results**: View detailed verification results including any errors or successful validation in the right panel
170
+ 4. **Browse Examples**: Use the pagination controls at the bottom to navigate through the MiniF2F example collection
171
+ """)
172
 
173
  with gr.Row():
174
  with gr.Column(scale=3):