Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -20,8 +20,16 @@ def invoke(openai_api_key, serper_api_key, topic):
|
|
20 |
logging.basicConfig(level=logging.DEBUG)
|
21 |
openai = OpenAI(api_key=OPENAI_API_KEY)
|
22 |
agentops.init(AGENTOPS_API_KEY)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
-
return get_crew().kickoff(inputs=
|
25 |
|
26 |
description = """<a href='https://www.gradio.app/'>Gradio</a> UI using the <a href='https://openai.com/'>OpenAI</a> SDK
|
27 |
with <a href='https://openai.com/research/gpt-4'>gpt-4</a> model."""
|
|
|
20 |
logging.basicConfig(level=logging.DEBUG)
|
21 |
openai = OpenAI(api_key=OPENAI_API_KEY)
|
22 |
agentops.init(AGENTOPS_API_KEY)
|
23 |
+
|
24 |
+
financial_trading_inputs = {
|
25 |
+
'stock_selection': 'AAPL',
|
26 |
+
'initial_capital': '100000',
|
27 |
+
'risk_tolerance': 'Medium',
|
28 |
+
'trading_strategy_preference': 'Day Trading',
|
29 |
+
'news_impact_consideration': True
|
30 |
+
}
|
31 |
|
32 |
+
return get_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."""
|