Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,11 +10,6 @@ import re
|
|
| 10 |
from Gradio_UI import GradioUI
|
| 11 |
|
| 12 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 13 |
-
@tool
|
| 14 |
-
def ask_stock_price() -> str:
|
| 15 |
-
"""Asks the user for a stock name and fetches its price."""
|
| 16 |
-
company = input("Enter the company name or stock symbol: ").strip()
|
| 17 |
-
return get_stock_price(company)
|
| 18 |
|
| 19 |
@tool
|
| 20 |
def get_stock_price(company: str) -> str:
|
|
@@ -77,7 +72,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 77 |
|
| 78 |
agent = CodeAgent(
|
| 79 |
model=model,
|
| 80 |
-
tools=[final_answer,
|
| 81 |
max_steps=6,
|
| 82 |
verbosity_level=1,
|
| 83 |
grammar=None,
|
|
|
|
| 10 |
from Gradio_UI import GradioUI
|
| 11 |
|
| 12 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
@tool
|
| 15 |
def get_stock_price(company: str) -> str:
|
|
|
|
| 72 |
|
| 73 |
agent = CodeAgent(
|
| 74 |
model=model,
|
| 75 |
+
tools=[final_answer,get_stock_price], ## add your tools here (don't remove final answer)
|
| 76 |
max_steps=6,
|
| 77 |
verbosity_level=1,
|
| 78 |
grammar=None,
|