pratham0011 commited on
Commit
9e58f33
·
verified ·
1 Parent(s): fe4eda0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -70,9 +70,9 @@ selected = sp.pills(" Ask a question related to the invoice. Here are some examp
70
  'What are the Customter details?' ,
71
  'What is the information about the Products?'],
72
  clearable=True,index=None)
73
- if selected:
74
- input_query = selected
75
- input_query = st.text_input("Ask a question about the invoice", key="input")
76
 
77
  if uploaded_file is not None:
78
  if uploaded_file.type.startswith('image'):
 
70
  'What are the Customter details?' ,
71
  'What is the information about the Products?'],
72
  clearable=True,index=None)
73
+
74
+ # input_query = st.text_input("Ask a question about the invoice", key="input")
75
+ input_query = selected if selected else st.text_input("Ask a question about the invoice", key="input")
76
 
77
  if uploaded_file is not None:
78
  if uploaded_file.type.startswith('image'):