Abbasid commited on
Commit
985a002
·
verified ·
1 Parent(s): a916bc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -9
app.py CHANGED
@@ -317,7 +317,16 @@ with gr.Blocks(css="footer {visibility: hidden}") as demo:
317
 
318
  with gr.Row():
319
  with gr.Column(scale=1):
320
- query_input = gr.Textbox(label="Your Query (including height)", placeholder="e.g., I am 175cm tall")
 
 
 
 
 
 
 
 
 
321
  submit_button = gr.Button("Compare Heights", variant="primary")
322
  with gr.Column(scale=2):
323
  # Keep the Textbox for the final answer separate
@@ -328,21 +337,17 @@ with gr.Blocks(css="footer {visibility: hidden}") as demo:
328
  # reasoning_output = gr.Code(label="Reasoning Log", language="markdown", interactive=False, lines=20)
329
  # --- REPLACE Chatbot definition WITH THIS ---
330
  reasoning_output = gr.Code(
331
- label="Reasoning Log",
332
- language="markdown", # Use markdown for good text/code display
333
- interactive=False,
334
- lines=20
335
  )
336
- # --- END OF REPLACEMENT ---
337
 
338
-
339
- # Link components - ensure outputs match the function's yield tuple order
340
  submit_button.click(
341
  fn=run_agent_wrapper,
342
  inputs=query_input,
343
  outputs=[reasoning_output, final_answer_output]
344
  )
345
- # --- END OF CHANGE ---
346
 
347
  # --- Launch Gradio (no change needed here) ---
348
  print("--- Starting Gradio Interface ---")
 
317
 
318
  with gr.Row():
319
  with gr.Column(scale=1):
320
+ query_input = gr.Textbox(label="Your Query (including height)",
321
+ placeholder="e.g., I am 175cm tall",
322
+ examples=[
323
+ "I am 182 cm tall",
324
+ "How tall am I compared to characters around 5ft 9in?",
325
+ "who is the same height as 1.7 meters",
326
+ "my height is 190cm",
327
+ "compare 6'1\" height",
328
+ ]
329
+ )
330
  submit_button = gr.Button("Compare Heights", variant="primary")
331
  with gr.Column(scale=2):
332
  # Keep the Textbox for the final answer separate
 
337
  # reasoning_output = gr.Code(label="Reasoning Log", language="markdown", interactive=False, lines=20)
338
  # --- REPLACE Chatbot definition WITH THIS ---
339
  reasoning_output = gr.Code(
340
+ label="Reasoning Log",
341
+ language="markdown", # Use markdown for good text/code display
342
+ interactive=False,
343
+ lines=20
344
  )
 
345
 
 
 
346
  submit_button.click(
347
  fn=run_agent_wrapper,
348
  inputs=query_input,
349
  outputs=[reasoning_output, final_answer_output]
350
  )
 
351
 
352
  # --- Launch Gradio (no change needed here) ---
353
  print("--- Starting Gradio Interface ---")