Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import os
|
2 |
|
3 |
-
from
|
4 |
|
5 |
def invoke(openai_api_key, serper_api_key, stock_selection, initial_capital, risk_tolerance, trading_strategy_preference, news_impact_consideration):
|
6 |
if (openai_api_key == ""):
|
@@ -29,7 +29,7 @@ def invoke(openai_api_key, serper_api_key, stock_selection, initial_capital, ris
|
|
29 |
'news_impact_consideration': news_impact_consideration
|
30 |
}
|
31 |
|
32 |
-
return
|
33 |
|
34 |
description = """<a href='https://www.gradio.app/'>Gradio</a> UI using the <a href='https://openai.com/'>OpenAI</a> SDK
|
35 |
with <a href='https://openai.com/research/gpt-4'>gpt-4</a> model."""
|
|
|
1 |
import os
|
2 |
|
3 |
+
from crew import get_financial_trading_crew
|
4 |
|
5 |
def invoke(openai_api_key, serper_api_key, stock_selection, initial_capital, risk_tolerance, trading_strategy_preference, news_impact_consideration):
|
6 |
if (openai_api_key == ""):
|
|
|
29 |
'news_impact_consideration': news_impact_consideration
|
30 |
}
|
31 |
|
32 |
+
return get_financial_trading_crew().kickoff(inputs=financial_trading_inputs)
|
33 |
|
34 |
description = """<a href='https://www.gradio.app/'>Gradio</a> UI using the <a href='https://openai.com/'>OpenAI</a> SDK
|
35 |
with <a href='https://openai.com/research/gpt-4'>gpt-4</a> model."""
|