Update app.py
Browse files
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 |
-
|
| 74 |
-
|
| 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'):
|