Anne31415 commited on
Commit
5fd7e28
·
1 Parent(s): 14edcc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py CHANGED
@@ -103,6 +103,24 @@ def page1():
103
  image = Image.open('BinDoc Logo (Quadratisch).png')
104
  st.image(image, use_column_width='always')
105
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  if "assistant" not in st.session_state:
107
  openai.api_key = api_key
108
  # Load the previously created assistant
 
103
  image = Image.open('BinDoc Logo (Quadratisch).png')
104
  st.image(image, use_column_width='always')
105
 
106
+
107
+
108
+ # Example query buttons
109
+ st.markdown("### Quick Questions")
110
+ col3, col4 = st.columns(2) # Create two columns for buttons
111
+
112
+ with col3:
113
+ if st.button("Example Question 1"):
114
+ prompt = "This is an example question 1"
115
+ if st.button("Example Question 2"):
116
+ prompt = "This is an example question 2"
117
+
118
+ with col4:
119
+ if st.button("Example Question 3"):
120
+ prompt = "This is an example question 3"
121
+ if st.button("Example Question 4"):
122
+ prompt = "This is an example question 4"
123
+
124
  if "assistant" not in st.session_state:
125
  openai.api_key = api_key
126
  # Load the previously created assistant