Aleksey Matsarski commited on
Commit
2ef7125
·
1 Parent(s): b54c572

update response format

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -18,7 +18,11 @@ def run_user_query(ticker, history):
18
  final_state = app.invoke(init_state)
19
 
20
  # Update the Gradio chat history
21
- history.append((QUERY, final_state['final_recommendation']))
 
 
 
 
22
  return "", history
23
 
24
  with gr.Blocks() as demo:
 
18
  final_state = app.invoke(init_state)
19
 
20
  # Update the Gradio chat history
21
+ recommendations = (f'### NEWS SUMMARY\n{final_state["news_summary"]}\n '
22
+ f'### EARNINGS SUMMARY\n{final_state["earnings_summary"]}\n '
23
+ f'### MARKET SUMMARY\n{final_state["market_summary"]}\n '
24
+ f'### FINAL RECOMMENDATION\n{final_state["final_recommendation"]}\n')
25
+ history.append((QUERY, recommendations))
26
  return "", history
27
 
28
  with gr.Blocks() as demo: