Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -92,22 +92,6 @@ import random
|
|
| 92 |
def main():
|
| 93 |
st.title("BinDocs Chat App")
|
| 94 |
|
| 95 |
-
# Step 1: Adding CSS for rounded boxes
|
| 96 |
-
st.markdown("""
|
| 97 |
-
<style>
|
| 98 |
-
.question-box {
|
| 99 |
-
border: 1px solid orange;
|
| 100 |
-
border-radius: 15px;
|
| 101 |
-
padding: 10px;
|
| 102 |
-
text-align: center;
|
| 103 |
-
cursor: pointer;
|
| 104 |
-
display: inline-block;
|
| 105 |
-
width: 45%;
|
| 106 |
-
margin: 2%;
|
| 107 |
-
}
|
| 108 |
-
</style>
|
| 109 |
-
""", unsafe_allow_html=True)
|
| 110 |
-
|
| 111 |
if "chat_history" not in st.session_state:
|
| 112 |
st.session_state['chat_history'] = []
|
| 113 |
|
|
@@ -124,9 +108,9 @@ def main():
|
|
| 124 |
else:
|
| 125 |
if st.button("Was genau ist ein Belegarzt?"):
|
| 126 |
query = "Was genau ist ein Belegarzt?"
|
| 127 |
-
|
| 128 |
query = "Wofür wird die Alpha-ID verwendet?"
|
| 129 |
-
|
| 130 |
query = "Was sind die Vorteile des ambulanten operierens?"
|
| 131 |
|
| 132 |
if query:
|
|
@@ -165,17 +149,6 @@ def main():
|
|
| 165 |
|
| 166 |
st.session_state['chat_history'] = [(sender, msg, "old") for sender, msg, _ in st.session_state['chat_history']]
|
| 167 |
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
# Displaying example questions
|
| 172 |
-
if not st.session_state['chat_history']:
|
| 173 |
-
st.markdown("""
|
| 174 |
-
<div class="question-box" id="question1">Was genau ist ein Belegarzt?</div>
|
| 175 |
-
<div class="question-box" id="question2">Wofür wird die Alpha-ID verwendet?</div>
|
| 176 |
-
<br>
|
| 177 |
-
<div class="question-box" id="question3">Was sind die Vorteile des ambulanten operierens?</div>
|
| 178 |
-
""", unsafe_allow_html=True)
|
| 179 |
|
| 180 |
my_component()
|
| 181 |
|
|
|
|
| 92 |
def main():
|
| 93 |
st.title("BinDocs Chat App")
|
| 94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
if "chat_history" not in st.session_state:
|
| 96 |
st.session_state['chat_history'] = []
|
| 97 |
|
|
|
|
| 108 |
else:
|
| 109 |
if st.button("Was genau ist ein Belegarzt?"):
|
| 110 |
query = "Was genau ist ein Belegarzt?"
|
| 111 |
+
if st.button("Wofür wird die Alpha-ID verwendet?"):
|
| 112 |
query = "Wofür wird die Alpha-ID verwendet?"
|
| 113 |
+
if st.button("Was sind die Vorteile des ambulanten operierens?"):
|
| 114 |
query = "Was sind die Vorteile des ambulanten operierens?"
|
| 115 |
|
| 116 |
if query:
|
|
|
|
| 149 |
|
| 150 |
st.session_state['chat_history'] = [(sender, msg, "old") for sender, msg, _ in st.session_state['chat_history']]
|
| 151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
|
| 153 |
my_component()
|
| 154 |
|