Update app.py
Browse files
app.py
CHANGED
@@ -215,14 +215,26 @@ def process_input(country, n_stocks, capital, risk_label, strategy_label, news_i
|
|
215 |
'news_impact_consideration': news_impact
|
216 |
}
|
217 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
result = financial_trading_crew.kickoff(inputs=financial_trading_inputs)
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
|
|
|
|
|
|
224 |
return output1, output2, output3, output4
|
225 |
|
|
|
226 |
# Create the input fields
|
227 |
country = gr.Textbox(label="Country Name", placeholder="Enter country name", value="USA")
|
228 |
n_stocks = gr.Slider(label="How Many Different Stocks You Want to Invest-in?", minimum=1, maximum=10, step=1, value=5)
|
|
|
215 |
'news_impact_consideration': news_impact
|
216 |
}
|
217 |
|
218 |
+
# result = financial_trading_crew.kickoff(inputs=financial_trading_inputs)
|
219 |
+
# # global result
|
220 |
+
# output1 = result['tasks_outputs'][0].exported_output+'\n\n=================================\n=================================\n'
|
221 |
+
# output2 = result['tasks_outputs'][1].exported_output
|
222 |
+
# output3 = result['tasks_outputs'][2].exported_output+'\n\n=================================\n=================================\n'
|
223 |
+
# output4 = result['tasks_outputs'][3].exported_output
|
224 |
+
# return output1, output2, output3, output4
|
225 |
+
|
226 |
result = financial_trading_crew.kickoff(inputs=financial_trading_inputs)
|
227 |
+
|
228 |
+
# This returns a list of TaskOutput objects
|
229 |
+
outputs = result.tasks_output
|
230 |
+
|
231 |
+
output1 = outputs[0].raw
|
232 |
+
output2 = outputs[1].raw
|
233 |
+
output3 = outputs[2].raw
|
234 |
+
output4 = outputs[3].raw
|
235 |
return output1, output2, output3, output4
|
236 |
|
237 |
+
|
238 |
# Create the input fields
|
239 |
country = gr.Textbox(label="Country Name", placeholder="Enter country name", value="USA")
|
240 |
n_stocks = gr.Slider(label="How Many Different Stocks You Want to Invest-in?", minimum=1, maximum=10, step=1, value=5)
|