Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -101,33 +101,33 @@ original_text2 = original_text['Original_Text'].values
|
|
101 |
reference_text = original_text['Reference_text'].values
|
102 |
|
103 |
##========= Buttons to the 4 tabs ========
|
104 |
-
col1, col2, col3, col4 = st.columns(
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
with col4:
|
119 |
-
st.button('📝Social Notes')
|
120 |
-
#nav_page('Social Notes')
|
121 |
|
122 |
|
123 |
-
if st.button("🏥 Admission"):
|
124 |
-
runtext =st.text_area('Input Admission note here:', str(original_text2), height=300)
|
125 |
-
if st.button("📆Daily Narrative"):
|
126 |
-
runtext =st.text_area('Input Daily Narrative here:', str(original_text2), height=300)
|
127 |
-
if st.button("Discharge Plan"):
|
128 |
-
runtext =st.text_area('Input Discharge Plan here:', str(original_text2), height=300)
|
129 |
-
if st.button("📝Social Notes"):
|
130 |
-
runtext =st.text_area('Input Social Note here:', str(original_text2), height=300)
|
131 |
|
132 |
def run_model(input_text):
|
133 |
|
|
|
101 |
reference_text = original_text['Reference_text'].values
|
102 |
|
103 |
##========= Buttons to the 4 tabs ========
|
104 |
+
col1, col2, col3, col4 = st.columns([1,1,1,1])
|
105 |
+
admission = col1.stbutton("🏥 Admission")
|
106 |
+
|
107 |
+
#with col1:
|
108 |
+
# st.button("🏥 Admission")
|
109 |
+
# #nav_page('Admission')
|
110 |
+
#
|
111 |
+
#with col2:
|
112 |
+
# st.button('📆Daily Narrative')
|
113 |
+
# #nav_page('Daily Narrative')
|
114 |
+
#
|
115 |
+
#with col3:
|
116 |
+
# st.button('Discharge Plan')
|
117 |
+
# #nav_page('Discharge Plan')
|
118 |
+
#with col4:
|
119 |
+
# st.button('📝Social Notes')
|
120 |
+
# #nav_page('Social Notes')
|
121 |
|
122 |
|
123 |
+
#if st.button("🏥 Admission"):
|
124 |
+
# runtext =st.text_area('Input Admission note here:', str(original_text2), height=300)
|
125 |
+
#if st.button("📆Daily Narrative"):
|
126 |
+
# runtext =st.text_area('Input Daily Narrative here:', str(original_text2), height=300)
|
127 |
+
#if st.button("Discharge Plan"):
|
128 |
+
# runtext =st.text_area('Input Discharge Plan here:', str(original_text2), height=300)
|
129 |
+
#if st.button("📝Social Notes"):
|
130 |
+
# runtext =st.text_area('Input Social Note here:', str(original_text2), height=300)
|
131 |
|
132 |
def run_model(input_text):
|
133 |
|