Anne31415 commited on
Commit
9d4d018
·
1 Parent(s): 5110733

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -92,7 +92,7 @@ def cloud_button(label, key=None):
92
  }};
93
  </script>
94
  """
95
- st.markdown(cloud_button_html, unsafe_allow_html=True)
96
 
97
  def spaced_cloud_button(label):
98
  cloud_button_html = f"""
@@ -190,7 +190,7 @@ def main():
190
  if pdf_path is not None:
191
  query = st.text_input("Ask questions about your PDF file (in any preferred language):")
192
 
193
- if spaced_cloud_button("Was genau ist ein Belegarzt?"):
194
  query = "Was genau ist ein Belegarzt?"
195
  if spaced_cloud_button("Wofür wird die Alpha-ID verwendet?"):
196
  query = "Wofür wird die Alpha-ID verwendet?"
 
92
  }};
93
  </script>
94
  """
95
+ return cloud_button_html)
96
 
97
  def spaced_cloud_button(label):
98
  cloud_button_html = f"""
 
190
  if pdf_path is not None:
191
  query = st.text_input("Ask questions about your PDF file (in any preferred language):")
192
 
193
+ cloud_button_html = cloud_button("Was genau ist ein Belegarzt?"):
194
  query = "Was genau ist ein Belegarzt?"
195
  if spaced_cloud_button("Wofür wird die Alpha-ID verwendet?"):
196
  query = "Wofür wird die Alpha-ID verwendet?"