lupantech commited on
Commit
5b668f3
Β·
1 Parent(s): a4f4f96

added category for examples

Browse files
Files changed (2) hide show
  1. app.py +18 -10
  2. examples/pathology.jpg +0 -0
app.py CHANGED
@@ -472,7 +472,7 @@ def main(args):
472
  # with gr.Blocks(theme=gr.themes.Soft()) as demo:
473
  # Theming https://www.gradio.app/guides/theming-guide
474
 
475
- gr.Markdown("# πŸ™ Chat with OctoTools: An Agentic Framework for Complex Reasoning") # Title
476
  # gr.Markdown("[![OctoTools](https://img.shields.io/badge/OctoTools-Agentic%20Framework%20for%20Complex%20Reasoning-blue)](https://octotools.github.io/)") # Title
477
  gr.Markdown("""
478
  **OctoTools** is a training-free, user-friendly, and easily extensible open-source agentic framework designed to tackle complex reasoning across diverse domains.
@@ -607,45 +607,53 @@ def main(args):
607
  gr.Examples(
608
  examples=[
609
  # [ None, "Who is the president of the United States?", ["Google_Search_Tool"]],
610
- [ None,
 
611
  "How many r letters are in the word strawberry?",
612
  ["Generalist_Solution_Generator_Tool", "Python_Code_Generator_Tool"],
613
  "3"],
614
 
615
- [ None,
 
616
  "What's up with the upcoming Apple Launch? Any rumors?",
617
  ["Generalist_Solution_Generator_Tool", "Google_Search_Tool", "Wikipedia_Knowledge_Searcher_Tool", "URL_Text_Extractor_Tool"],
618
  "Apple's February 19, 2025, event may feature the iPhone SE 4, new iPads, accessories, and rumored iPhone 17 and Apple Watch Series 10."],
619
 
620
- [ None,
 
621
  "Which is bigger, 9.11 or 9.9?",
622
  ["Generalist_Solution_Generator_Tool", "Python_Code_Generator_Tool"],
623
  "9.9"],
624
 
625
- [ None,
 
626
  "Using the numbers [1, 1, 6, 9], create an expression that equals 24. You must use basic arithmetic operations (+, -, Γ—, /) and parentheses. For example, one solution for [1, 2, 3, 4] is (1+2+3)Γ—4.", ["Python_Code_Generator_Tool"],
627
  "((1 + 1) * 9) + 6"],
628
 
629
- [None,
 
630
  "What are the research trends in tool agents with large language models for scientific discovery? Please consider the latest literature from ArXiv, PubMed, Nature, and news sources.", ["ArXiv_Paper_Searcher_Tool", "Pubmed_Search_Tool", "Nature_News_Fetcher_Tool"],
631
  "Open-ended question. No reference answer."],
632
 
633
- [ "examples/baseball.png",
 
634
  "How many baseballs are there?",
635
  ["Object_Detector_Tool"],
636
  "20"],
637
 
638
- [ "examples/rotting_kiwi.png",
 
639
  "You are given a 3 x 3 grid in which each cell can contain either no kiwi, one fresh kiwi, or one rotten kiwi. Every minute, any fresh kiwi that is 4-directionally adjacent to a rotten kiwi also becomes rotten. What is the minimum number of minutes that must elapse until no cell has a fresh kiwi?", ["Image_Captioner_Tool"],
640
  "4 minutes"],
641
 
642
- [ "examples/lung.jpg",
 
643
  "What is the organ on the left side of this image?",
644
  ["Image_Captioner_Tool", "Relevant_Patch_Zoomer_Tool"],
645
  "Lung"],
646
 
647
  ],
648
- inputs=[user_image, user_query, enabled_tools, gr.Textbox(label="Reference Answer")],
649
  # label="Try these examples with suggested tools."
650
  )
651
 
 
472
  # with gr.Blocks(theme=gr.themes.Soft()) as demo:
473
  # Theming https://www.gradio.app/guides/theming-guide
474
 
475
+ gr.Markdown("# πŸ™ Chat with OctoTools: An Agentic Framework with Extensive Tools for Complex Reasoning") # Title
476
  # gr.Markdown("[![OctoTools](https://img.shields.io/badge/OctoTools-Agentic%20Framework%20for%20Complex%20Reasoning-blue)](https://octotools.github.io/)") # Title
477
  gr.Markdown("""
478
  **OctoTools** is a training-free, user-friendly, and easily extensible open-source agentic framework designed to tackle complex reasoning across diverse domains.
 
607
  gr.Examples(
608
  examples=[
609
  # [ None, "Who is the president of the United States?", ["Google_Search_Tool"]],
610
+ [ "Logical Reasoning",
611
+ None,
612
  "How many r letters are in the word strawberry?",
613
  ["Generalist_Solution_Generator_Tool", "Python_Code_Generator_Tool"],
614
  "3"],
615
 
616
+ [ "Web Search",
617
+ None,
618
  "What's up with the upcoming Apple Launch? Any rumors?",
619
  ["Generalist_Solution_Generator_Tool", "Google_Search_Tool", "Wikipedia_Knowledge_Searcher_Tool", "URL_Text_Extractor_Tool"],
620
  "Apple's February 19, 2025, event may feature the iPhone SE 4, new iPads, accessories, and rumored iPhone 17 and Apple Watch Series 10."],
621
 
622
+ [ "Mathematical Reasoning",
623
+ None,
624
  "Which is bigger, 9.11 or 9.9?",
625
  ["Generalist_Solution_Generator_Tool", "Python_Code_Generator_Tool"],
626
  "9.9"],
627
 
628
+ [ "Multi-step Reasoning",
629
+ None,
630
  "Using the numbers [1, 1, 6, 9], create an expression that equals 24. You must use basic arithmetic operations (+, -, Γ—, /) and parentheses. For example, one solution for [1, 2, 3, 4] is (1+2+3)Γ—4.", ["Python_Code_Generator_Tool"],
631
  "((1 + 1) * 9) + 6"],
632
 
633
+ [ "Scientific Research",
634
+ None,
635
  "What are the research trends in tool agents with large language models for scientific discovery? Please consider the latest literature from ArXiv, PubMed, Nature, and news sources.", ["ArXiv_Paper_Searcher_Tool", "Pubmed_Search_Tool", "Nature_News_Fetcher_Tool"],
636
  "Open-ended question. No reference answer."],
637
 
638
+ [ "Visual Perception",
639
+ "examples/baseball.png",
640
  "How many baseballs are there?",
641
  ["Object_Detector_Tool"],
642
  "20"],
643
 
644
+ [ "Visual Reasoning",
645
+ "examples/rotting_kiwi.png",
646
  "You are given a 3 x 3 grid in which each cell can contain either no kiwi, one fresh kiwi, or one rotten kiwi. Every minute, any fresh kiwi that is 4-directionally adjacent to a rotten kiwi also becomes rotten. What is the minimum number of minutes that must elapse until no cell has a fresh kiwi?", ["Image_Captioner_Tool"],
647
  "4 minutes"],
648
 
649
+ [ "Medical Image Analysis",
650
+ "examples/lung.jpg",
651
  "What is the organ on the left side of this image?",
652
  ["Image_Captioner_Tool", "Relevant_Patch_Zoomer_Tool"],
653
  "Lung"],
654
 
655
  ],
656
+ inputs=[gr.Textbox(label="Category"), user_image, user_query, enabled_tools, gr.Textbox(label="Reference Answer")],
657
  # label="Try these examples with suggested tools."
658
  )
659
 
examples/pathology.jpg ADDED