aslan-ng commited on
Commit
8d3a320
·
verified ·
1 Parent(s): 9f928a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -737,7 +737,7 @@ agent = smolagents.CodeAgent(
737
  )
738
 
739
  with gr.Blocks(title="TechSpark Agent") as demo:
740
- gr.Markdown("## Beam Agent — Custom Tool Selection (smolagents)")
741
  chat = gr.Chatbot(height=420)
742
  inp = gr.Textbox(placeholder="Ask your question in natural language.", label="Your question")
743
 
@@ -754,16 +754,13 @@ with gr.Blocks(title="TechSpark Agent") as demo:
754
  return "", history
755
 
756
  gr.Examples(
 
757
  examples=[
758
  "Who is Ed?",
759
  "Who to talk to to create a wooden table?",
760
- "Can I use laser cutters?",
761
- "Where is welding space?"
762
  ],
763
- inputs=[inp],
764
- outputs=[inp, chat],
765
- fn=respond,
766
- cache_examples=False, # Set to False for dynamic content or to avoid caching issues
767
  )
768
 
769
  inp.submit(respond, [inp, chat], [inp, chat])
 
737
  )
738
 
739
  with gr.Blocks(title="TechSpark Agent") as demo:
740
+ gr.Markdown("## Beam Agent — Custom Tool Selection (smolagents + llama.cpp)")
741
  chat = gr.Chatbot(height=420)
742
  inp = gr.Textbox(placeholder="Ask your question in natural language.", label="Your question")
743
 
 
754
  return "", history
755
 
756
  gr.Examples(
757
+ fn=respond,
758
  examples=[
759
  "Who is Ed?",
760
  "Who to talk to to create a wooden table?",
761
+ "how to access laser cutter"
 
762
  ],
763
+ inputs=[inp]
 
 
 
764
  )
765
 
766
  inp.submit(respond, [inp, chat], [inp, chat])