QuantumLearner commited on
Commit
f04e22b
·
verified ·
1 Parent(s): 3211c4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -113,7 +113,18 @@ st.markdown(
113
  )
114
 
115
  st.markdown('<p class="big-green-font">Enter your research query:</p>', unsafe_allow_html=True)
116
- query = st.text_input("", "Why is the Stock Price of Nvidia Soaring?", help="Type your research question or topic.")
 
 
 
 
 
 
 
 
 
 
 
117
 
118
 
119
  with st.sidebar.expander("How to Use", expanded=False):
 
113
  )
114
 
115
  st.markdown('<p class="big-green-font">Enter your research query:</p>', unsafe_allow_html=True)
116
+ #query = st.text_input("", "Why is the Stock Price of Nvidia Soaring? Current Date is September 2024", help="Type your research question or topic.")
117
+
118
+ # Display the input field for the user
119
+ user_query = st.text_input("", "Why is the Stock Price of Nvidia Soaring?", help="Type your research question or topic.")
120
+
121
+ # Process the query to include the current date after the user inputs their query
122
+ if user_query:
123
+ current_date = datetime.now().strftime("%B %Y")
124
+ final_query = f"{user_query} Current Date is {current_date}"
125
+
126
+ # Use final_query for further processing
127
+ st.write(f"Processed Query: {final_query}")
128
 
129
 
130
  with st.sidebar.expander("How to Use", expanded=False):