eagle0504 commited on
Commit
6e35090
1 Parent(s): 937fc8b

set question answering as an independent feature from button

Browse files
Files changed (1) hide show
  1. utils/ui_helper.py +13 -13
utils/ui_helper.py CHANGED
@@ -185,20 +185,20 @@ def main_algo_trader():
185
  mime="text/csv",
186
  )
187
 
188
- # Question-answering
189
- user_question = st.text_input(
190
- "Enter your question:",
191
- f"Give me some basic descriptions of the public companies with the following ticker(s): {recent_selected_stocks}.",
 
 
 
 
 
 
192
  )
193
- if csv:
194
- st.write(f"Question entered: {user_question}")
195
- with st.spinner("Running langchain agent with GPT3..."):
196
- final_ans = run_langchain_agent_(
197
- question=str(user_question)
198
- )
199
- st.markdown(final_ans)
200
- else:
201
- st.write("We have not ran the momentum strategy yet!")
202
 
203
 
204
  # chinese
 
185
  mime="text/csv",
186
  )
187
 
188
+ # Question-answering
189
+ user_question = st.text_input(
190
+ "Enter your question:",
191
+ f"Give me some basic descriptions of the public companies with the following ticker(s): {recent_selected_stocks}.",
192
+ )
193
+ if csv:
194
+ st.write(f"Question entered: {user_question}")
195
+ with st.spinner("Running langchain agent with GPT3..."):
196
+ final_ans = run_langchain_agent_(
197
+ question=str(user_question)
198
  )
199
+ st.markdown(final_ans)
200
+ else:
201
+ st.write("We have not ran the momentum strategy yet!")
 
 
 
 
 
 
202
 
203
 
204
  # chinese