Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -165,16 +165,18 @@ def main():
|
|
165 |
query = st.text_input("Ask questions about your PDF file (in any preferred language):")
|
166 |
|
167 |
# Buttons for predefined queries
|
168 |
-
if
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
if st.button("Wofür wird die Alpha-ID verwendet?", key="button2"):
|
173 |
query = "Wofür wird die Alpha-ID verwendet?"
|
174 |
-
|
175 |
if st.button("Was sind die Vorteile des ambulanten operierens?", key="button3"):
|
176 |
query = "Was sind die Vorteile des ambulanten operierens?"
|
177 |
|
|
|
|
|
|
|
|
|
|
|
178 |
# Processing the query
|
179 |
if query:
|
180 |
loading_message = st.empty()
|
|
|
165 |
query = st.text_input("Ask questions about your PDF file (in any preferred language):")
|
166 |
|
167 |
# Buttons for predefined queries
|
168 |
+
if st.button("Was genau ist ein Belegarzt?", key="button1"):
|
169 |
+
st.session_state['belegarzt_button'] = True
|
|
|
|
|
170 |
if st.button("Wofür wird die Alpha-ID verwendet?", key="button2"):
|
171 |
query = "Wofür wird die Alpha-ID verwendet?"
|
|
|
172 |
if st.button("Was sind die Vorteile des ambulanten operierens?", key="button3"):
|
173 |
query = "Was sind die Vorteile des ambulanten operierens?"
|
174 |
|
175 |
+
if st.session_state.get('belegarzt_button'):
|
176 |
+
query = "Was genau ist ein Belegarzt?"
|
177 |
+
st.session_state['belegarzt_button'] = False # Reset the button state
|
178 |
+
|
179 |
+
|
180 |
# Processing the query
|
181 |
if query:
|
182 |
loading_message = st.empty()
|