Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -21,13 +21,13 @@ def invoke(openai_api_key, serp_api_key, stock_selection, initial_capital, risk_
|
|
21 |
|
22 |
os.environ["OPENAI_API_KEY"] = openai_api_key
|
23 |
os.environ["SERPER_API_KEY"] = serp_api_key
|
24 |
-
|
25 |
financial_trading_inputs = {
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
}
|
32 |
|
33 |
print(financial_trading_inputs)
|
@@ -46,7 +46,7 @@ demo = gr.Interface(fn = invoke,
|
|
46 |
gr.Textbox(label = "Initial Capital", value=1000, lines = 1),
|
47 |
gr.Textbox(label = "Risk Tolerance", value="Medium", lines = 1),
|
48 |
gr.Textbox(label = "Trading Strategy Preference", value="Day Trading", lines = 1),
|
49 |
-
gr.
|
50 |
outputs = [gr.Textbox(label = "Output", lines = 1)],
|
51 |
title = "Agentic RAG: Financial Analysis",
|
52 |
description = description)
|
|
|
21 |
|
22 |
os.environ["OPENAI_API_KEY"] = openai_api_key
|
23 |
os.environ["SERPER_API_KEY"] = serp_api_key
|
24 |
+
|
25 |
financial_trading_inputs = {
|
26 |
+
"stock_selection": stock_selection,
|
27 |
+
"initial_capital": initial_capital,
|
28 |
+
"risk_tolerance": risk_tolerance,
|
29 |
+
"trading_strategy_preference": trading_strategy_preference,
|
30 |
+
"news_impact_consideration": news_impact_consideration
|
31 |
}
|
32 |
|
33 |
print(financial_trading_inputs)
|
|
|
46 |
gr.Textbox(label = "Initial Capital", value=1000, lines = 1),
|
47 |
gr.Textbox(label = "Risk Tolerance", value="Medium", lines = 1),
|
48 |
gr.Textbox(label = "Trading Strategy Preference", value="Day Trading", lines = 1),
|
49 |
+
gr.Checkbox(label = "News Impact Consideration", value=True, lines = 1)],
|
50 |
outputs = [gr.Textbox(label = "Output", lines = 1)],
|
51 |
title = "Agentic RAG: Financial Analysis",
|
52 |
description = description)
|