Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -157,17 +157,15 @@ def main():
|
|
157 |
if pdf_path is not None:
|
158 |
query = st.text_input("Ask questions about your PDF file (in any preferred language):")
|
159 |
|
160 |
-
|
161 |
query = "Was genau ist ein Belegarzt?"
|
162 |
-
st.session_state["belegarzt_button"] = False # Reset the button state
|
163 |
|
164 |
-
if
|
165 |
query = "Wofür wird die Alpha-ID verwendet?"
|
166 |
-
st.session_state["alpha_id_button"] = False # Reset the button state
|
167 |
|
168 |
-
if st.button("Was sind die Vorteile des ambulanten operierens?"):
|
169 |
query = "Was sind die Vorteile des ambulanten operierens?"
|
170 |
-
|
171 |
|
172 |
|
173 |
# For default styled buttons, use st.button
|
|
|
157 |
if pdf_path is not None:
|
158 |
query = st.text_input("Ask questions about your PDF file (in any preferred language):")
|
159 |
|
160 |
+
if st.button("Was genau ist ein Belegarzt?", key="button1"):
|
161 |
query = "Was genau ist ein Belegarzt?"
|
|
|
162 |
|
163 |
+
if st.button("Wofür wird die Alpha-ID verwendet?", key="button2"):
|
164 |
query = "Wofür wird die Alpha-ID verwendet?"
|
|
|
165 |
|
166 |
+
if st.button("Was sind die Vorteile des ambulanten operierens?", key="button3"):
|
167 |
query = "Was sind die Vorteile des ambulanten operierens?"
|
168 |
+
|
169 |
|
170 |
|
171 |
# For default styled buttons, use st.button
|