Sakil commited on
Commit
30dca24
·
verified ·
1 Parent(s): 9d59622

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -25,15 +25,16 @@ def main():
25
 
26
  # Input user question
27
  question = st.text_input("Ask a question about the data:")
 
 
 
 
 
28
  if st.button("Submit"):
29
  if question:
30
  response = query_engine.query(question)
31
  st.markdown(f"**Response:** {response}")
32
 
33
- # Clear input fields
34
- if st.button("Clear"):
35
- st.text_input("Enter your ANTHROPIC_API_KEY:", value='')
36
- st.text_input("Ask a question about the data:", value='')
37
-
38
  if __name__ == "__main__":
39
  main()
 
 
25
 
26
  # Input user question
27
  question = st.text_input("Ask a question about the data:")
28
+
29
+ # Clear input field for question
30
+ if st.button("Clear Question"):
31
+ question = ""
32
+
33
  if st.button("Submit"):
34
  if question:
35
  response = query_engine.query(question)
36
  st.markdown(f"**Response:** {response}")
37
 
 
 
 
 
 
38
  if __name__ == "__main__":
39
  main()
40
+