Anne31415 commited on
Commit
71665a0
·
1 Parent(s): 877c64e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -13
app.py CHANGED
@@ -87,16 +87,6 @@ MAX_TOKEN_LIMIT = 400
87
  import random
88
 
89
 
90
- def display_example_questions(dynamic_question):
91
- if not st.session_state['chat_history']:
92
- st.markdown("""
93
- <div class="question-box" id="question1">Was genau ist ein Belegarzt?</div>
94
- <div class="question-box" id="question2">Wofür wird die Alpha-ID verwendet?</div>
95
- <br>
96
- <div class="question-box" id="question3">Was sind die Vorteile des ambulanten operierens?</div>
97
- <div class="question-box" id="question4">AI Generated Question: {0}</div>
98
- """.format(dynamic_question), unsafe_allow_html=True)
99
-
100
  def main():
101
  st.title("BinDocs Chat App")
102
 
@@ -154,8 +144,6 @@ def main():
154
  background_color = "#FFA07A" if chat[2] == "new" else "#acf" if chat[0] == "User" else "#caf"
155
  new_messages_placeholder.markdown(f"<div style='background-color: {background_color}; padding: 10px; border-radius: 10px; margin: 10px;'>{chat[0]}: {chat[1]}</div>", unsafe_allow_html=True)
156
 
157
- st.write("<script>document.getElementById('response').scrollIntoView();</script>", unsafe_allow_html=True)
158
-
159
  loading_message.empty()
160
 
161
  query = ""
@@ -194,4 +182,4 @@ def main():
194
 
195
 
196
  if __name__ == "__main__":
197
- main()
 
87
  import random
88
 
89
 
 
 
 
 
 
 
 
 
 
 
90
  def main():
91
  st.title("BinDocs Chat App")
92
 
 
144
  background_color = "#FFA07A" if chat[2] == "new" else "#acf" if chat[0] == "User" else "#caf"
145
  new_messages_placeholder.markdown(f"<div style='background-color: {background_color}; padding: 10px; border-radius: 10px; margin: 10px;'>{chat[0]}: {chat[1]}</div>", unsafe_allow_html=True)
146
 
 
 
147
  loading_message.empty()
148
 
149
  query = ""
 
182
 
183
 
184
  if __name__ == "__main__":
185
+ main()