Spaces:
Runtime error
Runtime error
sanjeevl10 commited on
Commit ·
bac9fd1
1
Parent(s): efec6bf
Fixed Sklearn Packages
Browse files- requirements.txt +2 -1
- tools/investment_advisor.py +6 -11
requirements.txt
CHANGED
|
@@ -23,4 +23,5 @@ pandas
|
|
| 23 |
GoogleNews
|
| 24 |
streamlit
|
| 25 |
googlenews
|
| 26 |
-
scikit-learn==1.5.1
|
|
|
|
|
|
| 23 |
GoogleNews
|
| 24 |
streamlit
|
| 25 |
googlenews
|
| 26 |
+
scikit-learn==1.5.1
|
| 27 |
+
sklearn
|
tools/investment_advisor.py
CHANGED
|
@@ -31,7 +31,6 @@ def investment_advisor_tools():
|
|
| 31 |
|
| 32 |
args_schema: Optional[Type[BaseModel]] = newsSummaryInput
|
| 33 |
|
| 34 |
-
<<<<<<< HEAD
|
| 35 |
def analyze_prices():
|
| 36 |
"""Take historical prices, analyze them and answer user's questions."""
|
| 37 |
df_prices=pd.read_csv('../df_history.csv')
|
|
@@ -53,23 +52,19 @@ def investment_advisor_tools():
|
|
| 53 |
raise NotImplementedError("This tool does not support async")
|
| 54 |
|
| 55 |
args_schema: Optional[Type[BaseModel]] = pricesInput
|
| 56 |
-
=======
|
| 57 |
|
| 58 |
-
>>>>>>> 594c18622dd698f1854229dda280817492475d75
|
| 59 |
|
| 60 |
tools_reccommend = [
|
| 61 |
StructuredTool.from_function(
|
| 62 |
func=newsSummaryTool,
|
| 63 |
args_schema=newsSummaryInput,
|
| 64 |
description="Summarize articles.",
|
| 65 |
-
<<<<<<< HEAD
|
| 66 |
-
),
|
| 67 |
-
StructuredTool.from_function(
|
| 68 |
-
func=pricesTool,
|
| 69 |
-
args_schema=pricesInput,
|
| 70 |
-
description="Analyze stock prices.",
|
| 71 |
-
=======
|
| 72 |
-
>>>>>>> 594c18622dd698f1854229dda280817492475d75
|
| 73 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
]
|
| 75 |
return tools_reccommend
|
|
|
|
| 31 |
|
| 32 |
args_schema: Optional[Type[BaseModel]] = newsSummaryInput
|
| 33 |
|
|
|
|
| 34 |
def analyze_prices():
|
| 35 |
"""Take historical prices, analyze them and answer user's questions."""
|
| 36 |
df_prices=pd.read_csv('../df_history.csv')
|
|
|
|
| 52 |
raise NotImplementedError("This tool does not support async")
|
| 53 |
|
| 54 |
args_schema: Optional[Type[BaseModel]] = pricesInput
|
|
|
|
| 55 |
|
|
|
|
| 56 |
|
| 57 |
tools_reccommend = [
|
| 58 |
StructuredTool.from_function(
|
| 59 |
func=newsSummaryTool,
|
| 60 |
args_schema=newsSummaryInput,
|
| 61 |
description="Summarize articles.",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
)
|
| 63 |
+
#,
|
| 64 |
+
#StructuredTool.from_function(
|
| 65 |
+
# func=pricesTool,
|
| 66 |
+
# args_schema=pricesInput,
|
| 67 |
+
# description="Analyze stock prices.",
|
| 68 |
+
#)
|
| 69 |
]
|
| 70 |
return tools_reccommend
|